mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:50:06 +00:00
Draw a radial. This needs some cleanup, and some MVP matrix tweaking.
This commit is contained in:
parent
ace3aeb460
commit
516983ab09
10 changed files with 506 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#include "map_widget.hpp"
|
||||
|
||||
#include <scwx/qt/map/triangle_layer.hpp>
|
||||
#include <scwx/qt/map/radar_layer.hpp>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QColor>
|
||||
|
|
@ -65,7 +65,7 @@ void MapWidget::changeStyle()
|
|||
void MapWidget::AddLayers()
|
||||
{
|
||||
// QMapboxGL::addCustomLayer will take ownership of the QScopedPointer
|
||||
QScopedPointer<QMapbox::CustomLayerHostInterface> pHost(new TriangleLayer());
|
||||
QScopedPointer<QMapbox::CustomLayerHostInterface> pHost(new RadarLayer());
|
||||
|
||||
QString before = "ferry";
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ void MapWidget::AddLayers()
|
|||
}
|
||||
}
|
||||
|
||||
map_->addCustomLayer("triangle", pHost, before);
|
||||
map_->addCustomLayer("radar", pHost, before);
|
||||
}
|
||||
|
||||
void MapWidget::keyPressEvent(QKeyEvent* ev)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue