summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcustomparser_p.h
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-07-23 01:32:46 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-07-23 01:32:46 (GMT)
commit6f7b1c9270131d2a55218b14f3ec29cc553c8e2f (patch)
tree8161b08aad3e0cad07983707f0e4482cee0a36db /src/declarative/qml/qmlcustomparser_p.h
parent8987d9c2946d2cc565cec562393ee3627582699f (diff)
downloadQt-6f7b1c9270131d2a55218b14f3ec29cc553c8e2f.zip
Qt-6f7b1c9270131d2a55218b14f3ec29cc553c8e2f.tar.gz
Qt-6f7b1c9270131d2a55218b14f3ec29cc553c8e2f.tar.bz2
Allow span of versions to be defined, not just one.
Span is from version where introduced (all 4.6) to current QT_VERSION.
Diffstat (limited to 'src/declarative/qml/qmlcustomparser_p.h')
-rw-r--r--src/declarative/qml/qmlcustomparser_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlcustomparser_p.h b/src/declarative/qml/qmlcustomparser_p.h
index 63144d6..3d55d3e 100644
--- a/src/declarative/qml/qmlcustomparser_p.h
+++ b/src/declarative/qml/qmlcustomparser_p.h
@@ -112,8 +112,8 @@ public:
virtual QByteArray compile(const QList<QmlCustomParserProperty> &, bool *ok);
virtual void setCustomData(QObject *, const QByteArray &);
};
-#define QML_DEFINE_CUSTOM_TYPE(URI, VERSION, NAME, TYPE, CUSTOMTYPE) \
- template<> QmlPrivate::InstanceType QmlPrivate::Define<TYPE *>::instance(qmlRegisterCustomType<TYPE>(#URI, #VERSION, #NAME, #TYPE, new CUSTOMTYPE));
+#define QML_DEFINE_CUSTOM_TYPE(URI, VERSION_MAJ, VERSION_MIN_FROM, VERSION_MAJ_TO, NAME, TYPE, CUSTOMTYPE) \
+ template<> QmlPrivate::InstanceType QmlPrivate::Define<TYPE *>::instance(qmlRegisterCustomType<TYPE>(#URI, VERSION_MAJ, VERSION_MIN_FROM, VERSION_MAJ_TO, #NAME, #TYPE, new CUSTOMTYPE));
QT_END_NAMESPACE