From 9bbab1421ce1d8b73b16658448ac03e3ca6428b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Tue, 25 Sep 2007 10:43:48 +0000 Subject: [PATCH] Categories imroved svn path=/trunk/KDE/kdebase/apps/; revision=716833 --- src/dolphincategorydrawer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dolphincategorydrawer.cpp b/src/dolphincategorydrawer.cpp index 8031f79e0..4bb408bab 100644 --- a/src/dolphincategorydrawer.cpp +++ b/src/dolphincategorydrawer.cpp @@ -173,11 +173,11 @@ void DolphinCategoryDrawer::drawCategory(const QModelIndex &index, int sortRole, if (!faceIconPath.isEmpty()) { - icon = QPixmap::fromImage(QImage(faceIconPath).scaledToHeight(option.fontMetrics.height(), Qt::SmoothTransformation)); + icon = QPixmap::fromImage(QImage(faceIconPath).scaledToHeight(KIconLoader::global()->currentSize(K3Icon::MainToolbar), Qt::SmoothTransformation)); } else { - icon = KIconLoader::global()->loadIcon("user", K3Icon::NoGroup, option.fontMetrics.height()); + icon = KIconLoader::global()->loadIcon("user", K3Icon::MainToolbar, option.fontMetrics.height()); } opt.rect.setTop(opt.rect.top() - icon.height()); @@ -199,7 +199,7 @@ void DolphinCategoryDrawer::drawCategory(const QModelIndex &index, int sortRole, // so the group icon drawn is that one particularly. This way assures the drawn // icon is the one of the mimetype of the group itself. (ereslibre) icon = KIconLoader::global()->loadMimeTypeIcon(item.mimeTypePtr()->iconName(), - K3Icon::NoGroup, option.fontMetrics.height()); + K3Icon::MainToolbar); opt.rect.setTop(opt.rect.top() - icon.height()); -- 2.47.3