From a3a10632e64f95b7702c4b35b72e585a06ff7900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 2 Oct 2008 07:15:48 +0000 Subject: [PATCH] Fix last commit. svn path=/trunk/KDE/kdebase/workspace/; revision=866886 --- lib/kwineffects.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/kwineffects.cpp b/lib/kwineffects.cpp index 0fda9c69c0..34d1276631 100644 --- a/lib/kwineffects.cpp +++ b/lib/kwineffects.cpp @@ -936,7 +936,6 @@ QRect PaintClipper::Iterator::boundingRect() const TimeLine::TimeLine(const int duration) { m_Time = 0; - m_CurveShape = TimeLine::EaseInCurve; m_Duration = duration; m_TimeLine = new QTimeLine(m_Duration ? m_Duration : 1); // (avoid QTimeLine warning) m_TimeLine->setFrameRange(0, m_Duration); @@ -946,12 +945,12 @@ TimeLine::TimeLine(const int duration) TimeLine::TimeLine(const TimeLine &other) { m_Time = other.m_Time; - m_CurveShape = other.m_CurveShape; m_Duration = other.m_Duration; - m_TimeLine = new QTimeLine(m_Duration); + m_TimeLine = new QTimeLine(m_Duration ? m_Duration : 1); m_TimeLine->setFrameRange(0, m_Duration); - setProgress(m_Progress); setCurveShape(m_CurveShape); + if( m_Duration != 0 ) + setProgress(m_Progress); } TimeLine::~TimeLine() @@ -967,7 +966,8 @@ int TimeLine::duration() const void TimeLine::setDuration(const int msec) { m_Duration = msec; - m_TimeLine->setDuration(msec); + m_TimeLine->setDuration(m_Duration); + m_TimeLine->setFrameRange(0, m_Duration); } double TimeLine::value() const