API REVIEW: curve(element) -> elementAnimationCurve(element)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800750
This commit is contained in:
Davide Bettio 2008-04-24 19:28:04 +00:00
parent 0dc5009d81
commit ba4beb2835
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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;