aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlmetatype_p.h
diff options
context:
space:
mode:
authorAlan Alpert <416365416c@gmail.com>2012-12-16 14:42:40 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-24 01:13:10 +0100
commiteab53ad9fe0aa9664702d446a704256f46106c56 (patch)
tree382ba51381f7deb57f4be24dc29650c5d420f188 /src/qml/qml/qqmlmetatype_p.h
parent0e856d7cb5280f19e93a0738a2eb11f70cf9f119 (diff)
Refactor QQmlTypePrivate
Now has a registrationType, and an extraData union for data only relevant to certain registration types. Change-Id: I9b127dff7955456aacb25138fa6ea8efb7bb9220 Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
Diffstat (limited to 'src/qml/qml/qqmlmetatype_p.h')
-rw-r--r--src/qml/qml/qqmlmetatype_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlmetatype_p.h b/src/qml/qml/qqmlmetatype_p.h
index 474eac184c..8d3aad519e 100644
--- a/src/qml/qml/qqmlmetatype_p.h
+++ b/src/qml/qml/qqmlmetatype_p.h
@@ -217,8 +217,9 @@ private:
enum RegistrationType {
CppType = 0,
- SingletonType = 1
- // In the future, we should register all types via QQmlType, including Composite types.
+ SingletonType = 1,
+ InterfaceType = 2
+ // In the near future, we should register all types via QQmlType, including Composite types.
};
friend QString registrationTypeString(RegistrationType);
friend bool checkRegistration(RegistrationType, QQmlMetaTypeData *, const char *, const QString &);