diff options
| author | Rafael Fernández López <[email protected]> | 2007-09-28 13:12:53 +0000 |
|---|---|---|
| committer | Rafael Fernández López <[email protected]> | 2007-09-28 13:12:53 +0000 |
| commit | 51c838dab76a3c3f4396226f1428f0b8c5e0f72b (patch) | |
| tree | 2d909c0a5f83ad1147c4442f027e2b61b9bb0b1a | |
| parent | 1325d97bdd28c7e5aee80157b9f8098c0d1876ca (diff) | |
Icons height is the same as the title
svn path=/trunk/KDE/kdebase/apps/; revision=718317
| -rw-r--r-- | src/dolphincategorydrawer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dolphincategorydrawer.cpp b/src/dolphincategorydrawer.cpp index 5012369ce..dd2c26bd9 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(KIconLoader::global()->currentSize(K3Icon::MainToolbar), Qt::SmoothTransformation)); + icon = QPixmap::fromImage(QImage(faceIconPath).scaledToHeight(option.fontMetrics.height(), Qt::SmoothTransformation)); } else { - icon = KIconLoader::global()->loadIcon("user", K3Icon::MainToolbar, option.fontMetrics.height()); + icon = KIconLoader::global()->loadIcon("user", K3Icon::NoGroup, 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::MainToolbar); + K3Icon::NoGroup, option.fontMetrics.height()); opt.rect.setTop(opt.rect.top() - icon.height()); |
