API REVIEW: animationFramesPerSecond(movement) -> movementAnimationFramesPerSecond(movement)

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

View File

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

View File

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

View File

@ -307,7 +307,7 @@ void Phase::moveItem(QGraphicsItem* item, Movement movement, const QPoint &desti
d->movingItems.erase(it);
}
int frames = d->animator->animationFramesPerSecond(movement);
int frames = d->animator->movementAnimationFramesPerSecond(movement);
if (frames <= 1) {
// evidently this animator doesn't have an implementation
// for this Animation