summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qmetatype.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/kernel/qmetatype.h')
-rw-r--r--src/corelib/kernel/qmetatype.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/corelib/kernel/qmetatype.h b/src/corelib/kernel/qmetatype.h
index 53bfa769ac..08b2fb083a 100644
--- a/src/corelib/kernel/qmetatype.h
+++ b/src/corelib/kernel/qmetatype.h
@@ -2112,6 +2112,21 @@ namespace QtPrivate {
};
}
+namespace QtMetaTypePrivate {
+inline Q_DECL_CONSTEXPR bool isBuiltinSequentialType(int typeId)
+{
+ return typeId == qMetaTypeId<QStringList>()
+ || typeId == qMetaTypeId<QByteArrayList>()
+ || typeId == qMetaTypeId<QVariantList>();
+}
+
+inline Q_DECL_CONSTEXPR bool isBuiltinAssociativeType(int typeId)
+{
+ return typeId == qMetaTypeId<QVariantHash>()
+ || typeId == qMetaTypeId<QVariantMap>();
+}
+} // QtMetaTypePrivate
+
QT_END_NAMESPACE
#endif // QMETATYPE_H