API REVIEW: duration(movement) -> movementAnimationDuration(movement)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800740
This commit is contained in:
Davide Bettio 2008-04-24 19:05:51 +00:00
parent 8387f8651e
commit 2c169f97ff
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ int Animator::animationDuration(Plasma::Phase::Animation) const
return 200;
}
int Animator::duration(Plasma::Phase::Movement movement) const
int Animator::movementAnimationDuration(Plasma::Phase::Movement movement) const
{
switch (movement) {
case Phase::FastSlideIn:

View File

@ -48,7 +48,7 @@ public:
virtual int movementAnimationFramesPerSecond(Plasma::Phase::Movement) const;
virtual int elementAnimationFramesPerSecond(Plasma::Phase::ElementAnimation) const;
virtual int animationDuration(Plasma::Phase::Animation) const;
virtual int duration(Plasma::Phase::Movement) const;
virtual int movementAnimationDuration(Plasma::Phase::Movement) const;
virtual int duration(Plasma::Phase::ElementAnimation) const;
virtual Phase::CurveShape curve(Plasma::Phase::Animation) const;
virtual Phase::CurveShape curve(Plasma::Phase::Movement) const;

View File

@ -323,7 +323,7 @@ void Phase::moveItem(QGraphicsItem* item, Movement movement, const QPoint &desti
//TODO: variance in times based on the value of animation
state->frames = frames / 2;
state->currentFrame = 0;
state->interval = d->animator->duration(movement) / state->frames;
state->interval = d->animator->movementAnimationDuration(movement) / state->frames;
state->interval = (state->interval / MIN_TICK_RATE) * MIN_TICK_RATE;
state->currentInterval = state->interval;
state->qobj = dynamic_cast<QObject*>(item);