diff options
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 }; |
