API REVIEW: curve(animation) -> animationCurve(animation)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800745
This commit is contained in:
Davide Bettio 2008-04-24 19:18:28 +00:00
parent 2e3b672a04
commit 921afdb3db
3 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ int Animator::elementAnimationDuration(Plasma::Phase::ElementAnimation) const
return 333; return 333;
} }
Phase::CurveShape Animator::curve(Plasma::Phase::Animation) const Phase::CurveShape Animator::animationCurve(Plasma::Phase::Animation) const
{ {
return Phase::EaseInOutCurve; return Phase::EaseInOutCurve;
} }

View File

@ -50,7 +50,7 @@ public:
virtual int animationDuration(Plasma::Phase::Animation) const; virtual int animationDuration(Plasma::Phase::Animation) const;
virtual int movementAnimationDuration(Plasma::Phase::Movement) const; virtual int movementAnimationDuration(Plasma::Phase::Movement) const;
virtual int elementAnimationDuration(Plasma::Phase::ElementAnimation) const; virtual int elementAnimationDuration(Plasma::Phase::ElementAnimation) const;
virtual Phase::CurveShape curve(Plasma::Phase::Animation) const; virtual Phase::CurveShape animationCurve(Plasma::Phase::Animation) const;
virtual Phase::CurveShape curve(Plasma::Phase::Movement) const; virtual Phase::CurveShape curve(Plasma::Phase::Movement) const;
virtual Phase::CurveShape curve(Plasma::Phase::ElementAnimation) const; virtual Phase::CurveShape curve(Plasma::Phase::ElementAnimation) const;

View File

@ -274,7 +274,7 @@ void Phase::animateItem(QGraphicsItem* item, Animation animation)
AnimationState* state = new AnimationState; AnimationState* state = new AnimationState;
state->item = item; state->item = item;
state->animation = animation; state->animation = animation;
state->curve = d->animator->curve(animation); state->curve = d->animator->animationCurve(animation);
//TODO: variance in times based on the value of animation //TODO: variance in times based on the value of animation
state->frames = frames / 3; state->frames = frames / 3;
state->currentFrame = 0; state->currentFrame = 0;