aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-helper.cpp')
-rw-r--r--subsurface-helper.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp
index f22afec4c..befe89559 100644
--- a/subsurface-helper.cpp
+++ b/subsurface-helper.cpp
@@ -23,7 +23,7 @@
#include "core/downloadfromdcthread.h"
#include "core/subsurfacestartup.h" // for testqml
#include "qt-models/diveimportedmodel.h"
-#include "mobile-widgets/qml/kirigami/src/kirigamiplugin.h"
+#include "kirigamiplugin.h"
#else
#include "desktop-widgets/mainwindow.h"
#endif
@@ -40,6 +40,8 @@ QObject *qqWindowObject = NULL;
static void register_qml_types(QQmlEngine *);
static void register_meta_types();
+Q_IMPORT_PLUGIN(KirigamiPlugin)
+
void init_ui()
{
init_qt_late();
@@ -101,6 +103,7 @@ void run_ui()
if (importPath.contains("MacOS"))
engine.addImportPath(importPath.replace("MacOS", "Frameworks"));
}
+ engine.addImportPath("qrc://");
qDebug() << "QML import path" << engine.importPathList();
#endif // __APPLE__ not Q_OS_IOS
engine.addImportPath("qrc://imports");