diff --git a/scriptengines/javascript/simplejavascriptapplet.cpp b/scriptengines/javascript/simplejavascriptapplet.cpp index 9733a2a1d..bed24d510 100644 --- a/scriptengines/javascript/simplejavascriptapplet.cpp +++ b/scriptengines/javascript/simplejavascriptapplet.cpp @@ -446,7 +446,9 @@ QScriptValue SimpleJavaScriptApplet::animation(QScriptContext *context, QScriptE anim->setTargetWidget(parent); } - return engine->newQObject(anim); + QScriptValue value = engine->newQObject(anim); + static_cast(engine)->registerEnums(value, *anim->metaObject()); + return value; } }