Commit ee28f06a authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Revert "Port away from KDeclarative setup functions"

setupEngine actually does something important, it adds an image provider
that makes the image://icon/ URLs work

This reverts commit ad91882f.
parent ad91882f
Pipeline #67602 passed with stage
in 8 minutes and 9 seconds
......@@ -16,6 +16,7 @@
//#define QT_QML_DEBUG
#if defined KF5Declarative_FOUND && KF5Declarative_FOUND
#include <KDeclarative/KDeclarative>
#include <KQuickAddons/QtQuickSettings>
#endif
......@@ -135,6 +136,13 @@ int main(int argc, char *argv[])
engine.addImportPath(QStringLiteral("qrc:/imports"));
QQmlFileSelector selector(&engine);
#if defined KF5Declarative_FOUND && KF5Declarative_FOUND
KDeclarative::KDeclarative decl;
decl.setDeclarativeEngine(&engine);
decl.setupEngine(&engine);
decl.setupContext();
#endif
engine.rootContext()->setContextObject(new KLocalizedContext(&engine));
auto arguments = DataTypes::EntryDataList{};
......
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