┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincategorydrawer.cpp
diff options
context:
space:
mode:
authorMatthew Woehlke <[email protected]>2007-09-27 04:11:28 +0000
committerMatthew Woehlke <[email protected]>2007-09-27 04:11:28 +0000
commit341c16eba689331c472455c61f08ff0f0261c49e (patch)
tree450107e394216b7546e10600b4f99b278721d63a /src/dolphincategorydrawer.cpp
parent093efca22dfd247f06e2a669ad968300e71ef08d (diff)
use blitz instead of deprecated kdefx, remove kdefx headers where unused
svn path=/trunk/KDE/kdebase/apps/; revision=717537
Diffstat (limited to 'src/dolphincategorydrawer.cpp')
-rw-r--r--src/dolphincategorydrawer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dolphincategorydrawer.cpp b/src/dolphincategorydrawer.cpp
index 4bb408bab..5012369ce 100644
--- a/src/dolphincategorydrawer.cpp
+++ b/src/dolphincategorydrawer.cpp
@@ -26,7 +26,7 @@
#include <kiconloader.h>
#include <kcategorizedsortfilterproxymodel.h>
-#include <kpixmapeffect.h>
+#include <qimageblitz.h>
#include <kuser.h>
#include <config-nepomuk.h>
@@ -218,7 +218,9 @@ void DolphinCategoryDrawer::drawCategory(const QModelIndex &index, int sortRole,
QPixmap smallPixmap = KIconLoader::global()->loadIcon("rating", K3Icon::NoGroup, iconSize / 2);
QPixmap disabledPixmap = KIconLoader::global()->loadIcon("rating", K3Icon::Small);
- KPixmapEffect::toGray(disabledPixmap, false);
+ QImage img = disabledPixmap.toImage();
+ Blitz::grayscale(img);
+ disabledPixmap = QPixmap::fromImage(img);
int rating = category.toInt();