Commit 6a13f770 authored by Josh Faust's avatar Josh Faust Committed by The Qt Project
Browse files

Fix Base SliderStyle handle to work with minimumValue != 0


Task-number: QTBUG-31622

Change-Id: I7a61f3ed806d66735bf86d1438b0fd61f904b9a6
Reviewed-by: default avatarJens Bache-Wiig <jens.bache-wiig@digia.com>
parent 5d037b17
Branches
Tags
No related merge requests found
Showing with 1 addition and 1 deletion
......@@ -177,7 +177,7 @@ Style {
id: handleLoader
sourceComponent: handle
anchors.verticalCenter: grooveLoader.verticalCenter
x: Math.round(control.__handlePos / control.maximumValue * ((horizontal ? root.width : root.height) - item.width))
x: Math.round((control.__handlePos - control.minimumValue) / (control.maximumValue - control.minimumValue) * ((horizontal ? root.width : root.height) - item.width))
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment