┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemmodelrolesupdater.h
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2013-07-12 08:27:04 +0200
committerFrank Reininghaus <[email protected]>2013-07-12 08:27:05 +0200
commit63b26cbf2c849f724b7e2f5c8f40f6883d6278e5 (patch)
tree1b1b783e8bd625df2537d7479e2ce904dfa8f4ab /src/kitemviews/kfileitemmodelrolesupdater.h
parent6028bd7cf6fcd65bc43d255f1f0eaf0820ee79b6 (diff)
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
Diffstat (limited to 'src/kitemviews/kfileitemmodelrolesupdater.h')
-rw-r--r--src/kitemviews/kfileitemmodelrolesupdater.h11
1 files changed, 0 insertions, 11 deletions
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
@@ -233,12 +233,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.
* @see slotGotPreview()
@@ -326,11 +320,6 @@ private:
// Items for which the sort role still has to be determined.
QSet<KFileItem> 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<int> m_pendingIndexes;