Missed RotationStacked QEasingCurve double call fix :-)
svn path=/trunk/KDE/kdelibs/; revision=1117941
This commit is contained in:
parent
5d9b77ed76
commit
abd0dd20b5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user