API REVIEW: duration(animation) -> animationDuration(animation)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800723
This commit is contained in:
Davide Bettio 2008-04-24 18:20:58 +00:00
parent aa31688da7
commit ab377f4f18
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ int Animator::animationFramesPerSecond(Plasma::Phase::ElementAnimation animation
return 0;
}
int Animator::duration(Plasma::Phase::Animation) const
int Animator::animationDuration(Plasma::Phase::Animation) const
{
return 200;
}

View File

@ -47,7 +47,7 @@ public:
virtual int animationFramesPerSecond(Plasma::Phase::Animation) const;
virtual int animationFramesPerSecond(Plasma::Phase::Movement) const;
virtual int animationFramesPerSecond(Plasma::Phase::ElementAnimation) const;
virtual int duration(Plasma::Phase::Animation) const;
virtual int animationDuration(Plasma::Phase::Animation) const;
virtual int duration(Plasma::Phase::Movement) const;
virtual int duration(Plasma::Phase::ElementAnimation) const;
virtual Phase::CurveShape curve(Plasma::Phase::Animation) const;

View File

@ -278,7 +278,7 @@ void Phase::animateItem(QGraphicsItem* item, Animation animation)
//TODO: variance in times based on the value of animation
state->frames = frames / 3;
state->currentFrame = 0;
state->interval = d->animator->duration(animation) / state->frames;
state->interval = d->animator->animationDuration(animation) / state->frames;
state->interval = (state->interval / MIN_TICK_RATE) * MIN_TICK_RATE;
state->currentInterval = state->interval;
state->qobj = dynamic_cast<QObject*>(item);