Commit cbfe1775 authored by Mariano Lizarraga's avatar Mariano Lizarraga

Started scaffolding the drag and drop of waypoints

parent 96947527
...@@ -191,10 +191,17 @@ void MapWidget::captureMapClick(const QMouseEvent* event, const QPointF coordina ...@@ -191,10 +191,17 @@ void MapWidget::captureMapClick(const QMouseEvent* event, const QPointF coordina
} }
void MapWidget::captureGeometryClick(Geometry* geom, QPoint point){ void MapWidget::captureGeometryClick(Geometry* geom, QPoint point){
Q_UNUSED(point);
qDebug ()<< geom->name(); qDebug() << geom->name();
qDebug() << geom->GeometryType; qDebug() << geom->GeometryType;
qDebug() << point;
}
void MapWidget::captureGeometryDrag(Geometry* geom, QPointF coordinate){
qDebug() << geom->name();
qDebug() << geom->GeometryType;
qDebug() << coordinate;
} }
MapWidget::~MapWidget() MapWidget::~MapWidget()
......
...@@ -87,6 +87,8 @@ protected: ...@@ -87,6 +87,8 @@ protected:
void captureMapClick (const QMouseEvent* event, const QPointF coordinate); void captureMapClick (const QMouseEvent* event, const QPointF coordinate);
void createPathButtonClicked(); void createPathButtonClicked();
void captureGeometryClick(Geometry*, QPoint); void captureGeometryClick(Geometry*, QPoint);
void captureGeometryDrag(Geometry* geom, QPointF coordinate);
private: private:
Ui::MapWidget *m_ui; Ui::MapWidget *m_ui;
QList<Point*> wps; QList<Point*> wps;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment