diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2014-11-18 19:21:07 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-12-23 14:50:55 +0100 |
commit | e66cf24a8dfd010bf43b7ed92c8f5679ea848c0b (patch) | |
tree | c435dd60aad93f838576ef61e49642b9df34ccd3 /src/qml/qml/qqmlvaluetypewrapper_p.h | |
parent | 4c9eaa24a5d2c101b0afe9f605067e4d0c76f131 (diff) |
Reduce dependencies on QQmlValueType being a QObject
Don't rely on caching the property cache in the QQmlData of the value type,
instead we can cache is in the engine and store it in our object data.
Change-Id: I5f31313c066cd7918caf33e3fabdf5aac71f1adb
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlvaluetypewrapper_p.h')
-rw-r--r-- | src/qml/qml/qqmlvaluetypewrapper_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlvaluetypewrapper_p.h b/src/qml/qml/qqmlvaluetypewrapper_p.h index b729997674..24031800cd 100644 --- a/src/qml/qml/qqmlvaluetypewrapper_p.h +++ b/src/qml/qml/qqmlvaluetypewrapper_p.h @@ -62,6 +62,7 @@ namespace Heap { struct QQmlValueTypeWrapper : Object { QQmlValueTypeWrapper(ExecutionEngine *engine); + mutable QQmlRefPointer<QQmlPropertyCache> propertyCache; mutable QScopedPointer<QQmlValueType> type; }; |