* allow the animator to define the curve to use

* switch to Phase::CurveShape now that we aren't using QTimeLine

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=679868
This commit is contained in:
Aaron J. Seigo 2007-06-25 05:57:47 +00:00
parent 877f17a33d
commit 1ba292c158
2 changed files with 12 additions and 0 deletions

View File

@ -45,6 +45,16 @@ int Animator::framesPerSecond(Plasma::Phase::ElementAnimation animation)
return 0;
}
Phase::CurveShape Animator::curve(Plasma::Phase::Animation)
{
return Phase::EaseInOutCurve;
}
Phase::CurveShape Animator::curve(Plasma::Phase::ElementAnimation)
{
return Phase::EaseInOutCurve;
}
QPixmap Animator::elementAppear(qreal frame, const QPixmap& pixmap)
{
Q_UNUSED(frame)

View File

@ -43,6 +43,8 @@ public:
virtual int framesPerSecond(Plasma::Phase::Animation);
virtual int framesPerSecond(Plasma::Phase::ElementAnimation);
virtual Phase::CurveShape curve(Plasma::Phase::Animation);
virtual Phase::CurveShape curve(Plasma::Phase::ElementAnimation);
virtual QPixmap elementAppear(qreal frame, const QPixmap& pixmap);
virtual QPixmap elementDisappear(qreal frame, const QPixmap& pixmap);