Doc: Simplify description of QKeySequenceEdit::maximumSequenceLength
Main purpose is to limit the number of keys a user can enter, so let's be explicit about this. 'Truncation' seems to happen only if the program programmatically sets a longer sequence to the edit, which is arguably a programming error and also shows up as a warning in the logging API. Pick-to: 6.5 Change-Id: I7b2b74e8dab44c5ad16ffefc25c5610708139353 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Laszlo Papp <lpapp@kde.org>
This commit is contained in:
parent
5d0b338f4d
commit
a4579121ca
@ -177,12 +177,8 @@ bool QKeySequenceEdit::isClearButtonEnabled() const
|
||||
\property QKeySequenceEdit::maximumSequenceLength
|
||||
\brief The maximum sequence length.
|
||||
|
||||
The value is clamped to [1-4] inclusive, i.e. the maximum value of the
|
||||
maximum sequence length is 4 driven by QKeySequence. The minimum value is
|
||||
1, which can be useful for single sequence, like a typical shortcut.
|
||||
|
||||
The QKeySequence stored in QKeySequenceEdit is truncated if longer than the
|
||||
value of this property.
|
||||
The maximum number of key sequences a user can enter. The value needs to
|
||||
be between 1 and 4, with 4 being the default.
|
||||
|
||||
\since 6.5
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user