From ee20613e3d9b5d47bc928742982f7e230b495c51 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sat, 5 Dec 2009 15:25:44 +0000 Subject: [PATCH] support rewind svn path=/trunk/KDE/kdelibs/; revision=1059028 --- animations/slide.cpp | 35 ++++++++++++++++++++--------------- animations/slide_p.h | 2 +- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/animations/slide.cpp b/animations/slide.cpp index c773c7a2f..ad572de92 100644 --- a/animations/slide.cpp +++ b/animations/slide.cpp @@ -63,7 +63,7 @@ void SlideAnimation::updateCurrentTime(int currentTime) QGraphicsWidget *w = widgetToAnimate(); if (w && state() == QAbstractAnimation::Running) { qreal delta = currentTime / qreal(duration()); - w->setPos(m_startPos * (1-delta) + (m_target * delta)); + w->setPos(m_startPos * (1-delta) + (m_targetPos * delta)); } } @@ -78,43 +78,43 @@ void SlideAnimation::updateState(QAbstractAnimation::State newState, QAbstractAn qreal newX = m_startPos.x(); qreal newY = m_startPos.y(); - kDebug()<