animate from the current value, not from 0

BUG:231292

svn path=/trunk/KDE/kdelibs/; revision=1135492
This commit is contained in:
Marco Martin 2010-06-07 12:50:06 +00:00
parent b1b93f5047
commit 5b2983c17e

View File

@ -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();
}