diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-03-08 22:29:36 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-03-11 11:40:12 -0700 |
commit | a02ef84bb585d4db3c2a0304d8a8947b93f1e537 (patch) | |
tree | d33cf1433e5d0a2708caf981f41f000428057072 | |
parent | 49f566d6d8fdbf6d731138e5110746b92d55f2e8 (diff) | |
download | subsurface-a02ef84bb585d4db3c2a0304d8a8947b93f1e537.tar.gz |
subsurface-mobile-helper: register map related types
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-rw-r--r-- | subsurface-mobile-helper.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/subsurface-mobile-helper.cpp b/subsurface-mobile-helper.cpp index 2d72d538e..9bff8b680 100644 --- a/subsurface-mobile-helper.cpp +++ b/subsurface-mobile-helper.cpp @@ -25,6 +25,8 @@ #include "core/connectionlistmodel.h" #include "qt-models/diveimportedmodel.h" #include "qt-models/messagehandlermodel.h" +#include "map-widget/qmlmapwidgethelper.h" +#include "qt-models/maplocationmodel.h" #include "mobile-widgets/qml/kirigami/src/kirigamiplugin.h" @@ -57,6 +59,10 @@ void run_ui() qmlRegisterType<DownloadThread>("org.subsurfacedivelog.mobile", 1, 0, "DCDownloadThread"); qmlRegisterType<DiveImportedModel>("org.subsurfacedivelog.mobile", 1, 0, "DCImportModel"); + qmlRegisterType<MapWidgetHelper>("org.subsurfacedivelog.mobile", 1, 0, "MapWidgetHelper"); + qmlRegisterType<MapLocationModel>("org.subsurfacedivelog.mobile", 1, 0, "MapLocationModel"); + qmlRegisterType<MapLocation>("org.subsurfacedivelog.mobile", 1, 0, "MapLocation"); + QQmlApplicationEngine engine; KirigamiPlugin::getInstance().registerTypes(); #if defined(__APPLE__) && !defined(Q_OS_IOS) |