]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Update the layout periodically when resizing the window
authorPeter Penz <peter.penz19@gmail.com>
Thu, 22 Sep 2011 20:15:40 +0000 (22:15 +0200)
committerPeter Penz <peter.penz19@gmail.com>
Thu, 22 Sep 2011 20:17:18 +0000 (22:17 +0200)
Up to now the layout has only been updated when the geometry has
not been changed for at least 300 ms. This has been changed so
that at least each 300 ms the layout is updated to give a better
visual feedback when resizing the window.

src/kitemviews/kitemlistview.cpp

index b17ca47b7cb4f5cbd3e206ca5afabf4c5511e8c2..dd2915b8ea961b6d280570fb5ad708e026456090 100644 (file)
@@ -321,7 +321,9 @@ void KItemListView::setGeometry(const QRectF& rect)
         m_layouter->setSize(rect.size());
     }
 
-    m_layoutTimer->start();
+    if (!m_layoutTimer->isActive()) {
+        m_layoutTimer->start();
+    }
 }
 
 int KItemListView::itemAt(const QPointF& pos) const