mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
0851224b6c
commit
9f21699cd1
1 changed files with 4 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue