mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-03 15:43:09 +00:00
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>
This commit is contained in:
parent
c302f222ce
commit
5e536cd812
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ void run_ui()
|
||||||
qmlRegisterType<QMLManager>("org.subsurfacedivelog.mobile", 1, 0, "QMLManager");
|
qmlRegisterType<QMLManager>("org.subsurfacedivelog.mobile", 1, 0, "QMLManager");
|
||||||
qmlRegisterType<QMLProfile>("org.subsurfacedivelog.mobile", 1, 0, "QMLProfile");
|
qmlRegisterType<QMLProfile>("org.subsurfacedivelog.mobile", 1, 0, "QMLProfile");
|
||||||
QQmlApplicationEngine engine;
|
QQmlApplicationEngine engine;
|
||||||
|
engine.addImportPath("qrc://imports");
|
||||||
DiveListModel diveListModel;
|
DiveListModel diveListModel;
|
||||||
QSortFilterProxyModel *sortModel = new QSortFilterProxyModel(0);
|
QSortFilterProxyModel *sortModel = new QSortFilterProxyModel(0);
|
||||||
sortModel->setSourceModel(&diveListModel);
|
sortModel->setSourceModel(&diveListModel);
|
||||||
|
|
Loading…
Reference in a new issue