diff options
| author | Peter Penz <[email protected]> | 2011-12-16 22:01:04 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-12-16 22:06:12 +0100 |
| commit | ea2ed61cd12eec48b66811df0e43dd40e546374a (patch) | |
| tree | a40d74a472967dc92fa8d2f8e12d3b4c143281a0 /src/kitemviews/kfileitemmodelrolesupdater.h | |
| parent | f640e48bbe3504e4ae3e16349cf98ba9fae90428 (diff) | |
Update the roles if items have been changed
The code "// TODO..." in slotItemsChanged() obviously was not
sufficient ;-)
BUG: 288691
BUG: 288824
BUG: 288921
FIXED-IN: 4.8.0
Diffstat (limited to 'src/kitemviews/kfileitemmodelrolesupdater.h')
| -rw-r--r-- | src/kitemviews/kfileitemmodelrolesupdater.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/kitemviews/kfileitemmodelrolesupdater.h b/src/kitemviews/kfileitemmodelrolesupdater.h index 85f9c293c..993cc5244 100644 --- a/src/kitemviews/kfileitemmodelrolesupdater.h +++ b/src/kitemviews/kfileitemmodelrolesupdater.h @@ -107,12 +107,22 @@ private slots: void slotItemsChanged(const KItemRangeList& itemRanges, const QSet<QByteArray>& roles); + /** + * Is invoked after a preview has been received successfully. + * @see startPreviewJob() + */ void slotGotPreview(const KFileItem& item, const QPixmap& pixmap); + + /** + * Is invoked after generating a preview has failed. + * @see startPreviewJob() + */ void slotPreviewFailed(const KFileItem& item); /** * Is invoked when the preview job has been finished and * removes the job from the m_previewJobs list. + * @see startPreviewJob() */ void slotPreviewJobFinished(KJob* job); @@ -120,6 +130,19 @@ private slots: void resolveNextPendingRoles(); private: + /** + * Updates the roles for the given item ranges. The roles for the currently + * visible items will get updated first. + */ + void startUpdating(const KItemRangeList& itemRanges); + + /** + * Creates previews for the items starting from the first item of the + * given list. + * @see slotGotPreview() + * @see slotPreviewFailed() + * @see slotPreviewJobFinished() + */ void startPreviewJob(const KFileItemList& items); bool hasPendingRoles() const; |
