summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmapwidgethelper.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-19 02:50:07 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commita920d683a196ff28be3e8fa9bbaaab2a67b05553 (patch)
tree77d00cb209998d6887c47c8b4ae4fbefe8c629d3 /mobile-widgets/qmlmapwidgethelper.h
parentf2608edc5662f4e2c5afeb83eb395c25bfc4a18a (diff)
downloadsubsurface-a920d683a196ff28be3e8fa9bbaaab2a67b05553.tar.gz
mapwidgethelper: add a slot to handle marker selection from the model
When MapLocationModel updates the selected marker, MapWidgetHelper now receives a signal. The slot is named selectedLocationChanged(). Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'mobile-widgets/qmlmapwidgethelper.h')
-rw-r--r--mobile-widgets/qmlmapwidgethelper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmapwidgethelper.h b/mobile-widgets/qmlmapwidgethelper.h
index bd575c624..83f9df140 100644
--- a/mobile-widgets/qmlmapwidgethelper.h
+++ b/mobile-widgets/qmlmapwidgethelper.h
@@ -5,6 +5,7 @@
#include <QObject>
class MapLocationModel;
+class MapLocation;
struct dive_site;
class MapWidgetHelper : public QObject {
@@ -23,6 +24,9 @@ private:
QObject *m_map;
MapLocationModel *m_mapLocationModel;
+private slots:
+ void selectedLocationChanged(MapLocation *);
+
signals:
void modelChanged();
};