diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-06-04 16:35:00 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2013-06-05 10:55:08 +0200 |
commit | f0e32d311a791910acef672b1ab9a2ac4a80171e (patch) | |
tree | b4af025e391eb84e8a5ec7e6ec550e35aeac5488 /tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | |
parent | c0a79111f7c08b482338df05e047da1ddbf95c9b (diff) |
Move QV8QObjectWrapper::newQObject into QV4::QObjectWrapper
...where it is just called wrap(), because it doesn't always create a new
JS wrapper for the QObject.
Change-Id: Ieed0fc97174eb51cd04df0149e715c234a5822bd
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index 261e0c2512..14dc6d9e52 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -2247,7 +2247,7 @@ void tst_qqmlecmascript::callQtInvokables() QV8Engine *engine = ep->v8engine(); - v8::Handle<v8::Object> object = engine->newQObject(o); + v8::Handle<v8::Object> object = QV4::QObjectWrapper::wrap(QV8Engine::getV4(engine), o); // Non-existent methods o->reset(); |