diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-16 03:16:13 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | 99c2bf6290170bfef40a258fcf21e2e498bcc7c8 (patch) | |
tree | a9254685ec45446d23e0bfb5b58445e616f3e4ac /desktop-widgets/mapwidget.h | |
parent | 0d75dec0fa84a5e026448739031b402ee7b0d73a (diff) | |
download | subsurface-99c2bf6290170bfef40a258fcf21e2e498bcc7c8.tar.gz |
mapwidget.cpp: obtain a reference of the MapWidgetHelper from QML
Use findChild() to obtain the only MapWidgetHelper object created
in the MapWidget.qml. Store the reference as a member variable -
m_mapHelper.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'desktop-widgets/mapwidget.h')
-rw-r--r-- | desktop-widgets/mapwidget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/mapwidget.h b/desktop-widgets/mapwidget.h index 802d35153..5481c970a 100644 --- a/desktop-widgets/mapwidget.h +++ b/desktop-widgets/mapwidget.h @@ -7,6 +7,7 @@ class QResizeEvent;
class QQuickItem;
+class MapWidgetHelper;
struct dive_site;
class MapWidget : public QQuickWidget {
@@ -33,6 +34,7 @@ public slots: private:
static MapWidget *m_instance;
QQuickItem *m_rootItem;
+ MapWidgetHelper *m_mapHelper;
};
|