From 97420b076d8b81f7241dcbc1f4f30d1a197e8164 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: [PATCH] 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. Change-Id: I7b2b74e8dab44c5ad16ffefc25c5610708139353 Reviewed-by: Volker Hilsheimer Reviewed-by: Laszlo Papp (cherry picked from commit a4579121ca97522db18904cc46f520d263b3bd0d) Reviewed-by: Qt Cherry-pick Bot --- src/widgets/widgets/qkeysequenceedit.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/widgets/widgets/qkeysequenceedit.cpp b/src/widgets/widgets/qkeysequenceedit.cpp index dcdfde8a8d4..9a9bf256687 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 */