]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Categories imroved
authorRafael Fernández López <ereslibre@kde.org>
Tue, 25 Sep 2007 10:43:48 +0000 (10:43 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Tue, 25 Sep 2007 10:43:48 +0000 (10:43 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=716833

src/dolphincategorydrawer.cpp

index 8031f79e03dad863ca994d712a8301fc3ee2d770..4bb408babffaf54add1d0b7999f91a3cc6a3401f 100644 (file)
@@ -173,11 +173,11 @@ void DolphinCategoryDrawer::drawCategory(const QModelIndex &index, int sortRole,
 
             if (!faceIconPath.isEmpty())
             {
 
             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
             {
             }
             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());
             }
 
             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(),
             // 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());
 
 
             opt.rect.setTop(opt.rect.top() - icon.height());