path: root/src/corelib/kernel/qmetaobject_p.h
diff options
authorLars Knoll <>2020-08-04 10:35:46 +0200
committerLars Knoll <>2020-08-24 00:19:05 +0200
commit1697fbdf05ff643d617a9ba1614454926e86a3d9 (patch)
tree1c090fd9254ccedf33e724158e115157998304cf /src/corelib/kernel/qmetaobject_p.h
parent92b37676328a960bc092b1f3834233c550376457 (diff)
Deprecate the static int based API in QMetaType
And remove one of the type id to name mapping that still existed in QMetaType. QMetaTypeInterface can provide that, so there's no need to have a second copy of the data. qMetaTypeTypeInternal() can still map all the names of all builtin types to ids. That functionality is for now still required by moc and can't be removed yet. Change-Id: Ib4f8e9c71e1e7d99d52da9e44477c9a1f1805e57 Reviewed-by: Lars Knoll <>
Diffstat (limited to 'src/corelib/kernel/qmetaobject_p.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/kernel/qmetaobject_p.h b/src/corelib/kernel/qmetaobject_p.h
index 02ede4d376..0d6cd7396d 100644
--- a/src/corelib/kernel/qmetaobject_p.h
+++ b/src/corelib/kernel/qmetaobject_p.h
@@ -119,7 +119,7 @@ enum EnumFlags {
EnumIsScoped = 0x2
-extern int qMetaTypeTypeInternal(const char *);
+Q_CORE_EXPORT int qMetaTypeTypeInternal(const char *);
class QArgumentType
@@ -138,7 +138,7 @@ public:
QByteArray name() const
if (_type && _name.isEmpty())
- const_cast<QArgumentType *>(this)->_name = QMetaType::typeName(_type);
+ const_cast<QArgumentType *>(this)->_name = QMetaType(_type).name();
return _name;
bool operator==(const QArgumentType &other) const