From 0d75dec0fa84a5e026448739031b402ee7b0d73a Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sun, 16 Jul 2017 03:01:54 +0300 Subject: 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 --- mobile-widgets/qml/MapWidget.qml | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3-70-g09d2