diff --git a/src/ui/MapWidget.cc b/src/ui/MapWidget.cc index db0d1bb15e164631722b17f058e46342d217fe8b..acb358e7778405ff750d1bf501f54d6d36fd00aa 100644 --- a/src/ui/MapWidget.cc +++ b/src/ui/MapWidget.cc @@ -191,10 +191,17 @@ void MapWidget::captureMapClick(const QMouseEvent* event, const QPointF coordina } void MapWidget::captureGeometryClick(Geometry* geom, QPoint point){ - Q_UNUSED(point); - qDebug ()<< geom->name(); + qDebug() << geom->name(); qDebug() << geom->GeometryType; + qDebug() << point; +} + +void MapWidget::captureGeometryDrag(Geometry* geom, QPointF coordinate){ + + qDebug() << geom->name(); + qDebug() << geom->GeometryType; + qDebug() << coordinate; } MapWidget::~MapWidget() diff --git a/src/ui/MapWidget.h b/src/ui/MapWidget.h index 21afab5eb17d4bb4be3a81ae0bf6d6b44b68c0b0..f472446f16db5d787a25f29b59deedcf49889b5b 100644 --- a/src/ui/MapWidget.h +++ b/src/ui/MapWidget.h @@ -87,6 +87,8 @@ protected: void captureMapClick (const QMouseEvent* event, const QPointF coordinate); void createPathButtonClicked(); void captureGeometryClick(Geometry*, QPoint); + void captureGeometryDrag(Geometry* geom, QPointF coordinate); + private: Ui::MapWidget *m_ui; QList wps;