Missed RotationStacked QEasingCurve double call fix :-)

svn path=/trunk/KDE/kdelibs/; revision=1117941
This commit is contained in:
Bruno de Oliveira Abinader 2010-04-23 13:38:38 +00:00
parent 5d9b77ed76
commit abd0dd20b5

View File

@ -155,12 +155,12 @@ void RotationStackedAnimation::updateEffectiveTime(int currentTime)
qreal delta;
if (currentTime <= duration()/2) {
layout->setCurrentWidgetIndex(0);
delta = easingCurve().valueForProgress((currentTime*2) / qreal(duration()));
delta = (currentTime*2) / qreal(duration());
delta *= s_sideAngle;
m_frontRotation->setAngle(delta);
} else {
layout->setCurrentWidgetIndex(1);
delta = 1 - easingCurve().valueForProgress(((currentTime*2) - duration()) / qreal(duration()));
delta = 1 - (((currentTime*2) - duration()) / qreal(duration()));
delta = -delta;
delta *= s_sideAngle;
m_backRotation->setAngle(delta);