Thumbnails of hidden files...

Craig Drummond Craig.Drummond at gmx.net
Wed Apr 30 17:17:12 BST 2003


Hi,

The following patch makes the thumbnails of hidden files semi-transparent -
consistent with the behavious of the icons.

The affected file is kdebase/libkonq/konq_iconviewwidget.cc

--- konq_iconviewwidget.cc-orig	2003-04-30 13:03:35.000000000 +0100
+++ konq_iconviewwidget.cc	2003-04-30 16:08:14.000000000 +0100
@@ -639,7 +639,15 @@
     {
         if (static_cast<KFileIVI *>(it)->item() == item)
         {
-            static_cast<KFileIVI *>(it)->setThumbnailPixmap(pix);
+            if(item->overlays() & KIcon::HiddenOverlay)
+            {
+                QPixmap p(pix);
+
+                KIconEffect::semiTransparent(p);
+                static_cast<KFileIVI *>(it)->setThumbnailPixmap(p);
+            }
+            else
+                static_cast<KFileIVI *>(it)->setThumbnailPixmap(pix);
             d->updateAfterPreview = true;
         }
     }

...may I commit this?

I would also like to add the overlays for links, shares, etc, but the
"loadOverlay()" function of KIconLoader is private - and I'm not sure if it would
work, seeing as thumbnails can have different dimensions to icons.

Craig.

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!





More information about the kde-core-devel mailing list