From d9d3588d55b4a7e10a5ecaa0b22c7532db624c32 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 24 Nov 2020 15:57:29 -0800 Subject: mobile: add yet another import path to find Kirigami QML module This needs some careful testing across the different OSs we are trying to support. Signed-off-by: Dirk Hohndel --- subsurface-helper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subsurface-helper.cpp') diff --git a/subsurface-helper.cpp b/subsurface-helper.cpp index d2eb6e01e..fbf173792 100644 --- a/subsurface-helper.cpp +++ b/subsurface-helper.cpp @@ -105,9 +105,9 @@ 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 + // this is frustrating, but we appear to need different import paths on different OSs + engine.addImportPath(":"); engine.addImportPath("qrc://imports"); QSortFilterProxyModel *gpsSortModel = new QSortFilterProxyModel(nullptr); gpsSortModel->setSourceModel(GpsListModel::instance()); -- cgit v1.2.3-70-g09d2