diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2022-05-26 21:42:38 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-05-30 08:45:28 +0000 |
commit | 69e9c7e3b1ad9c601e7f3f1a1f80d5578bcfbfc9 (patch) | |
tree | aebfd09eee305d79f30c05051178f1825700abf7 | |
parent | aa67903259496a5644b9cbb4ee5a84f877795d94 (diff) |
Doc: clarify when SpinBox's valueModified signal is emitted
Task-number: QTBUG-103205
Change-Id: I0450c0218c5a3e14d373c0a39c29749c8bf958d5
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
(cherry picked from commit b1cdd12ac51412550b11089911f582d48f8cad82)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/quicktemplates2/qquickspinbox.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickspinbox.cpp b/src/quicktemplates2/qquickspinbox.cpp index d1990a4227..eda21b4532 100644 --- a/src/quicktemplates2/qquickspinbox.cpp +++ b/src/quicktemplates2/qquickspinbox.cpp @@ -105,6 +105,9 @@ static const int AUTO_REPEAT_INTERVAL = 100; This signal is emitted when the spin box value has been interactively modified by the user by either touch, mouse, wheel, or keys. + In the case of interaction via keyboard, the signal is only emitted + when the text has been accepted; meaning when the enter or return keys + are pressed, or the input field loses focus. */ class QQuickSpinBoxPrivate : public QQuickControlPrivate |