Updating rotation animation to changes in public API of Animation class.

svn path=/trunk/KDE/kdelibs/; revision=1035765
This commit is contained in:
Adenilson Cavalcanti Da Silva 2009-10-15 20:24:12 +00:00
parent a661ba66d6
commit f2cb0b0020

View File

@ -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;
}