summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2022-09-30 16:35:04 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2022-10-01 12:44:48 +0200
commit91055b66e49cf3136b59692054cdb4b76247ac53 (patch)
tree5d6267f10b54bc20e4a7fac264322e6723156eaf /src/gui/kernel
parentc9e19cf9d318efc7c736c3adfac91f9161beaa42 (diff)
Properly deprecate QStyleHints::keyboardAutoRepeatRate()
The property also needs a QT_DEPRECATED_SINCE guard, and we can specify the version in the qdoc \deprecated tag. Change-Id: Ib333df862d1ef1c0c41a1baf51691928a64ecd75 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qstylehints.cpp2
-rw-r--r--src/gui/kernel/qstylehints.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qstylehints.cpp b/src/gui/kernel/qstylehints.cpp
index f932caaae5..69de74e2c3 100644
--- a/src/gui/kernel/qstylehints.cpp
+++ b/src/gui/kernel/qstylehints.cpp
@@ -283,7 +283,7 @@ int QStyleHints::keyboardInputInterval() const
\property QStyleHints::keyboardAutoRepeatRate
\brief the rate, in events per second, in which additional repeated key
presses will automatically be generated if a key is being held down.
- \deprecated Use keyboardAutoRepeatRateF() instead
+ \deprecated [6.5] Use keyboardAutoRepeatRateF() instead
*/
int QStyleHints::keyboardAutoRepeatRate() const
{
diff --git a/src/gui/kernel/qstylehints.h b/src/gui/kernel/qstylehints.h
index 37e742a24d..8321b6189e 100644
--- a/src/gui/kernel/qstylehints.h
+++ b/src/gui/kernel/qstylehints.h
@@ -19,7 +19,9 @@ class Q_GUI_EXPORT QStyleHints : public QObject
Q_DECLARE_PRIVATE(QStyleHints)
Q_PROPERTY(int cursorFlashTime READ cursorFlashTime NOTIFY cursorFlashTimeChanged FINAL)
Q_PROPERTY(qreal fontSmoothingGamma READ fontSmoothingGamma STORED false CONSTANT FINAL)
+#if QT_DEPRECATED_SINCE(6, 5)
Q_PROPERTY(int keyboardAutoRepeatRate READ keyboardAutoRepeatRate STORED false CONSTANT FINAL)
+#endif
Q_PROPERTY(int keyboardAutoRepeatRateF READ keyboardAutoRepeatRateF STORED false CONSTANT FINAL)
Q_PROPERTY(int keyboardInputInterval READ keyboardInputInterval
NOTIFY keyboardInputIntervalChanged FINAL)