Finish the animation before changing the length of the progressbar highlight
This messes with the running animation and can lead to it overshooting the track. BUG:428955
This commit is contained in:
parent
c5fa23f858
commit
472f4212a9
@ -21,7 +21,7 @@ T.ProgressBar {
|
||||
PlasmaCore.FrameSvgItem {
|
||||
id: indicator
|
||||
height: parent.height
|
||||
width: control.indeterminate ? units.gridUnit * 2 : parent.width * control.position
|
||||
width: parent.width * control.position
|
||||
imagePath: "widgets/bar_meter_horizontal"
|
||||
prefix: "bar-active"
|
||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
@ -35,6 +35,9 @@ T.ProgressBar {
|
||||
alwaysRunToEnd: true
|
||||
running: control.indeterminate && control.visible
|
||||
|
||||
onStarted: indicator.width = units.gridUnit * 2
|
||||
onStopped: indicator.width = parent.width * control.position
|
||||
|
||||
PropertyAnimation {
|
||||
target: indicator
|
||||
property: "x"
|
||||
|
Loading…
Reference in New Issue
Block a user