diff options
| author | Ivan Solovev <ivan.solovev@qt.io> | 2024-11-21 11:27:29 +0100 |
|---|---|---|
| committer | Ivan Solovev <ivan.solovev@qt.io> | 2024-11-28 15:51:08 +0100 |
| commit | a13eb28329b08c53085bc2902c4a99d0758f972c (patch) | |
| tree | e0c5c03238b6c4dd32439737f4a404146f56313c /examples/opengl/cube/mainwidget.cpp | |
| parent | 07c5ff8246b568f2d89e8b0e8236b1ec517e16b5 (diff) | |
Long-live QT_REMOVAL_QT7_DEPRECATED_SINCE(major, minor)
... and QT_REMOVAL_QT8_DEPRECATED_SINCE.
Following up on the discussion from the Qt CS 2024 [0], this patch
introduces a new macro to mark the deprecated APIs that will be
removed in a specific major release. For now, add the macros
for Qt 7 and Qt 8.
The macro should be used instead of the regular
QT_DEPRECATED_SINCE(maj, min) for such type of APIs. The usage
is the same, as with the regular macro:
#if QT_REMOVAL_QT7_DEPRECATED_SINCE(6, 9)
QT_DEPRECATED_VERSION_X_6_9("The reason for the deprecation")
void deprecatedFunc();
#endif
The macro is basically a combination of QT_DEPRECATED_SINCE and
a comparison against a certain Qt major version.
[0]: https://wiki.qt.io/QtCS2024_Deprecate
Task-number: QTBUG-130024
Change-Id: I8efa1920d9d1524250bb00446aefffae65210340
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'examples/opengl/cube/mainwidget.cpp')
0 files changed, 0 insertions, 0 deletions
