diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-07-16 02:59:56 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 07:31:11 -0700 |
commit | e2a4f3fcee6f60761ff719a14f0c44ef63f2aaa2 (patch) | |
tree | b5de8f6796e007c0ea734710da572dc68195a417 | |
parent | 63d7b315c14676ea68c75815a9f3329efd044ccc (diff) | |
download | subsurface-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.cpp | 3 |
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);
|