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);
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user