summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@qt.io>2017-10-10 10:29:50 +0200
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2017-10-10 10:54:35 +0000
commit2430cc139437dac021b6028d8ba8799c50bd0e6c (patch)
treefc94333b1290fa81352ab09950b9302888348eaa /src
parent1a5567b29f4e2c3ffda3626656ef521013ff69ee (diff)
downloadqtquickcontrols-2430cc139437dac021b6028d8ba8799c50bd0e6c.tar.gz
Update slider handle position when maximum changes
This is exactly the same as the minimum change, when the maximum is changed, the handle position needs to be re-evaluated. Task-number: QTBUG-63354 Change-Id: I13a67451190a3bb7915afe8e89501097c1dd3301 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/controls/Slider.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controls/Slider.qml b/src/controls/Slider.qml
index a90bc022..aa5fe07e 100644
--- a/src/controls/Slider.qml
+++ b/src/controls/Slider.qml
@@ -177,10 +177,10 @@ Control {
/*! \internal
The extra arguments positionAtMinimum and positionAtMaximum are there to force
re-evaluation of the handle position when the constraints change (QTBUG-41255),
- and the same for range.minimumValue (QTBUG-51765).
+ and the same for range.minimumValue (QTBUG-51765) and range.maximumValue (QTBUG-63354).
*/
property real __handlePos: range.valueForPosition(__horizontal ? fakeHandle.x : fakeHandle.y,
- range.positionAtMinimum, range.positionAtMaximum, range.minimumValue)
+ range.positionAtMinimum, range.positionAtMaximum, range.minimumValue, range.maximumValue)
activeFocusOnTab: true