summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmapwidgethelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qmlmapwidgethelper.cpp')
-rw-r--r--mobile-widgets/qmlmapwidgethelper.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmapwidgethelper.cpp b/mobile-widgets/qmlmapwidgethelper.cpp
index 264b62abb..801e46620 100644
--- a/mobile-widgets/qmlmapwidgethelper.cpp
+++ b/mobile-widgets/qmlmapwidgethelper.cpp
@@ -9,6 +9,8 @@
MapWidgetHelper::MapWidgetHelper(QObject *parent) : QObject(parent)
{
m_mapLocationModel = new MapLocationModel(this);
+ connect(m_mapLocationModel, SIGNAL(selectedLocationChanged(MapLocation *)),
+ this, SLOT(selectedLocationChanged(MapLocation *)));
}
void MapWidgetHelper::centerOnDiveSite(struct dive_site *ds)
@@ -38,3 +40,8 @@ void MapWidgetHelper::reloadMapLocations()
}
m_mapLocationModel->addList(locationList);
}
+
+void MapWidgetHelper::selectedLocationChanged(MapLocation *location)
+{
+ qDebug() << location;
+}