From 361ffdbbb9c08f0f83c22c66a84905b4ab31c8bd Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Mon, 15 Feb 2010 18:08:32 +0000 Subject: [PATCH] register the animation enums svn path=/trunk/KDE/kdebase/runtime/; revision=1090654 --- scriptengines/javascript/simplejavascriptapplet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } }