Revision 3dc7c84...

Go back to digest for 8th December 2013

Optimization in KDE Base

Frank Reininghaus committed changes in [kde-baseapps/KDE/4.12] dolphin/src/kitemviews/kstandarditemlistwidget.cpp:

Lazy-load the item data also in Compact View

The recent changes which prevent that all data for each item are saved
in a QHash already when loading the folder (see
https://git.reviewboard.kde.org/r/112725/), which save both memory and
time, do not work yet in Compact View, because
KItemListWidgetInformant::itemSizeHint() calls the model's data(int)
method for every item, which then initializes the hash.

This patch prevents that by accessing the file name directly if only
the "Name" is shown in the view, just like it's done in Icons View.

REVIEW: 113849

File Changes

Modified 1 files
  • dolphin/src/kitemviews/kstandarditemlistwidget.cpp
1 files changed in total