From 5b2983c17ef66bdadab7c621c2f4c30a562a4126 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 7 Jun 2010 12:50:06 +0000 Subject: [PATCH] animate from the current value, not from 0 BUG:231292 svn path=/trunk/KDE/kdelibs/; revision=1135492 --- widgets/meter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/meter.cpp b/widgets/meter.cpp index 0be8d2c54..5ed4b46af 100644 --- a/widgets/meter.cpp +++ b/widgets/meter.cpp @@ -311,7 +311,7 @@ void Meter::setValue(int value) d->value = value; update(); } else { - d->animation->setStartValue(0); + d->animation->setStartValue(d->value); d->animation->setEndValue(value); d->animation->start(); }