aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-16 02:59:56 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commite2a4f3fcee6f60761ff719a14f0c44ef63f2aaa2 (patch)
treeb5de8f6796e007c0ea734710da572dc68195a417
parent63d7b315c14676ea68c75815a9f3329efd044ccc (diff)
downloadsubsurface-e2a4f3fcee6f60761ff719a14f0c44ef63f2aaa2.tar.gz
desktop-widgets/mapwidget: register the MapWidgetHelper QML type
This commit registers the class MapWidgetHelper for QML in the desktop version. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-rw-r--r--desktop-widgets/mapwidget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop-widgets/mapwidget.cpp b/desktop-widgets/mapwidget.cpp
index 145946152..f5424bb0b 100644
--- a/desktop-widgets/mapwidget.cpp
+++ b/desktop-widgets/mapwidget.cpp
@@ -6,11 +6,14 @@
#include "mapwidget.h"
#include "core/dive.h"
#include "core/divesite.h"
+#include "mobile-widgets/qmlmapwidgethelper.h"
MapWidget *MapWidget::m_instance = NULL;
MapWidget::MapWidget(QWidget *parent) : QQuickWidget(parent)
{
+ qmlRegisterType<MapWidgetHelper>("org.subsurfacedivelog.mobile", 1, 0, "MapWidgetHelper");
+
setSource(QUrl(QStringLiteral("qrc:/mapwidget-qml")));
setResizeMode(QQuickWidget::SizeRootObjectToView);