diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-08-05 15:29:18 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-08-05 15:29:18 (GMT) |
commit | 43ab9a27363681c5db81004c95141b3d0695cabd (patch) | |
tree | de9997688b7c007e57001607d4623c328346e05f /src/script/api/qscriptengine.cpp | |
parent | a11921c7ae4428cfaa53356dbc0b3415a297e083 (diff) | |
download | Qt-43ab9a27363681c5db81004c95141b3d0695cabd.zip Qt-43ab9a27363681c5db81004c95141b3d0695cabd.tar.gz Qt-43ab9a27363681c5db81004c95141b3d0695cabd.tar.bz2 |
make QScriptEngine::newQMetaObject() work
Diffstat (limited to 'src/script/api/qscriptengine.cpp')
-rw-r--r-- | src/script/api/qscriptengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp index 02a5e2d..9abc5da 100644 --- a/src/script/api/qscriptengine.cpp +++ b/src/script/api/qscriptengine.cpp @@ -1208,7 +1208,7 @@ JSC::JSValue QScriptEnginePrivate::newQMetaObject( if (!metaObject) return JSC::jsNull(); JSC::ExecState* exec = currentFrame; - QScript::QMetaObjectWrapperObject *result = new (exec) QScript::QMetaObjectWrapperObject(metaObject, ctor, qmetaobjectWrapperObjectStructure); + QScript::QMetaObjectWrapperObject *result = new (exec) QScript::QMetaObjectWrapperObject(exec, metaObject, ctor, qmetaobjectWrapperObjectStructure); return result; } |