register enums in the scriptengine

This commit is contained in:
Marco Martin 2011-02-25 22:11:11 +01:00
parent d8457ecd8d
commit 888d964d22

View File

@ -374,6 +374,8 @@ void DeclarativeAppletScript::setupObjects()
QScriptValue fun = m_engine->newFunction(DeclarativeAppletScript::loadui);
global.setProperty("loadui", fun);
ScriptEnv::registerEnums(global, AppletInterface::staticMetaObject);
bindI18N(m_engine);
global.setProperty("dataEngine", m_engine->newFunction(DeclarativeAppletScript::dataEngine));
global.setProperty("service", m_engine->newFunction(DeclarativeAppletScript::service));