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 {
|
PlasmaCore.FrameSvgItem {
|
||||||
id: indicator
|
id: indicator
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: control.indeterminate ? units.gridUnit * 2 : parent.width * control.position
|
width: parent.width * control.position
|
||||||
imagePath: "widgets/bar_meter_horizontal"
|
imagePath: "widgets/bar_meter_horizontal"
|
||||||
prefix: "bar-active"
|
prefix: "bar-active"
|
||||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||||
@ -35,6 +35,9 @@ T.ProgressBar {
|
|||||||
alwaysRunToEnd: true
|
alwaysRunToEnd: true
|
||||||
running: control.indeterminate && control.visible
|
running: control.indeterminate && control.visible
|
||||||
|
|
||||||
|
onStarted: indicator.width = units.gridUnit * 2
|
||||||
|
onStopped: indicator.width = parent.width * control.position
|
||||||
|
|
||||||
PropertyAnimation {
|
PropertyAnimation {
|
||||||
target: indicator
|
target: indicator
|
||||||
property: "x"
|
property: "x"
|
||||||
|
Loading…
Reference in New Issue
Block a user