summaryrefslogtreecommitdiffstats
path: root/subsurface-mobile-helper.cpp
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-11-29 17:41:47 +0100
committerGravatar Sebastian Kügler <sebas@kde.org>2015-11-29 17:43:13 +0100
commit5e536cd8127e19072eb960241389129b83b715a5 (patch)
treeb7158655072648b66902b3471f2ca5d61b957054 /subsurface-mobile-helper.cpp
parentc302f222ce7dfab1410239faa1161ec2b4413a04 (diff)
downloadsubsurface-5e536cd8127e19072eb960241389129b83b715a5.tar.gz
Allow to use QML imports shipped in the qrc file
This adds qrc://imports to the paths that the Qml engine considers for findings import plugins. This change makes loading the mobilecomponents plugin work (it won't be found otherwise). Signed-off-by: Sebastian Kügler <sebas@kde.org>
Diffstat (limited to 'subsurface-mobile-helper.cpp')
-rw-r--r--subsurface-mobile-helper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/subsurface-mobile-helper.cpp b/subsurface-mobile-helper.cpp
index e982760f8..e2b32d3b2 100644
--- a/subsurface-mobile-helper.cpp
+++ b/subsurface-mobile-helper.cpp
@@ -31,6 +31,7 @@ void run_ui()
qmlRegisterType<QMLManager>("org.subsurfacedivelog.mobile", 1, 0, "QMLManager");
qmlRegisterType<QMLProfile>("org.subsurfacedivelog.mobile", 1, 0, "QMLProfile");
QQmlApplicationEngine engine;
+ engine.addImportPath("qrc://imports");
DiveListModel diveListModel;
QSortFilterProxyModel *sortModel = new QSortFilterProxyModel(0);
sortModel->setSourceModel(&diveListModel);