* 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:
parent
877f17a33d
commit
1ba292c158
10
animator.cpp
10
animator.cpp
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user