API REVIEW: curve(animation) -> animationCurve(animation)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800745
This commit is contained in:
parent
2e3b672a04
commit
921afdb3db
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user