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