API REVIEW: framesPerSecond(element) -> animationFramesPerSecond(element)

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

View File

@ -48,7 +48,7 @@ int Animator::animationFramesPerSecond(Plasma::Phase::Movement movement) const
return 20;
}
int Animator::framesPerSecond(Plasma::Phase::ElementAnimation animation) const
int Animator::animationFramesPerSecond(Plasma::Phase::ElementAnimation animation) const
{
Q_UNUSED(animation)
return 0;

View File

@ -46,7 +46,7 @@ public:
// Parameter definitions
virtual int animationFramesPerSecond(Plasma::Phase::Animation) const;
virtual int animationFramesPerSecond(Plasma::Phase::Movement) const;
virtual int framesPerSecond(Plasma::Phase::ElementAnimation) const;
virtual int animationFramesPerSecond(Plasma::Phase::ElementAnimation) const;
virtual int duration(Plasma::Phase::Animation) const;
virtual int duration(Plasma::Phase::Movement) const;
virtual int duration(Plasma::Phase::ElementAnimation) const;

View File

@ -397,7 +397,7 @@ Phase::AnimId Phase::animateElement(QGraphicsItem *item, ElementAnimation animat
state->curve = d->animator->curve(animation);
state->animation = animation;
//TODO: variance in times based on the value of animation
state->frames = d->animator->framesPerSecond(animation) / 5;
state->frames = d->animator->animationFramesPerSecond(animation) / 5;
state->currentFrame = 0;
state->interval = d->animator->duration(animation) / state->frames;
state->interval = (state->interval / MIN_TICK_RATE) * MIN_TICK_RATE;