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
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user