From 815d03114f40789cdd8300d96ce8a6e3e1259f20 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 15 Nov 2012 11:34:33 +0100 Subject: [PATCH] * No need to manually scale the avatar anymore. --- src/sourcetree/SourceDelegate.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sourcetree/SourceDelegate.cpp b/src/sourcetree/SourceDelegate.cpp index 6f798af8f..260e897fb 100644 --- a/src/sourcetree/SourceDelegate.cpp +++ b/src/sourcetree/SourceDelegate.cpp @@ -185,9 +185,8 @@ SourceDelegate::paintCollection( QPainter* painter, const QStyleOptionViewItem& } QRect iconRect = option.rect.adjusted( 4, 6, -option.rect.width() + option.rect.height() - 12 + 4, -6 ); - - QPixmap avatar = colItem->icon().pixmap( iconRect.size() ); - painter->drawPixmap( iconRect, avatar.scaledToHeight( iconRect.height(), Qt::SmoothTransformation ) ); + QPixmap avatar = colItem->pixmap( iconRect.size() ); + painter->drawPixmap( iconRect, avatar ); if ( ( option.state & QStyle::State_Selected ) == QStyle::State_Selected ) {