From f2cb0b002014ec0111069246f35da98df117430f Mon Sep 17 00:00:00 2001 From: Adenilson Cavalcanti Da Silva Date: Thu, 15 Oct 2009 20:24:12 +0000 Subject: [PATCH] Updating rotation animation to changes in public API of Animation class. svn path=/trunk/KDE/kdelibs/; revision=1035765 --- animations/rotation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/animations/rotation.cpp b/animations/rotation.cpp index 1f6c4809c..b87c587e4 100644 --- a/animations/rotation.cpp +++ b/animations/rotation.cpp @@ -49,6 +49,7 @@ void RotationAnimation::setAngle(const qreal &angle) QPropertyAnimation *RotationAnimation::render(QObject *parent) { + Q_UNUSED(parent); QGraphicsWidget *m_object = getAnimatedObject(); QGraphicsRotation *rotation = new QGraphicsRotation(m_object); @@ -120,7 +121,7 @@ QPropertyAnimation *RotationAnimation::render(QObject *parent) QPropertyAnimation *rotationAnimation= new QPropertyAnimation(rotation, "angle", m_object); rotationAnimation->setEndValue(m_angle); - rotationAnimation->setDuration(duration()); + rotationAnimation->setDuration(getDuration()); return rotationAnimation; }