Lazy-load the item data also in Compact View
Review Request #113849 - Created Nov. 14, 2013 and submitted - Latest diff uploaded
My recent changes that 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 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.
I could not find any regressions. Memory usage in Compact View is now comparable to Icons/Details.