API REVIEW: duration(animation) -> animationDuration(animation)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800723
This commit is contained in:
parent
aa31688da7
commit
ab377f4f18
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user