summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index 6bc2e1e30..ed893c12e 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -15,6 +15,10 @@
#include "qt-gui.h"
+#ifdef SUBSURFACE_MOBILE
+ #include "qt-mobile/qmlmanager.h"
+#endif
+
static MainWindow *window = NULL;
void init_ui()
@@ -32,6 +36,7 @@ void run_ui()
{
#ifdef SUBSURFACE_MOBILE
window->hide();
+ qmlRegisterType<QMLManager>("org.subsurfacedivelog.mobile", 1, 0, "QMLManager");
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:///qml/main.qml")));
QObject *mainWindow = engine.rootObjects().value(0);