summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlpropertycache_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlpropertycache_p.h')
-rw-r--r--src/declarative/qml/qmlpropertycache_p.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlpropertycache_p.h b/src/declarative/qml/qmlpropertycache_p.h
index 91b0c53..6c3142a 100644
--- a/src/declarative/qml/qmlpropertycache_p.h
+++ b/src/declarative/qml/qmlpropertycache_p.h
@@ -55,16 +55,17 @@
#include <private/qmlrefcount_p.h>
#include <private/qscriptdeclarativeclass_p.h>
+#include <private/qmlcleanup_p.h>
#include <QtCore/qvector.h>
QT_BEGIN_NAMESPACE
class QmlEngine;
class QMetaProperty;
-class QmlPropertyCache : public QmlRefCount
+class QmlPropertyCache : public QmlRefCount, public QmlCleanup
{
public:
- QmlPropertyCache();
+ QmlPropertyCache(QmlEngine *);
virtual ~QmlPropertyCache();
struct Data {
@@ -112,6 +113,9 @@ public:
Data *property(const QString &) const;
Data *property(int) const;
+protected:
+ virtual void clear();
+
private:
struct RData : public Data, public QmlRefCount {
QScriptDeclarativeClass::PersistentIdentifier identifier;