Revision bf2a0d6...

Go back to digest for 15th September 2013

Optimization in KDE Base

Frank Reininghaus committed changes in [kde-baseapps/KDE/4.11] /src/kitemviews:

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!


FIXED-IN: 4.11.2
REVIEW: 112580

File Changes

Modified 2 files
  • /src/kitemviews
  •   dolphin/kfileitemlistview.cpp
  •   dolphin/kfileitemlistview.h
2 files changed in total