diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-11-24 15:57:29 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-17 09:17:54 -0800 |
commit | d9d3588d55b4a7e10a5ecaa0b22c7532db624c32 (patch) | |
tree | 037a90a627ffe4cfd9999b4090d5c8a0ee8bb064 /subsurface-helper.cpp | |
parent | 1f9fa8b462aeb2464ece272db5bfdbcd233355f3 (diff) | |
download | subsurface-d9d3588d55b4a7e10a5ecaa0b22c7532db624c32.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'subsurface-helper.cpp')
-rw-r--r-- | subsurface-helper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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()); |