fix animation direction
svn path=/trunk/KDE/kdelibs/; revision=1039151
This commit is contained in:
parent
2f7ba10bfc
commit
a6211982da
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user