[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/libs/plasma/widgets
From:       Robert Knight <robertknight () gmail ! com>
Date:       2007-09-03 0:41:58
Message-ID: 1188780118.151484.15076.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 707800 by knight:

Always restart timeline from 0 when setGeometry() is called.  QTimeLine::start() is a \
no-op if already running.

 M  +6 -2      boxlayout.cpp  


--- trunk/KDE/kdebase/workspace/libs/plasma/widgets/boxlayout.cpp #707799:707800
@@ -438,8 +438,12 @@
 
     d->geometry = geometry;
 
-    if ( animator() && animator()->timeLine() )
-        animator()->timeLine()->start();
+    if ( animator() && animator()->timeLine() ) {
+        animator()->timeLine()->setCurrentTime(0); 
+        if ( animator()->timeLine()->state() == QTimeLine::NotRunning ) {
+            animator()->timeLine()->start();
+        }
+    }
 }
 
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic