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 /src/qml/qml/qqmllistwrapper.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 'src/qml/qml/qqmllistwrapper.cpp')
-rw-r--r-- | src/qml/qml/qqmllistwrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmllistwrapper.cpp b/src/qml/qml/qqmllistwrapper.cpp index 6d49b54cf4..ec34905ca3 100644 --- a/src/qml/qml/qqmllistwrapper.cpp +++ b/src/qml/qml/qqmllistwrapper.cpp @@ -119,7 +119,7 @@ Value QmlListWrapper::getIndexed(Managed *m, ExecutionContext *ctx, uint index, quint32 count = w->property.count ? w->property.count(&w->property) : 0; if (index < count && w->property.at) - return w->v8->newQObject(w->property.at(&w->property, index)); + return QV4::QObjectWrapper::wrap(ctx->engine, w->property.at(&w->property, index)); return Value::undefinedValue(); } |