From 82a880396f0cb73a8f37eb080d7f29589699bb0a Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 28 Aug 2013 13:53:42 +0200 Subject: [PATCH] install i18n iff hasn't been done yet --- .../core/corebindingsplugin.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/declarativeimports/core/corebindingsplugin.cpp b/src/declarativeimports/core/corebindingsplugin.cpp index a9bff2d05..7bbdfe6db 100644 --- a/src/declarativeimports/core/corebindingsplugin.cpp +++ b/src/declarativeimports/core/corebindingsplugin.cpp @@ -58,20 +58,11 @@ void CoreBindingsPlugin::initializeEngine(QQmlEngine *engine, const char *uri) ThemeProxy *theme = new ThemeProxy(engine); context->setContextProperty("theme", theme); -/* KDeclarative kdeclarative; - kdeclarative.setDeclarativeEngine(engine); - kdeclarative.initialize(); - QScriptEngine *scriptEngine = kdeclarative.scriptEngine(); - - //inject the hack only if wasn't injected already - if (!scriptEngine->globalObject().property("i18n").isValid()) { - //binds things like kconfig and icons + if (!engine->rootContext()->contextObject()) { + KDeclarative kdeclarative; + kdeclarative.setDeclarativeEngine(engine); kdeclarative.setupBindings(); } - - registerDataEngineMetaTypes(scriptEngine); - */ - //qDebug() << "====> org.kde.plasma.core loaded."; } void CoreBindingsPlugin::registerTypes(const char *uri)