From 485635f07be30fd2ebf38cd71964a7283de7a229 Mon Sep 17 00:00:00 2001 From: Adenilson Cavalcanti Da Silva Date: Fri, 11 Dec 2009 15:09:32 +0000 Subject: [PATCH] Experimenting with easing curves. svn path=/trunk/KDE/kdelibs/; revision=1061361 --- animations/slide.cpp | 1 + animations/zoom.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/animations/slide.cpp b/animations/slide.cpp index 6adb84971..4458a1772 100644 --- a/animations/slide.cpp +++ b/animations/slide.cpp @@ -45,6 +45,7 @@ SlideAnimation::SlideAnimation(QObject *parent, { setMovementDirection(direction); setDistance(distance); + Animation::setEasingCurveType(QEasingCurve::OutCirc); } void SlideAnimation::setMovementDirection(const qint8 &direction) diff --git a/animations/zoom.cpp b/animations/zoom.cpp index 1dca255a5..0c7b36a0e 100644 --- a/animations/zoom.cpp +++ b/animations/zoom.cpp @@ -28,6 +28,7 @@ ZoomAnimation::ZoomAnimation(QObject *parent) : Animation(parent), m_zoom(1) { + Animation::setEasingCurveType(QEasingCurve::OutBounce); } ZoomAnimation::~ZoomAnimation()