┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-04-28 21:26:52 +0000
committerPeter Penz <[email protected]>2008-04-28 21:26:52 +0000
commitc78477af3be8f371466ab41bb160f0618fef5416 (patch)
tree1537a3666233352cfc06af11aa3d39603394e816 /src
parent439fa3c47439ab22bfd9b2609008c3011ff4f496 (diff)
Desaturate the preview when a new preview will be generated. This is useful when previews are done for large images, so that an indication is given that the current preview gets replaced.
svn path=/trunk/KDE/kdebase/apps/; revision=802233
Diffstat (limited to 'src')
-rw-r--r--src/infosidebarpage.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp
index a4c3d4157..e258068ae 100644
--- a/src/infosidebarpage.cpp
+++ b/src/infosidebarpage.cpp
@@ -29,6 +29,7 @@
#include <kdialog.h>
#include <kglobalsettings.h>
#include <kfilemetainfo.h>
+#include <kiconeffect.h>
#include <kseparator.h>
#include <kiconloader.h>
@@ -245,7 +246,10 @@ void InfoSidebarPage::showItemInfo()
list.append(file);
m_pendingPreview = true;
- m_preview->setPixmap(QPixmap());
+
+ KIconEffect iconEffect;
+ QPixmap disabledPixmap = iconEffect.apply(m_preview->pixmap(), KIconLoader::Desktop, KIconLoader::DisabledState);
+ m_preview->setPixmap(disabledPixmap);
KIO::PreviewJob* job = KIO::filePreview(list,
m_preview->width(),