Make enum values accessible as plasmoid.Planar etc
Any qml object that will be calles as an enum value, like Planar {} Application{} etc will make enums inaccessible. maintain them global, for retrocompatibility, but register them also under plasmoid
This commit is contained in:
parent
edad4c4043
commit
da4e133c6d
@ -471,6 +471,8 @@ void DeclarativeAppletScript::setupObjects()
|
||||
global.setProperty("loadui", fun);
|
||||
|
||||
ScriptEnv::registerEnums(global, AppletInterface::staticMetaObject);
|
||||
//Make enum values accessible also as plasmoid.Planer etc
|
||||
ScriptEnv::registerEnums(m_self, AppletInterface::staticMetaObject);
|
||||
|
||||
global.setProperty("dataEngine", m_engine->newFunction(DeclarativeAppletScript::dataEngine));
|
||||
global.setProperty("service", m_engine->newFunction(DeclarativeAppletScript::service));
|
||||
|
Loading…
Reference in New Issue
Block a user