From cbfe17750665192b03bceb9cd8717ca829f76c53 Mon Sep 17 00:00:00 2001 From: Mariano Lizarraga Date: Mon, 23 Aug 2010 14:09:17 -0500 Subject: [PATCH] Started scaffolding the drag and drop of waypoints --- src/ui/MapWidget.cc | 11 +++++++++-- src/ui/MapWidget.h | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ui/MapWidget.cc b/src/ui/MapWidget.cc index db0d1bb15..acb358e77 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 21afab5eb..f472446f1 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; -- 2.22.0