diff options
| author | Frank Reininghaus <[email protected]> | 2013-09-14 14:52:22 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2013-09-14 14:59:50 +0200 |
| commit | ced472be07200666c0ad849c6a9fbb80ecefad29 (patch) | |
| tree | fb763f545b58614bac32980294b0ee8f6c13d899 /src/kitemviews/kitemrange.h | |
| parent | 53c8c76ceebf182c0d2e121d47dac65a7ad3e3de (diff) | |
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
Diffstat (limited to 'src/kitemviews/kitemrange.h')
0 files changed, 0 insertions, 0 deletions
