From a02ef84bb585d4db3c2a0304d8a8947b93f1e537 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 8 Mar 2018 22:29:36 +0200 Subject: [PATCH] subsurface-mobile-helper: register map related types Signed-off-by: Lubomir I. Ivanov --- subsurface-mobile-helper.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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("org.subsurfacedivelog.mobile", 1, 0, "DCDownloadThread"); qmlRegisterType("org.subsurfacedivelog.mobile", 1, 0, "DCImportModel"); + qmlRegisterType("org.subsurfacedivelog.mobile", 1, 0, "MapWidgetHelper"); + qmlRegisterType("org.subsurfacedivelog.mobile", 1, 0, "MapLocationModel"); + qmlRegisterType("org.subsurfacedivelog.mobile", 1, 0, "MapLocation"); + QQmlApplicationEngine engine; KirigamiPlugin::getInstance().registerTypes(); #if defined(__APPLE__) && !defined(Q_OS_IOS)