summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2023-01-04 17:08:52 +0100
committerKai Köhne <kai.koehne@qt.io>2023-01-18 08:24:01 +0100
commita4579121ca97522db18904cc46f520d263b3bd0d (patch)
treeb00eca80f58c913f0a365d4b979233275a8ac88f /src/widgets
parent5d0b338f4dec7bf457605a87330917818525d4b2 (diff)
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>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/widgets/qkeysequenceedit.cpp8
1 files changed, 2 insertions, 6 deletions
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
*/