diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2014-11-07 02:06:42 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-11-10 17:15:22 +0100 |
commit | fcf0203aafe6db09751835ce54fc32f51fc77d5a (patch) | |
tree | f5354c56af10c320b40fff9da4bba500ea8a1653 /src/qml/qml/qqmllistwrapper_p.h | |
parent | 4838cc89f000a2f1db4da6401fc79a75a7b86ad7 (diff) |
Move data of more Qml related objects into Heap namespace.
Change-Id: Ifb3a7093351474d6feb2f64498b531c36fdf669b
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmllistwrapper_p.h')
-rw-r--r-- | src/qml/qml/qqmllistwrapper_p.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/qml/qml/qqmllistwrapper_p.h b/src/qml/qml/qqmllistwrapper_p.h index f10ca21b08..e73f03f99b 100644 --- a/src/qml/qml/qqmllistwrapper_p.h +++ b/src/qml/qml/qqmllistwrapper_p.h @@ -59,17 +59,22 @@ class QV8Engine; namespace QV4 { +namespace Heap { + +struct QmlListWrapper : Object { + QmlListWrapper(QV8Engine *engine); + ~QmlListWrapper(); + QV8Engine *v8; + QPointer<QObject> object; + QQmlListProperty<QObject> property; + int propertyType; +}; + +} + struct Q_QML_EXPORT QmlListWrapper : Object { - struct Data : Heap::Object { - Data(QV8Engine *engine); - ~Data(); - QV8Engine *v8; - QPointer<QObject> object; - QQmlListProperty<QObject> property; - int propertyType; - }; - V4_OBJECT(Object) + V4_OBJECT2(QmlListWrapper, Object) static ReturnedValue create(QV8Engine *v8, QObject *object, int propId, int propType); static ReturnedValue create(QV8Engine *v8, const QQmlListProperty<QObject> &prop, int propType); |