Commit cc148cea authored by Martin Flöser's avatar Martin Flöser Committed by Aleix Pol Gonzalez

Setup KDeclarative before loading the Qml file

Otherwise methods injected into the engine by KDeclarative are not
available in the loaded qml.

REVIEW: 124419
parent e462c386
......@@ -39,11 +39,13 @@ int main(int argc, char *argv[])
QQmlApplicationEngine engine(QUrl("qrc:/qml/main.qml"));
QQmlApplicationEngine engine;
KDeclarative::KDeclarative kdeclarative;
return app.exec();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment