From ced472be07200666c0ad849c6a9fbb80ecefad29 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Sat, 14 Sep 2013 14:52:22 +0200 Subject: Make preview loading faster when scrolling KFileItemListView notifies KFileItemModelRolesUpdater of changes of the visible index range and the icon size with a delay, to prevent that expensive operations are triggered repeatedly, and that scrolling feels sluggish because the GUI thread is blocked by icon loading. This patch ensures that the "long" delay of 300 ms is only used when the zoom level is changed, and the "short" delay if only the visible index range has changed. Thanks to Christoph Feck for helping to analyze this problem! BUG: 322093 FIXED-IN: 4.11.2 REVIEW: 112580 --- src/kitemviews/kfileitemlistview.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/kitemviews/kfileitemlistview.h') diff --git a/src/kitemviews/kfileitemlistview.h b/src/kitemviews/kfileitemlistview.h index 49ff77318..bdc63b01b 100644 --- a/src/kitemviews/kfileitemlistview.h +++ b/src/kitemviews/kfileitemlistview.h @@ -103,8 +103,6 @@ private slots: void updateIconSize(); private: - void updateTimersInterval(); - /** * Applies the roles defined by KItemListView::visibleRoles() to the * KFileItemModel and KFileItemModelRolesUpdater. As the model does not -- cgit v1.3.1