From c6b2dd879d02b21b18f80faab541f8f04286685a Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 23 Jun 2017 13:36:13 +0200 Subject: Move property cache from the engine to QQmlType Now that the property cache is independent of a specific engine, we can cache them in QQmlType instead of caching them per engine. This simplifies the logic and avoids duplicated property caches when multiple engines are running. Task-number: QTBUG-61536 Change-Id: I6f082e1e7495ae0f5b92559e8d0a3437c56e303a Reviewed-by: Lars Knoll --- src/qml/qml/qqmlmetatype_p.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/qml/qml/qqmlmetatype_p.h') diff --git a/src/qml/qml/qqmlmetatype_p.h b/src/qml/qml/qqmlmetatype_p.h index d17172a917..c577a9cc18 100644 --- a/src/qml/qml/qqmlmetatype_p.h +++ b/src/qml/qml/qqmlmetatype_p.h @@ -70,6 +70,7 @@ class QQmlTypeModule; class QHashedString; class QHashedStringRef; class QMutex; +class QQmlPropertyCache; namespace QV4 { struct String; } @@ -89,6 +90,8 @@ public: static QQmlType qmlType(const QUrl &url, bool includeNonFileImports = false); static QQmlType qmlTypeFromIndex(int); + static QQmlPropertyCache *propertyCache(const QMetaObject *metaObject); + static QMetaProperty defaultProperty(const QMetaObject *); static QMetaProperty defaultProperty(QObject *); static QMetaMethod defaultMethod(const QMetaObject *); -- cgit v1.2.3