diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-04 09:47:10 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-18 17:33:15 -0800 |
commit | 9105a4c39b26d64a3fb316e2c38f119857dae813 (patch) | |
tree | fb3758a7b324ed0ce680cf9cab2bc9ae8504fdc6 | |
parent | fdc2fd35bf3a24f64b3f86a1caa4d69257c9dfab (diff) | |
download | subsurface-9105a4c39b26d64a3fb316e2c38f119857dae813.tar.gz |
mobile: register QML interface
call setup with registration of QML interface class
Signed-off-by: jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | subsurface-helper.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp index 713390c79..dc6f1855f 100644 --- a/subsurface-helper.cpp +++ b/subsurface-helper.cpp @@ -14,6 +14,7 @@ #include <QQmlApplicationEngine> #include <QQmlContext> #include "mobile-widgets/qmlmanager.h" +#include "mobile-widgets/qmlinterface.h" #include "qt-models/divelistmodel.h" #include "qt-models/gpslistmodel.h" #include "qt-models/messagehandlermodel.h" @@ -188,6 +189,9 @@ void register_qml_types(QQmlEngine *engine) QQmlContext *ct = engine->rootContext(); ct->setContextProperty("Planner", plannerShared::instance()); + + // Register qml interface class + QMLInterface::setup(ct); } REGISTER_TYPE(QMLManager, "QMLManager"); |