Verified Commit ed550ebd authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

Add KI18n context object

parent c854adc0
Pipeline #29764 passed with stage
in 26 minutes and 2 seconds
......@@ -39,6 +39,7 @@
// Frameworks
#include <KAboutData>
#include <KLocalizedString>
#include <KLocalizedContext>
#include <KPackage/PackageLoader>
#include <KPluginMetaData>
#include <KPluginLoader>
......@@ -171,6 +172,7 @@ int main(int argc, char **argv)
engine.rootContext()->setContextProperty("settingsApp", settingsApp);
engine.rootContext()->setContextProperty("startModule", module);
engine.rootContext()->setContextProperty("singleModule", singleModule);
engine.rootContext()->setContextObject(new KLocalizedContext(&engine));
engine.load(package.filePath("mainscript"));
......
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