diff options
| author | Peter Penz <[email protected]> | 2011-09-24 00:33:31 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-09-24 00:35:26 +0200 |
| commit | 17624f0e05e73baed9f15a3ddaee32f9ca93580f (patch) | |
| tree | 12865593c19de82ccaecd0b30a1aca65c4a4d0c7 /src | |
| parent | 740e9569327c0026257dfcea38ab2efac4a29d67 (diff) | |
Update the layout asynchronously when items are changed
This results in less overhead if item-changes are done rather fast
(e.g. when applying the number of sub directories for the "size"
role).
Diffstat (limited to 'src')
| -rw-r--r-- | src/kitemviews/kitemlistview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kitemviews/kitemlistview.cpp b/src/kitemviews/kitemlistview.cpp index f15d1ed9d..0a346b094 100644 --- a/src/kitemviews/kitemlistview.cpp +++ b/src/kitemviews/kitemlistview.cpp @@ -764,7 +764,9 @@ void KItemListView::slotItemsChanged(const KItemRangeList& itemRanges, if (updateSizeHints) { m_sizeHintResolver->itemsChanged(index, count, roles); m_layouter->markAsDirty(); - updateLayout(); + if (!m_layoutTimer->isActive()) { + m_layoutTimer->start(); + } } // Apply the changed roles to the visible item-widgets |
