set a start value so it can go backwards
svn path=/trunk/KDE/kdelibs/; revision=1038849
This commit is contained in:
parent
fd48743847
commit
a9a4fc471b
@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
#include <QGraphicsRotation>
|
#include <QGraphicsRotation>
|
||||||
|
|
||||||
|
#include <kdebug.h>
|
||||||
|
|
||||||
namespace Plasma
|
namespace Plasma
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -123,8 +125,9 @@ QPropertyAnimation *RotationAnimation::render(QObject *parent)
|
|||||||
transformation.append(d->rotation);
|
transformation.append(d->rotation);
|
||||||
m_object->setTransformations(transformation);
|
m_object->setTransformations(transformation);
|
||||||
|
|
||||||
QPropertyAnimation *rotationAnimation= new QPropertyAnimation(d->rotation,
|
QPropertyAnimation *rotationAnimation= new QPropertyAnimation(d->rotation, "angle", m_object);
|
||||||
"angle", m_object);
|
rotationAnimation->setStartValue(0);
|
||||||
|
kDebug() << "angle is" << angle();
|
||||||
rotationAnimation->setEndValue(angle());
|
rotationAnimation->setEndValue(angle());
|
||||||
rotationAnimation->setDuration(duration());
|
rotationAnimation->setDuration(duration());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user