diff --git a/animator.cpp b/animator.cpp index 939d604fb..71d901eac 100644 --- a/animator.cpp +++ b/animator.cpp @@ -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; diff --git a/animator.h b/animator.h index 5a69f492e..f2dcc204c 100644 --- a/animator.h +++ b/animator.h @@ -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; diff --git a/phase.cpp b/phase.cpp index 37031583a..4cc7b6e19 100644 --- a/phase.cpp +++ b/phase.cpp @@ -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