Updating rotation animation to changes in public API of Animation class.
svn path=/trunk/KDE/kdelibs/; revision=1035765
This commit is contained in:
parent
a661ba66d6
commit
f2cb0b0020
@ -49,6 +49,7 @@ void RotationAnimation::setAngle(const qreal &angle)
|
|||||||
|
|
||||||
QPropertyAnimation *RotationAnimation::render(QObject *parent)
|
QPropertyAnimation *RotationAnimation::render(QObject *parent)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(parent);
|
||||||
QGraphicsWidget *m_object = getAnimatedObject();
|
QGraphicsWidget *m_object = getAnimatedObject();
|
||||||
QGraphicsRotation *rotation = new QGraphicsRotation(m_object);
|
QGraphicsRotation *rotation = new QGraphicsRotation(m_object);
|
||||||
|
|
||||||
@ -120,7 +121,7 @@ QPropertyAnimation *RotationAnimation::render(QObject *parent)
|
|||||||
QPropertyAnimation *rotationAnimation= new QPropertyAnimation(rotation,
|
QPropertyAnimation *rotationAnimation= new QPropertyAnimation(rotation,
|
||||||
"angle", m_object);
|
"angle", m_object);
|
||||||
rotationAnimation->setEndValue(m_angle);
|
rotationAnimation->setEndValue(m_angle);
|
||||||
rotationAnimation->setDuration(duration());
|
rotationAnimation->setDuration(getDuration());
|
||||||
|
|
||||||
return rotationAnimation;
|
return rotationAnimation;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user