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>
This commit is contained in:
parent
c9e19cf9d3
commit
91055b66e4
@ -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
|
||||
{
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user