Review Request 109843: Make sure that icons are determined for the visible items first
Commit Hook
null at kde.org
Mon Apr 22 20:27:07 BST 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109843/
-----------------------------------------------------------
(Updated April 22, 2013, 7:27 p.m.)
Status
------
This change has been marked as submitted.
Review request for Dolphin.
Description
-------
When entering a large folder, it can happen that KFileItemModelRolesUpdater starts its synchronous determination of icon names before the view has informed it about the visible index range. This causes the problem that some visible icons might still be unkown after 200 ms, and that "unknown" icons are then replaced by the right ones asynchronously.
I propose to fix this by assuming that the first items are visible if we don't have a valid index range yet. The max. number of visible items is determined by the view, and a default value of 100 is used.
This addresses bug 316129.
http://bugs.kde.org/show_bug.cgi?id=316129
Diffs
-----
dolphin/src/kitemviews/kfileitemlistview.cpp b7f7455
dolphin/src/kitemviews/kfileitemmodelrolesupdater.h 68559d8
dolphin/src/kitemviews/kfileitemmodelrolesupdater.cpp 9fca8a1
dolphin/src/kitemviews/kitemlistview.h cd59ddc
dolphin/src/kitemviews/kitemlistview.cpp 9ebad7f
Diff: http://git.reviewboard.kde.org/r/109843/diff/
Testing
-------
Works for me (tested by artificially making the resolving of the roles for an item slower).
Thanks,
Frank Reininghaus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20130422/83b4d759/attachment.htm>
More information about the kfm-devel
mailing list