API REVIEW: curve(movement) -> movementAnimationCurve(movement)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800747
This commit is contained in:
parent
921afdb3db
commit
0dc5009d81
@ -83,7 +83,7 @@ Phase::CurveShape Animator::animationCurve(Plasma::Phase::Animation) const
|
|||||||
return Phase::EaseInOutCurve;
|
return Phase::EaseInOutCurve;
|
||||||
}
|
}
|
||||||
|
|
||||||
Phase::CurveShape Animator::curve(Plasma::Phase::Movement) const
|
Phase::CurveShape Animator::movementAnimationCurve(Plasma::Phase::Movement) const
|
||||||
{
|
{
|
||||||
return Phase::EaseInOutCurve;
|
return Phase::EaseInOutCurve;
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ public:
|
|||||||
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 animationCurve(Plasma::Phase::Animation) const;
|
virtual Phase::CurveShape animationCurve(Plasma::Phase::Animation) const;
|
||||||
virtual Phase::CurveShape curve(Plasma::Phase::Movement) const;
|
virtual Phase::CurveShape movementAnimationCurve(Plasma::Phase::Movement) const;
|
||||||
virtual Phase::CurveShape curve(Plasma::Phase::ElementAnimation) const;
|
virtual Phase::CurveShape curve(Plasma::Phase::ElementAnimation) const;
|
||||||
|
|
||||||
// Element animations
|
// Element animations
|
||||||
|
@ -319,7 +319,7 @@ void Phase::moveItem(QGraphicsItem* item, Movement movement, const QPoint &desti
|
|||||||
state->start = item->pos().toPoint();
|
state->start = item->pos().toPoint();
|
||||||
state->item = item;
|
state->item = item;
|
||||||
state->movement = movement;
|
state->movement = movement;
|
||||||
state->curve = d->animator->curve(movement);
|
state->curve = d->animator->movementAnimationCurve(movement);
|
||||||
//TODO: variance in times based on the value of animation
|
//TODO: variance in times based on the value of animation
|
||||||
state->frames = frames / 2;
|
state->frames = frames / 2;
|
||||||
state->currentFrame = 0;
|
state->currentFrame = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user