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

[emojier] Set KLocalizedContext

Needed for the i18n QML functions to work

CCBUG: 441097
(cherry picked from commit 5fd71402)
parent ce3c7fde
......@@ -36,6 +36,7 @@
#include <QLocale>
#include <QPainter>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQuickImageProvider>
#include <QQuickWindow>
#include <QSessionManager>
......@@ -128,6 +129,8 @@ int main(int argc, char **argv)
QQmlApplicationEngine engine;
new EngineWatcher(&engine);
engine.rootContext()->setContextObject(new KLocalizedContext(&engine));
engine.load(QUrl(QStringLiteral("qrc:/ui/emojier.qml")));
QObject::connect(service, &KDBusService::activateRequested, &engine, [&engine](const QStringList & /*arguments*/, const QString & /*workingDirectory*/) {
......
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