diff options
| author | Arto Hytönen <[email protected]> | 2007-09-09 02:55:51 +0000 |
|---|---|---|
| committer | Arto Hytönen <[email protected]> | 2007-09-09 02:55:51 +0000 |
| commit | b2b09f36f076b073a7b40f55471520734bacc529 (patch) | |
| tree | 365db55e254a82720deebab8fe84f743aef993c3 /src | |
| parent | e66cde6befc204f26a99cf3a0a74ed3b4c7ebb43 (diff) | |
move from deprecated KPixmapEffects to KIconEffects, not perfected code yet
svn path=/trunk/KDE/kdebase/apps/; revision=710060
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinitemcategorizer.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dolphinitemcategorizer.cpp b/src/dolphinitemcategorizer.cpp index 1a8f93471..0701678b9 100644 --- a/src/dolphinitemcategorizer.cpp +++ b/src/dolphinitemcategorizer.cpp @@ -38,7 +38,7 @@ #include <kuser.h> #include <kmimetype.h> #include <kstandarddirs.h> -#include <kpixmapeffect.h> +#include <kiconeffect.h> #include <QList> #include <QSortFilterProxyModel> @@ -311,9 +311,11 @@ void DolphinItemCategorizer::drawCategory(const QModelIndex &index, QPixmap pixmap = KIconLoader::global()->loadIcon("rating", K3Icon::Small); QPixmap smallPixmap = KIconLoader::global()->loadIcon("rating", K3Icon::NoGroup, iconSize / 2); - QPixmap disabledPixmap = KIconLoader::global()->loadIcon("rating", K3Icon::Small); + QPixmap icon_disabledPixmap = KIconLoader::global()->loadIcon("rating", K3Icon::Small); - KPixmapEffect::toGray(disabledPixmap, false); + QImage disabledImage = icon_disabledPixmap.toImage(); + KIconEffect::toGray(disabledImage, 1.0); + QPixmap disabledPixmap = QPixmap::fromImage(disabledImage); int rating = category.toInt(); |
