diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-16 03:01:54 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | 0d75dec0fa84a5e026448739031b402ee7b0d73a (patch) | |
tree | e9f0f4c0410d31ab18840abfbb91c07cb489acf1 | |
parent | e2a4f3fcee6f60761ff719a14f0c44ef63f2aaa2 (diff) | |
download | subsurface-0d75dec0fa84a5e026448739031b402ee7b0d73a.tar.gz |
MapWidget.qml: create an instance of MapWidgetHelper
This instance in the QML code itself will be accessed by both the
mobile and desktop version. That way, the map code between
the two Subsurface versions will be shared.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-rw-r--r-- | mobile-widgets/qml/MapWidget.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml index 4645f00c7..2539eef25 100644 --- a/mobile-widgets/qml/MapWidget.qml +++ b/mobile-widgets/qml/MapWidget.qml @@ -1,6 +1,7 @@ import QtQuick 2.0 import QtLocation 5.3 import QtPositioning 5.3 +import org.subsurfacedivelog.mobile 1.0 Item { @@ -11,6 +12,10 @@ Item { name: "esri" } + MapWidgetHelper { + id: mapHelper + } + Map { id: map anchors.fill: parent |