register animation enums

svn path=/branches/KDE/4.4/kdebase/runtime/; revision=1090659
This commit is contained in:
Aaron J. Seigo 2010-02-15 18:17:02 +00:00
parent f0775b0de4
commit 8b20a83b3d

View File

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