API REVIEW: animationFramesPerSecond(movement) -> movementAnimationFramesPerSecond(movement)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800733
This commit is contained in:
parent
f197c428b4
commit
27954bc347
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user