]> cloud.milkyroute.net Git - dolphin.git/commit
Always determine icons for the visible items first
authorFrank Reininghaus <frank78ac@googlemail.com>
Mon, 22 Apr 2013 19:21:31 +0000 (21:21 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Mon, 22 Apr 2013 19:21:31 +0000 (21:21 +0200)
commit151c8d8c42115717151d88e17b55b60a74b5e791
treecbead109505cc0ff5a1af078929c4055b565c82a
parentee2d453f1f3f3efa28d6c9cea1d216a45702dfbc
Always determine icons for the visible items first

When entering a folder, KFileItemModelRolesUpdater has not yet been
informed about the visible index range by the view when it tries to
determine icons synchronously. This resulted in the problem that it
tried to determine icons for all items in random order, and some visible
icons were somtimes still unknown after the "synchronous icon loading"
timeout of 200 ms.

This commit tries to improve the situation by loading icons starting
with the first item in increasing order. This should make it less likely
that some visible items still have unknown icons after 200 ms.

BUG: 316129
FIXED-IN: 4.10.3
REVIEW: 109843
src/kitemviews/kfileitemlistview.cpp
src/kitemviews/kfileitemmodelrolesupdater.cpp
src/kitemviews/kfileitemmodelrolesupdater.h
src/kitemviews/kitemlistview.cpp
src/kitemviews/kitemlistview.h