diff options
author | Caroline Chao <caroline.chao@digia.com> | 2013-02-25 12:52:31 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-25 18:58:20 +0100 |
commit | 5a9b4219469890777044ce315b1410ff5adccf5d (patch) | |
tree | 2891e96ac0e0c5e866c513374e59d245e273cb7d | |
parent | 1194c467b29e98217a95c4d37864c85b34ec8317 (diff) | |
download | qtquickcontrols-5a9b4219469890777044ce315b1410ff5adccf5d.tar.gz |
ProgressBar: Update setValue to work with animation on value
Update the value only if the new value is different from
the previous value. Otherwise the value is not updated
when a number animation is set to the value.
Task-number: QTCOMPONENTS-1306
Change-Id: Ide187ff70a666ba4109cf4e785ad5171c8088e36
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
-rw-r--r-- | src/controls/ProgressBar.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controls/ProgressBar.qml b/src/controls/ProgressBar.qml index 74d63390..12a7c140 100644 --- a/src/controls/ProgressBar.qml +++ b/src/controls/ProgressBar.qml @@ -126,7 +126,8 @@ Control { } else if (v < minimumValue) { newval = minimumValue } - value = newval + if (value !== newval) + value = newval } } } |