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

Port away from KDeclarative setup functions

It doesn't do anything useful/relevant for us. The only relevant thing
(setting up the KLocalizedContext) is done anyway
parent c23e3212
Pipeline #67533 passed with stage
in 8 minutes and 13 seconds
......@@ -16,7 +16,6 @@
//#define QT_QML_DEBUG
#if defined KF5Declarative_FOUND && KF5Declarative_FOUND
#include <KDeclarative/KDeclarative>
#include <KQuickAddons/QtQuickSettings>
#endif
......@@ -136,13 +135,6 @@ 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