install i18n iff hasn't been done yet

This commit is contained in:
Marco Martin 2013-08-28 13:53:42 +02:00
parent d78fdf1e5d
commit 82a880396f

View File

@ -58,20 +58,11 @@ void CoreBindingsPlugin::initializeEngine(QQmlEngine *engine, const char *uri)
ThemeProxy *theme = new ThemeProxy(engine);
context->setContextProperty("theme", theme);
/* KDeclarative kdeclarative;
if (!engine->rootContext()->contextObject()) {
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
kdeclarative.setupBindings();
}
registerDataEngineMetaTypes(scriptEngine);
*/
//qDebug() << "====> org.kde.plasma.core loaded.";
}
void CoreBindingsPlugin::registerTypes(const char *uri)