register the animation enums
svn path=/trunk/KDE/kdebase/runtime/; revision=1090654
This commit is contained in:
parent
d0c51018c0
commit
361ffdbbb9
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user