diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-12-06 12:34:36 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-12-06 21:55:06 +0100 |
commit | 6d6fb7846c664b3b15ae03542658f6beae96e0b2 (patch) | |
tree | 7c2445cfb13c5befc0e22448e9b33e2a52df5b6a /src/corelib/kernel/qmetatype.h | |
parent | 220510a885747bb084e23dc51ea31e35e4fd115e (diff) |
Add a const overload for QMetaType::iface()
Change-Id: I865dc51d466d90636e177556d95558ba66f466de
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qmetatype.h')
-rw-r--r-- | src/corelib/kernel/qmetatype.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/kernel/qmetatype.h b/src/corelib/kernel/qmetatype.h index 674404b143..c68809169c 100644 --- a/src/corelib/kernel/qmetatype.h +++ b/src/corelib/kernel/qmetatype.h @@ -733,7 +733,11 @@ public: static void unregisterMutableViewFunction(QMetaType from, QMetaType to); static void unregisterMetaType(QMetaType type); + +#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) const QtPrivate::QMetaTypeInterface *iface() { return d_ptr; } +#endif + const QtPrivate::QMetaTypeInterface *iface() const { return d_ptr; } private: int idHelper() const; |