diff options
author | Tor Arne Vestbø <[email protected]> | 2025-06-03 00:47:34 +0200 |
---|---|---|
committer | Tor Arne Vestbø <[email protected]> | 2025-06-04 14:07:07 +0200 |
commit | 4d4843df42007cac645ac2ec0caa83602da49a0c (patch) | |
tree | 63175811ba89c0e093046a9e40cea2646c576427 | |
parent | 2d82e845ccfcb2b5ae8ef96d79fb32d76dd89b23 (diff) |
The default value is 0x070000, via qtdeprecationdefinitions.h
Pick-to: 6.10 6.9 6.8
Change-Id: I78586231e123321a11d41ec8c1324ab928e5fdc8
Reviewed-by: Ivan Solovev <[email protected]>
-rw-r--r-- | src/corelib/global/qtdeprecationmarkers.qdoc | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/corelib/global/qtdeprecationmarkers.qdoc b/src/corelib/global/qtdeprecationmarkers.qdoc index 5d7517f75ed..1e66ff85b53 100644 --- a/src/corelib/global/qtdeprecationmarkers.qdoc +++ b/src/corelib/global/qtdeprecationmarkers.qdoc @@ -44,7 +44,22 @@ set to the same version as in the user code. That is because in static build the Qt libraries also become a part of the binary. - \sa QT_DEPRECATED_WARNINGS, QT_DISABLE_DEPRECATED_UP_TO + \sa QT_DEPRECATED_WARNINGS, QT_WARN_DEPRECATED_UP_TO +*/ + +/*! + \macro QT_WARN_DEPRECATED_UP_TO + \relates <QtDeprecationMarkers> + + This macro can be defined in the project file to disable deprecation + warnings introduced in Qt versions higher than the specified version. + + For instance, when preparing to upgrade to Qt 6.10, if you are not + ready to deal with every single deprecation warnings, you can set + \c{QT_WARN_DEPRECATED_UP_TO=0x060900} to limit the deprecation + warnings to those in 6.9 and earlier. + + \sa QT_DISABLE_DEPRECATED_UP_TO, QT_NO_DEPRECATED_WARNINGS */ /*! @@ -55,7 +70,7 @@ is defined, the compiler will generate warnings if any API declared as deprecated by Qt is used. - \sa QT_DISABLE_DEPRECATED_UP_TO, QT_NO_DEPRECATED_WARNINGS + \sa QT_DISABLE_DEPRECATED_UP_TO, QT_NO_DEPRECATED_WARNINGS, QT_WARN_DEPRECATED_UP_TO */ /*! @@ -66,5 +81,5 @@ This macro can be used to suppress deprecation warnings that would otherwise be generated when using deprecated APIs. - \sa QT_DISABLE_DEPRECATED_UP_TO + \sa QT_DISABLE_DEPRECATED_UP_TO, QT_WARN_DEPRECATED_UP_TO */ |