diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-10-16 06:17:55 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-10-16 06:17:55 (GMT) |
commit | dc66752f24442a0bb219a9a4810b47ba4ece3d5c (patch) | |
tree | 119c46d96d0bae62d3c7232b34a5d0176b7a1d59 /src/declarative/qml/qml.h | |
parent | f9a0533d2711d3efca48a80f6ff65098039d7b33 (diff) | |
download | Qt-dc66752f24442a0bb219a9a4810b47ba4ece3d5c.zip Qt-dc66752f24442a0bb219a9a4810b47ba4ece3d5c.tar.gz Qt-dc66752f24442a0bb219a9a4810b47ba4ece3d5c.tar.bz2 |
Fixes for Symbian.
Diffstat (limited to 'src/declarative/qml/qml.h')
-rw-r--r-- | src/declarative/qml/qml.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/declarative/qml/qml.h b/src/declarative/qml/qml.h index c437ef1..818b4e7 100644 --- a/src/declarative/qml/qml.h +++ b/src/declarative/qml/qml.h @@ -72,6 +72,20 @@ QT_MODULE(Declarative) #define QML_DECLARE_INTERFACE_HASMETATYPE(INTERFACE) \ QML_DECLARE_TYPE_HASMETATYPE(INTERFACE) +enum { /* TYPEINFO flags */ + QML_HAS_ATTACHED_PROPERTIES = 0x01, +}; + +#define QML_DECLARE_TYPEINFO(TYPE, FLAGS) \ +template <> \ +class QmlTypeInfo<TYPE > \ +{ \ +public: \ + enum { \ + hasAttachedProperties = (((FLAGS) & QML_HAS_ATTACHED_PROPERTIES) == QML_HAS_ATTACHED_PROPERTIES) \ + }; \ +}; + QT_BEGIN_NAMESPACE #if defined(Q_OS_SYMBIAN) |