]> cloud.milkyroute.net Git - dolphin.git/commit
Make preview loading faster when scrolling
authorFrank Reininghaus <frank78ac@googlemail.com>
Sat, 14 Sep 2013 12:52:22 +0000 (14:52 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Sat, 14 Sep 2013 12:59:50 +0000 (14:59 +0200)
commitced472be07200666c0ad849c6a9fbb80ecefad29
treefb763f545b58614bac32980294b0ee8f6c13d899
parent53c8c76ceebf182c0d2e121d47dac65a7ad3e3de
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.cpp
src/kitemviews/kfileitemlistview.h