Experimenting with easing curves.

svn path=/trunk/KDE/kdelibs/; revision=1061361
This commit is contained in:
Adenilson Cavalcanti Da Silva 2009-12-11 15:09:32 +00:00
parent e16960fa55
commit 485635f07b
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ SlideAnimation::SlideAnimation(QObject *parent,
{ {
setMovementDirection(direction); setMovementDirection(direction);
setDistance(distance); setDistance(distance);
Animation::setEasingCurveType(QEasingCurve::OutCirc);
} }
void SlideAnimation::setMovementDirection(const qint8 &direction) void SlideAnimation::setMovementDirection(const qint8 &direction)

View File

@ -28,6 +28,7 @@ ZoomAnimation::ZoomAnimation(QObject *parent)
: Animation(parent), : Animation(parent),
m_zoom(1) m_zoom(1)
{ {
Animation::setEasingCurveType(QEasingCurve::OutBounce);
} }
ZoomAnimation::~ZoomAnimation() ZoomAnimation::~ZoomAnimation()