From ab05fe3cf83526ea63764a6c6587735e8b959527 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 11 Jul 2018 12:09:36 +0200 Subject: desktop-widget: move qmlRegister from mapwidget to shared helper Remove qmlRegister in desktop-widgets/mapwidget in order to have a shared registration in subsurface-helper.cpp Signed-off-by: Jan Iversen --- subsurface-helper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subsurface-helper.cpp') diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp index 161cdff76..6a2383f08 100644 --- a/subsurface-helper.cpp +++ b/subsurface-helper.cpp @@ -13,9 +13,9 @@ #include "profile-widget/qmlprofile.h" #include "core/downloadfromdcthread.h" #include "qt-models/diveimportedmodel.h" +#endif #include "map-widget/qmlmapwidgethelper.h" #include "qt-models/maplocationmodel.h" -#endif void register_qml_types() { @@ -43,6 +43,7 @@ void register_qml_types() rc = qmlRegisterType("org.subsurfacedivelog.mobile", 1, 0, "DCImportModel"); if (rc < 0) qDebug() << "ERROR: Cannot register DCImportModel, QML will not work!!"; +#endif rc = qmlRegisterType("org.subsurfacedivelog.mobile", 1, 0, "MapWidgetHelper"); if (rc < 0) @@ -53,5 +54,4 @@ void register_qml_types() rc = qmlRegisterType("org.subsurfacedivelog.mobile", 1, 0, "MapLocation"); if (rc < 0) qDebug() << "ERROR: Cannot register MapLocation, QML will not work!!"; -#endif } -- cgit v1.2.3-70-g09d2