diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2022-07-11 11:32:49 +0200 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2022-07-21 19:59:07 +0200 |
commit | 24de000a9cb0b2dc2f959fa65502ef805a4fc544 (patch) | |
tree | be0645f607cdcb1690f210a75873745cfc26b927 /src/gui/kernel/qcursor.h | |
parent | 6a0e59ed506ecb7d6a1bc17beedd938d36a1d26f (diff) |
QCursor: add missing QT_DEPRECATED_VERSION_X_6_0 for deprecated methods
When the method is wrapped into
if QT_DEPRECATED_SINCE(MAJ, MIN)
we also need to add QT_DEPRECATED_VERSION_[X_]_MAJ_MIN macro right in
front of the method declaraion, to actually trigger a deprecation
warning.
This patch does that for QCursor's deprecated methods, and fixes all
related compilation warnings in QtBase.
Task-number: QTBUG-104857
Pick-to: 6.4 6.3 6.2
Change-Id: Ic8d059e8c852d4b2dee55e7ea94f4fc7a402cdf4
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/gui/kernel/qcursor.h')
-rw-r--r-- | src/gui/kernel/qcursor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qcursor.h b/src/gui/kernel/qcursor.h index 3c1b63277c..1d94d65ce4 100644 --- a/src/gui/kernel/qcursor.h +++ b/src/gui/kernel/qcursor.h @@ -62,7 +62,9 @@ public: void setShape(Qt::CursorShape newShape); #if QT_DEPRECATED_SINCE(6, 0) + QT_DEPRECATED_VERSION_X_6_0("Use the overload without argument instead.") QBitmap bitmap(Qt::ReturnByValueConstant) const { return bitmap(); } + QT_DEPRECATED_VERSION_X_6_0("Use the overload without argument instead.") QBitmap mask(Qt::ReturnByValueConstant) const { return mask(); } #endif // QT_DEPRECATED_SINCE(6, 0) QBitmap bitmap() const; |