summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2014-10-17 14:05:27 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-02-10 15:26:55 +0000
commit8c8303faad310d5bbe4abd2435a60c76d20cb1d6 (patch)
tree598374e1299662bf696c25da858e502eb1be29a8
parent0eab387b04713c0a52eeb688fe9fb92f33dd8015 (diff)
downloadqtquickcontrols-8c8303faad310d5bbe4abd2435a60c76d20cb1d6.tar.gz
Slider: fix handle position
Task-number: QTBUG-41255 Change-Id: I1f5a11659af750daf58410d42c92d3702e8c9f11 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
-rw-r--r--src/controls/Slider.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/controls/Slider.qml b/src/controls/Slider.qml
index 14d8566d..dbf67a26 100644
--- a/src/controls/Slider.qml
+++ b/src/controls/Slider.qml
@@ -175,8 +175,11 @@ Control {
/*! \internal */
property bool __horizontal: orientation === Qt.Horizontal
- /*! \internal */
- property real __handlePos: range.valueForPosition(__horizontal ? fakeHandle.x : fakeHandle.y)
+ /*! \internal
+ The extra arguments positionAtMinimum and positionAtMaximum are there to force
+ re-evaluation of the handle position when the constraints change (QTBUG-41255).
+ */
+ property real __handlePos: range.valueForPosition(__horizontal ? fakeHandle.x : fakeHandle.y, range.positionAtMinimum, range.positionAtMaximum)
activeFocusOnTab: true