From f0e32d311a791910acef672b1ab9a2ac4a80171e Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 4 Jun 2013 16:35:00 +0200 Subject: 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 --- src/qml/qml/qqmllistwrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/qml/qqmllistwrapper.cpp') 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(); } -- cgit v1.2.3