KFileItemModel: drop a redundant icon lookup that blocked folder loading

KFileItemModel::retrieveData called QIcon::hasThemeIcon for every file while a folder was loading. That call is slow on a slow or cold disk,and its result was being thrown away anyway. This removes it.

Tested using the following command:

// ~/Downloads has 260 items with 24 file types

strace -f -e trace=access -o /tmp/t.strace dolphin ~/Downloads

grep -c '/icons/' /tmp/t.strace

Before: 11k access calls

After: 5k access calls

Part of kde-linux/kde-linux#668

Edited by Nate Graham

Merge request reports

Loading
Loading