diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2024-11-13 16:15:14 -0800 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2024-11-19 04:51:05 -0800 |
| commit | 0b044e8b055f9c1d93b278ed69aba76f7c886cb1 (patch) | |
| tree | 0a8b2d8c148f61f0a5f64635267ccb6e4188a623 /src/corelib/kernel/qobject.h | |
| parent | a9fe57fefaac0cb047e4c02e0b8c8f8327e0a58c (diff) | |
QObject: implement the ### Qt7 for dynamicMetaObject()
As requested in qtbase/5d174877234477a59eb29818d3cfb99fedc3e704.
Change-Id: I5f6568921a25918a5ae3fffdff7c136d3eb455a9
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/kernel/qobject.h')
| -rw-r--r-- | src/corelib/kernel/qobject.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/corelib/kernel/qobject.h b/src/corelib/kernel/qobject.h index 7393bbe209f..6b82a6ad4f6 100644 --- a/src/corelib/kernel/qobject.h +++ b/src/corelib/kernel/qobject.h @@ -90,9 +90,11 @@ public: QDynamicMetaObjectData *metaObject; QBindingStorage bindingStorage; - // ### Qt7: Make this return a const QMetaObject *. You should not mess with - // the metaobjects of existing objects. +#if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0) + const QMetaObject *dynamicMetaObject() const; +#else QMetaObject *dynamicMetaObject() const; +#endif #ifdef QT_DEBUG enum { CheckForParentChildLoopsWarnDepth = 4096 }; |
