install i18n iff hasn't been done yet
This commit is contained in:
parent
d78fdf1e5d
commit
82a880396f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user