diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2014-11-07 01:34:29 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-11-10 17:15:11 +0100 |
commit | 4838cc89f000a2f1db4da6401fc79a75a7b86ad7 (patch) | |
tree | 112b34c7dce2591242036748f232db85bb138404 /src/qml/qml/qqmlcontextwrapper_p.h | |
parent | 4b850f3d1e79bb66a53f097ae7b7cc26db8cc2f8 (diff) |
Move data of some Qml related objects into Heap namespace.
Change-Id: I6e6b24466de1e49efd5f3eaa67db82873170445b
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcontextwrapper_p.h')
-rw-r--r-- | src/qml/qml/qqmlcontextwrapper_p.h | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/src/qml/qml/qqmlcontextwrapper_p.h b/src/qml/qml/qqmlcontextwrapper_p.h index e3a1d9b508..a8234e9cb7 100644 --- a/src/qml/qml/qqmlcontextwrapper_p.h +++ b/src/qml/qml/qqmlcontextwrapper_p.h @@ -62,21 +62,32 @@ struct Function; } struct QQmlIdObjectsArray; +struct QmlContextWrapper; + +namespace Heap { + +struct QmlContextWrapper : Object { + QmlContextWrapper(QV8Engine *engine, QQmlContextData *context, QObject *scopeObject, bool ownsContext = false); + ~QmlContextWrapper(); + bool readOnly; + bool ownsContext; + bool isNullWrapper; + + QQmlGuardedContextData context; + QPointer<QObject> scopeObject; + QQmlIdObjectsArray *idObjectsWrapper; +}; + +struct QQmlIdObjectsArray : Object { + QQmlIdObjectsArray(QV4::ExecutionEngine *engine, QV4::QmlContextWrapper *contextWrapper); + QV4::QmlContextWrapper *contextWrapper; +}; + +} struct Q_QML_EXPORT QmlContextWrapper : Object { - struct Data : Heap::Object { - Data(QV8Engine *engine, QQmlContextData *context, QObject *scopeObject, bool ownsContext = false); - ~Data(); - bool readOnly; - bool ownsContext; - bool isNullWrapper; - - QQmlGuardedContextData context; - QPointer<QObject> scopeObject; - QQmlIdObjectsArray *idObjectsWrapper; - }; - V4_OBJECT(Object) + V4_OBJECT2(QmlContextWrapper, Object) static ReturnedValue qmlScope(QV8Engine *e, QQmlContextData *ctxt, QObject *scope); static ReturnedValue urlScope(QV8Engine *e, const QUrl &); @@ -104,11 +115,7 @@ struct Q_QML_EXPORT QmlContextWrapper : Object struct QQmlIdObjectsArray : public Object { - struct Data : Heap::Object { - Data(ExecutionEngine *engine, QmlContextWrapper *contextWrapper); - QmlContextWrapper *contextWrapper; - }; - V4_OBJECT(Object) + V4_OBJECT2(QQmlIdObjectsArray, Object) static ReturnedValue getIndexed(Managed *m, uint index, bool *hasProperty); static void markObjects(Heap::Base *that, ExecutionEngine *engine); |