diff options
| author | Peter Penz <[email protected]> | 2008-06-29 21:04:43 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-06-29 21:04:43 +0000 |
| commit | 1f3607bdc1f9c4c39049079a973d5027187512c2 (patch) | |
| tree | a76d53bd4692dcf8414d24be9d86626e488fb3fa /src/iconmanager.h | |
| parent | fdd06835fce2624043febb2e518e7debf9243df9 (diff) | |
Move the block for resizing the preview, applying an item effect + border to the slot where the preview has been received. This reduces the blocking of the GUI for the following usecase:
- folder with 1000 items
- ~30 items are visible
Old approach:
- Show the 30 items as soon as possible.
- Receive preview and add it to the queue. This is done asynchronously 970 times (no UI blocking).
- Iterate through 970 items, resize, apply item effect + border and apply the preview to the model (-> blocking of UI thread for more than 3 seconds).
New approach:
- Show the 30 items as soon as possible.
- Receive preview, resize it, apply item effect + border and add it to the queue. This is done asynchronously 970 times (no UI blocking).
- Iterate through 970 items and apply the preview to the model (-> UI thread is blocked only very short).
svn path=/trunk/KDE/kdebase/apps/; revision=826109
Diffstat (limited to 'src/iconmanager.h')
| -rw-r--r-- | src/iconmanager.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/iconmanager.h b/src/iconmanager.h index 027f0c6b6..06d7df85a 100644 --- a/src/iconmanager.h +++ b/src/iconmanager.h @@ -116,12 +116,6 @@ private slots: private: /** - * Replaces the icon of the item with the \a url by the preview pixmap - * \a pixmap. - */ - void replaceIcon(const KUrl& url, const QPixmap& pixmap); - - /** * Returns true, if the item \a item has been cut into * the clipboard. */ |
