diff options
Diffstat (limited to 'src/corelib/kernel/qvariant.h')
-rw-r--r-- | src/corelib/kernel/qvariant.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/kernel/qvariant.h b/src/corelib/kernel/qvariant.h index 4b92da1ad4..810f4aac89 100644 --- a/src/corelib/kernel/qvariant.h +++ b/src/corelib/kernel/qvariant.h @@ -242,8 +242,9 @@ class Q_CORE_EXPORT QVariant inline void swap(QVariant &other) noexcept { qSwap(d, other.d); } - int typeId() const { return d.typeId(); } - int userType() const { return d.typeId(); } + int userType() const { return typeId(); } + int typeId() const { return metaType().id(); } + const char *typeName() const; QMetaType metaType() const; |