diff options
author | Andy Shaw <andy.shaw@qt.io> | 2020-08-18 13:48:50 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-09-11 09:01:42 +0000 |
commit | 454ca2f441ae3d400255471a7ebe850c6779ad0e (patch) | |
tree | cc622395471c0de3d56ffdc2a344c81d12e0fb4f /src/quicktemplates2/qquickcontrol.cpp | |
parent | 1740afc07950fb0ae3aca0aad2534191805ff672 (diff) |
Update the text when the inputted value is out of range
When the inputted value is out of range but it would be fixed to the
previous value then it would not update the text correctly to show the
corrected value. This ensures that it is updated as appropriate.
Before it would check if the value had actually changed after it had
been fixed to the corrected value. So if it was corrected to the
original value then it would not see it as having changed. Additionally
the displayText also has the original text before the change, so we
have to force through an update to ensure the contentItem's text is
updated too.
Change-Id: Ic38787d0803ab59cd998f4e2871c613f1642e764
Fixes: QTBUG-85719
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit 97d2d271233246ed8a0d8930c9110603bf7b03bd)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/quicktemplates2/qquickcontrol.cpp')
0 files changed, 0 insertions, 0 deletions