From: Peter Penz Date: Thu, 22 Sep 2011 20:15:40 +0000 (+0200) Subject: Update the layout periodically when resizing the window X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/ccd92b76e74a00aef0f5186af7d797a63c6b80c6 Update the layout periodically when resizing the window 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. --- diff --git a/src/kitemviews/kitemlistview.cpp b/src/kitemviews/kitemlistview.cpp index b17ca47b7..dd2915b8e 100644 --- a/src/kitemviews/kitemlistview.cpp +++ b/src/kitemviews/kitemlistview.cpp @@ -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