From 63b26cbf2c849f724b7e2f5c8f40f6883d6278e5 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Fri, 12 Jul 2013 08:27:04 +0200 Subject: Load unknown icons for items just before showing items in the view Rather than loading many icons (without full mime type determination) in advance, we make sure that an item has an icon just before it is shown in the view. This makes sure that no "unknown" icons are shown unnecessarily, and saves some resources. REVIEW: 111396 --- src/kitemviews/kfileitemmodelrolesupdater.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/kitemviews/kfileitemmodelrolesupdater.h') diff --git a/src/kitemviews/kfileitemmodelrolesupdater.h b/src/kitemviews/kfileitemmodelrolesupdater.h index 20ce21cfa..605c36f81 100644 --- a/src/kitemviews/kfileitemmodelrolesupdater.h +++ b/src/kitemviews/kfileitemmodelrolesupdater.h @@ -232,12 +232,6 @@ private: */ void updateVisibleIcons(); - /** - * Tries to load at least preliminary icons (without determining the - * mime type) for all items for \a timeout milliseconds. - */ - void updateAllIconsFast(int timeout); - /** * Creates previews for the items starting from the first item in * m_pendingPreviewItems. @@ -326,11 +320,6 @@ private: // Items for which the sort role still has to be determined. QSet m_pendingSortRoleItems; - // Determines if the next call of startUpdating() will try to do a fast - // icon loading (i.e., without determining the mime type) for all items. - bool m_hasUnknownIcons; - int m_firstIndexWithoutIcon; - // Indexes of items which still have to be handled by // resolveNextPendingRoles(). QList m_pendingIndexes; -- cgit v1.3.1