redraw the parent item when the animation updates

to be backported

BUG: 166347
CCMAIL:panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=831975
This commit is contained in:
Marco Martin 2008-07-13 18:38:56 +00:00
parent 6e22253b97
commit a1ff7b38f4

View File

@ -616,6 +616,8 @@ void Animator::timerEvent(QTimerEvent *event)
<< state->currentFrame + qMax(1, elapsed / state->interval) << endl;*/
state->currentFrame += (KGlobalSettings::graphicEffectsLevel() & KGlobalSettings::SimpleAnimationEffects) ?
qMax(1, elapsed / state->interval) : state->frames - state->currentFrame;
state->item->update();
if (state->currentFrame < state->frames) {
state->currentInterval = state->interval;
//TODO: calculate a proper interval based on the curve