From 453131d6e8a59af87e943455e26074ce8e3ddae3 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 26 Jan 2008 12:48:03 +0000 Subject: * increase the performance of item previews: each item view provides an icon size hint -> the preview and item effects are only applied to the current size, not to the maximum of 128 x 128 pixels * make the icons of hidden files semitransparent like in KDE3 svn path=/trunk/KDE/kdebase/apps/; revision=766659 --- src/iconmanager.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/iconmanager.h') diff --git a/src/iconmanager.h b/src/iconmanager.h index 2636c81c6..d6cf5332b 100644 --- a/src/iconmanager.h +++ b/src/iconmanager.h @@ -51,11 +51,11 @@ public: private slots: /** - * Generates a preview image for each file item in \a items. - * The current preview settings (maximum size, 'Show Preview' menu) - * are respected. + * Updates the icons of for each item in \a items by making hidden + * items semitransparent and generating previews. The current preview + * settings (maximum size, 'Show Preview' menu) are respected. */ - void generatePreviews(const KFileItemList& items); + void updateIcons(const KFileItemList& items); /** * Replaces the icon of the item \a item by the preview pixmap @@ -82,6 +82,9 @@ private: /** Applies an item effect to all cut items. */ void applyCutItemEffect(); + /** Applies an item effect to the hidden item \a hiddenItem. */ + void applyHiddenItemEffect(const KFileItem& hiddenItem); + private: /** * Remembers the original pixmap for an item before -- cgit v1.3