From a4579121ca97522db18904cc46f520d263b3bd0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Wed, 4 Jan 2023 17:08:52 +0100 Subject: 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 Reviewed-by: Laszlo Papp --- src/widgets/widgets/qkeysequenceedit.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/widgets') diff --git a/src/widgets/widgets/qkeysequenceedit.cpp b/src/widgets/widgets/qkeysequenceedit.cpp index dcdfde8a8d..9a9bf25668 100644 --- a/src/widgets/widgets/qkeysequenceedit.cpp +++ b/src/widgets/widgets/qkeysequenceedit.cpp @@ -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 */ -- cgit v1.2.3