summaryrefslogtreecommitdiffstats
path: root/subsurface-helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-helper.cpp')
-rw-r--r--subsurface-helper.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp
index 0d9e29224..b3266b656 100644
--- a/subsurface-helper.cpp
+++ b/subsurface-helper.cpp
@@ -111,7 +111,17 @@ void run_ui()
ctxt->setContextProperty("connectionListModel", &connectionListModel);
ctxt->setContextProperty("logModel", MessageHandlerModel::self());
+#ifdef SUBSURFACE_MOBILE_DESKTOP
+ if (testqml) {
+ QString fileLoad(testqml);
+ fileLoad += "/main.qml";
+ engine.load(QUrl(fileLoad));
+ } else {
+ engine.load(QUrl(QStringLiteral("qrc:///qml/main.qml")));
+ }
+#else
engine.load(QUrl(QStringLiteral("qrc:///qml/main.qml")));
+#endif
qDebug() << "loaded main.qml";
LOG_STP("run_ui qml loaded");
qqWindowObject = engine.rootObjects().value(0);