API REVIEW: framesPerSecond(element) -> animationFramesPerSecond(element)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800720
This commit is contained in:
parent
714755631d
commit
aa31688da7
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user