From e2a4f3fcee6f60761ff719a14f0c44ef63f2aaa2 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sun, 16 Jul 2017 02:59:56 +0300 Subject: 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 --- desktop-widgets/mapwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) 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("org.subsurfacedivelog.mobile", 1, 0, "MapWidgetHelper"); + setSource(QUrl(QStringLiteral("qrc:/mapwidget-qml"))); setResizeMode(QQuickWidget::SizeRootObjectToView); -- cgit v1.2.3-70-g09d2