1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 00:24:12 +02:00

* No need to manually scale the avatar anymore.

This commit is contained in:
Christian Muehlhaeuser
2012-11-15 11:34:33 +01:00
parent 3e55851fee
commit 815d03114f

View File

@@ -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 )
{