Commit 0f4db42d authored by Nicolas Fella's avatar Nicolas Fella Committed by Albert Astals Cid
Browse files

[kcm] Set KLocalizedContext for QQuickWidget

This is needed for i18n to work and got lost accidentally

BUG: 459229
(cherry picked from commit e914305c)
parent da94cf26
Pipeline #233354 passed with stage
in 1 minute and 26 seconds
......@@ -15,6 +15,7 @@
#include "vpnuiplugin.h"
// KDE
#include <KLocalizedContext>
#include <KMessageBox>
#include <KPluginFactory>
#include <KPluginMetaData>
......@@ -61,6 +62,10 @@ KCMNetworkmanagement::KCMNetworkmanagement(QWidget *parent, const QVariantList &
kdeclarative.setDeclarativeEngine(m_ui->connectionView->engine());
kdeclarative.setupEngine(m_ui->connectionView->engine());
KLocalizedContext *l10nContext = new KLocalizedContext(m_ui->connectionView->engine());
l10nContext->setTranslationDomain(QStringLiteral(TRANSLATION_DOMAIN));
m_ui->connectionView->engine()->rootContext()->setContextObject(l10nContext);
// Check if we can use AP mode to identify security type
bool useApMode = false;
bool foundInactive = false;
......
Supports Markdown
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