From: Peter Penz Date: Mon, 28 Apr 2008 21:26:52 +0000 (+0000) Subject: Desaturate the preview when a new preview will be generated. This is useful when... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/c78477af3be8f371466ab41bb160f0618fef5416 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 --- 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 #include #include +#include #include #include @@ -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(),