fix animation direction

svn path=/trunk/KDE/kdelibs/; revision=1039151
This commit is contained in:
Igor Trindade Oliveira 2009-10-22 20:43:35 +00:00
parent 2f7ba10bfc
commit a6211982da

View File

@ -111,12 +111,11 @@ QAbstractAnimation *RotationStackedAnimation::render(QObject *parent)
d->frontRotation->setAxis(Qt::YAxis);
d->backRotation->setAxis(Qt::YAxis);
if(direction() == MoveLeft) {
d->backRotation->setAngle(265);
if(direction() == MoveLeft) {
} else {
d->backRotation->setAngle(265);
backAnim->setEndValue(360);
frontAnim->setEndValue(90);
} else {
d->backRotation->setAngle(-90);
}
}
}