aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmltype_p_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmltype_p_p.h')
-rw-r--r--src/qml/qml/qqmltype_p_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/qml/qqmltype_p_p.h b/src/qml/qml/qqmltype_p_p.h
index 51984dd360..380139f385 100644
--- a/src/qml/qml/qqmltype_p_p.h
+++ b/src/qml/qml/qqmltype_p_p.h
@@ -59,19 +59,17 @@
QT_BEGIN_NAMESPACE
-class QQmlTypePrivate
+class QQmlTypePrivate : public QQmlRefCount
{
- Q_DISABLE_COPY(QQmlTypePrivate)
+ Q_DISABLE_COPY_MOVE(QQmlTypePrivate)
public:
QQmlTypePrivate(QQmlType::RegistrationType type);
- ~QQmlTypePrivate();
void init() const;
void initEnums(const QQmlPropertyCache *cache = nullptr) const;
void insertEnums(const QMetaObject *metaObject) const;
void insertEnumsFromPropertyCache(const QQmlPropertyCache *cache) const;
- QAtomicInt refCount;
QQmlType::RegistrationType regType;
struct QQmlCppTypeData
@@ -143,6 +141,8 @@ public:
void setName(const QString &uri, const QString &element);
private:
+ ~QQmlTypePrivate() override;
+
struct EnumInfo {
QStringList path;
QString metaObjectName;