diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-05-30 22:09:46 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-31 07:05:33 +0200 |
commit | c9e178e4f202ff4d32248682ed5e2cf5de75d0f8 (patch) | |
tree | 1bbb46a8a9b8b7aa48d2d81564a6e5c93ee952d0 /src/qml/qml/v8/qv8qobjectwrapper.cpp | |
parent | 80ec004e7c6411997e2476a2f2c9c9f4fb41217a (diff) |
Port the list wrapper over to v4
Also fix two places where we did a wrong type check.
Change-Id: Ibc988b1b38803ca6acf6914487415026910f744e
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/v8/qv8qobjectwrapper.cpp')
-rw-r--r-- | src/qml/qml/v8/qv8qobjectwrapper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/v8/qv8qobjectwrapper.cpp b/src/qml/qml/v8/qv8qobjectwrapper.cpp index 79f221e8bc..578eaea567 100644 --- a/src/qml/qml/v8/qv8qobjectwrapper.cpp +++ b/src/qml/qml/v8/qv8qobjectwrapper.cpp @@ -53,6 +53,7 @@ #include <private/qqmlglobal_p.h> #include <private/qqmltypewrapper_p.h> #include <private/qqmlcontextwrapper_p.h> +#include <private/qqmllistwrapper_p.h> #include <private/qv4functionobject_p.h> #include <private/qv4runtime_p.h> @@ -463,7 +464,7 @@ static v8::Handle<v8::Value> LoadProperty(QV8Engine *engine, QObject *object, ReadFunction(object, property, &rv, notifier); return engine->newQObject(rv); } else if (property.isQList()) { - return engine->listWrapper()->newList(object, property.coreIndex, property.propType); + return QmlListWrapper::create(engine, object, property.coreIndex, property.propType); } else if (property.propType == QMetaType::QReal) { qreal v = 0; ReadFunction(object, property, &v, notifier); |