From d3d8107e882303429be88c0c4248276c0b30eed8 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 28 May 2012 14:43:02 +0200 Subject: [PATCH] reset position when not indeterminate anymore --- declarativeimports/plasmacomponents/qml/ProgressBar.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/declarativeimports/plasmacomponents/qml/ProgressBar.qml b/declarativeimports/plasmacomponents/qml/ProgressBar.qml index 4f88cba6f..bdfe685c8 100644 --- a/declarativeimports/plasmacomponents/qml/ProgressBar.qml +++ b/declarativeimports/plasmacomponents/qml/ProgressBar.qml @@ -144,6 +144,12 @@ Item { loops: Animation.Infinite + onRunningChanged: { + if (!running) { + barPixmapItem.x = 0 + } + } + PropertyAnimation { target: barPixmapItem property: "x"