register the animation enums

svn path=/trunk/KDE/kdebase/runtime/; revision=1090654
This commit is contained in:
Aaron J. Seigo 2010-02-15 18:08:32 +00:00
parent d0c51018c0
commit 361ffdbbb9

View File

@ -446,7 +446,9 @@ QScriptValue SimpleJavaScriptApplet::animation(QScriptContext *context, QScriptE
anim->setTargetWidget(parent); anim->setTargetWidget(parent);
} }
return engine->newQObject(anim); QScriptValue value = engine->newQObject(anim);
static_cast<ScriptEnv*>(engine)->registerEnums(value, *anim->metaObject());
return value;
} }
} }