mobile: use 3rdparty build of Kirigami

This should allow us to use the kirigami version that was built as 3rdparty
component.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-11-24 10:50:26 -08:00
parent 0851224b6c
commit 9f21699cd1

View file

@ -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");