diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2019-12-09 10:37:28 +0100 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2020-02-25 15:43:15 +0100 |
commit | a68e4f3b96a82a93898f381e8ddc7f50f9c89d40 (patch) | |
tree | 3c9261a96178ac053ab1b777997aa6566d02be3f /src/corelib/kernel/qmetatype.h | |
parent | 5e908ada6759b27cd50cf860b8028f8bd0d6c94c (diff) |
Use the new QMetaType API in QVariant
Change-Id: I5495ee1159864ebd64083fadbfac7e07177ed406
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qmetatype.h')
-rw-r--r-- | src/corelib/kernel/qmetatype.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/kernel/qmetatype.h b/src/corelib/kernel/qmetatype.h index 7e10be7def..8bc560dc6c 100644 --- a/src/corelib/kernel/qmetatype.h +++ b/src/corelib/kernel/qmetatype.h @@ -495,7 +495,8 @@ public: TrackingPointerToQObject = 0x80, WasDeclaredAsMetaType = 0x100, IsGadget = 0x200, - PointerToGadget = 0x400 + PointerToGadget = 0x400, + IsPointer = 0x800, }; Q_DECLARE_FLAGS(TypeFlags, TypeFlag) @@ -692,6 +693,7 @@ public: static bool registerConverterFunction(const QtPrivate::AbstractConverterFunction *f, int from, int to); static void unregisterConverterFunction(int from, int to); private: + friend class QVariant; QtPrivate::QMetaTypeInterface *d_ptr = nullptr; }; @@ -1708,6 +1710,7 @@ namespace QtPrivate { | (std::is_enum<T>::value ? QMetaType::IsEnumeration : 0) | (IsGadgetHelper<T>::IsGadgetOrDerivedFrom ? QMetaType::IsGadget : 0) | (IsPointerToGadgetHelper<T>::IsGadgetOrDerivedFrom ? QMetaType::PointerToGadget : 0) + | (QTypeInfo<T>::isPointer ? QMetaType::IsPointer : 0) }; }; |