}; \
QT_END_NAMESPACE
-#define Q_DECLARE_BUILTIN_METATYPE(TYPE, NAME) \
+
+#define Q_DECLARE_BUILTIN_METATYPE(TYPE, METATYPEID, NAME) \
QT_BEGIN_NAMESPACE \
- template<> struct QMetaTypeId2<TYPE> \
+ template<> struct QMetaTypeId2<NAME> \
{ \
- enum { Defined = 1, MetaType = QMetaType::NAME }; \
- static inline Q_DECL_CONSTEXPR int qt_metatype_id() { return QMetaType::NAME; } \
+ enum { Defined = 1, MetaType = METATYPEID }; \
+ static inline Q_DECL_CONSTEXPR int qt_metatype_id() { return METATYPEID; } \
}; \
QT_END_NAMESPACE
QT_END_NAMESPACE
-#define QT_DECLARE_BUILTIN_METATYPE_ITER(MetaTypeName, MetaTypeId, Name) \
- Q_DECLARE_BUILTIN_METATYPE(Name, MetaTypeName)
-
-QT_FOR_EACH_STATIC_TYPE(QT_DECLARE_BUILTIN_METATYPE_ITER)
-
-#undef QT_DECLARE_BUILTIN_METATYPE_ITER
+QT_FOR_EACH_STATIC_TYPE(Q_DECLARE_BUILTIN_METATYPE)
QT_END_HEADER
QT_END_NAMESPACE
-Q_DECLARE_BUILTIN_METATYPE(QDBusConnectionInterface::RegisterServiceReply, UInt)
+Q_DECLARE_BUILTIN_METATYPE(UInt, QMetaType::UInt, QDBusConnectionInterface::RegisterServiceReply)
QT_END_HEADER