[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Thumbnails of hidden files...
From: Craig Drummond <Craig.Drummond () gmx ! net>
Date: 2003-04-30 16:17:12
[Download RAW message or body]
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!
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic