API REVIEW: curve(element) -> elementAnimationCurve(element)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800750
This commit is contained in:
parent
0dc5009d81
commit
ba4beb2835
@ -88,7 +88,7 @@ Phase::CurveShape Animator::movementAnimationCurve(Plasma::Phase::Movement) cons
|
||||
return Phase::EaseInOutCurve;
|
||||
}
|
||||
|
||||
Phase::CurveShape Animator::curve(Plasma::Phase::ElementAnimation) const
|
||||
Phase::CurveShape Animator::elementAnimationCurve(Plasma::Phase::ElementAnimation) const
|
||||
{
|
||||
return Phase::EaseInOutCurve;
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
virtual int elementAnimationDuration(Plasma::Phase::ElementAnimation) const;
|
||||
virtual Phase::CurveShape animationCurve(Plasma::Phase::Animation) const;
|
||||
virtual Phase::CurveShape movementAnimationCurve(Plasma::Phase::Movement) const;
|
||||
virtual Phase::CurveShape curve(Plasma::Phase::ElementAnimation) const;
|
||||
virtual Phase::CurveShape elementAnimationCurve(Plasma::Phase::ElementAnimation) const;
|
||||
|
||||
// Element animations
|
||||
virtual QPixmap elementAppear(qreal progress, const QPixmap& pixmap);
|
||||
|
@ -394,7 +394,7 @@ Phase::AnimId Phase::animateElement(QGraphicsItem *item, ElementAnimation animat
|
||||
//kDebug() << "startElementAnimation(AnimId " << animation << ")";
|
||||
ElementAnimationState *state = new ElementAnimationState;
|
||||
state->item = item;
|
||||
state->curve = d->animator->curve(animation);
|
||||
state->curve = d->animator->elementAnimationCurve(animation);
|
||||
state->animation = animation;
|
||||
//TODO: variance in times based on the value of animation
|
||||
state->frames = d->animator->elementAnimationFramesPerSecond(animation) / 5;
|
||||
|
Loading…
Reference in New Issue
Block a user