summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmapwidgethelper.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-17 00:06:05 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commit5cc2c02dfbace9e1486e60b8ffe58a136321e500 (patch)
treeba958822e5bbb64d6bbaef4538573167f162ff7a /mobile-widgets/qmlmapwidgethelper.h
parentc68536ec56a1e0581cb25b6a9224f81547ad8460 (diff)
downloadsubsurface-5cc2c02dfbace9e1486e60b8ffe58a136321e500.tar.gz
qmlmapwidgethelper: add the centerOnDiveSite() method
MapWidget sould not handle any of the map backend. Instead it should just pass calls to MapWidgetHelper. Do that for centerOnDiveSite(). 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 f4bc05c7d..64ec2b75b 100644
--- a/mobile-widgets/qmlmapwidgethelper.h
+++ b/mobile-widgets/qmlmapwidgethelper.h
@@ -3,6 +3,8 @@
#include <QObject>
+struct dive_site;
+
class MapWidgetHelper : public QObject {
Q_OBJECT
@@ -11,6 +13,8 @@ class MapWidgetHelper : public QObject {
public:
explicit MapWidgetHelper(QObject *parent = NULL);
+ void centerOnDiveSite(struct dive_site *);
+
private:
QObject *m_map;
};