animationFramesPerSecond(element) -> elementAnimationFramesPerSecond(element)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800735
This commit is contained in:
Davide Bettio 2008-04-24 18:45:47 +00:00
parent 27954bc347
commit eb378c78fd
3 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ int Animator::movementAnimationFramesPerSecond(Plasma::Phase::Movement movement)
return 20;
}
int Animator::animationFramesPerSecond(Plasma::Phase::ElementAnimation animation) const
int Animator::elementAnimationFramesPerSecond(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 movementAnimationFramesPerSecond(Plasma::Phase::Movement) const;
virtual int animationFramesPerSecond(Plasma::Phase::ElementAnimation) const;
virtual int elementAnimationFramesPerSecond(Plasma::Phase::ElementAnimation) const;
virtual int animationDuration(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->animationFramesPerSecond(animation) / 5;
state->frames = d->animator->elementAnimationFramesPerSecond(animation) / 5;
state->currentFrame = 0;
state->interval = d->animator->duration(animation) / state->frames;
state->interval = (state->interval / MIN_TICK_RATE) * MIN_TICK_RATE;