mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
move from deprecated KPixmapEffects to KIconEffects, not perfected code yet
svn path=/trunk/KDE/kdebase/apps/; revision=710060
This commit is contained in:
parent
e66cde6bef
commit
b2b09f36f0
1 changed files with 5 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue