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

* Optimize code for when rounded corners aren't actually wanted.

This commit is contained in:
Christian Muehlhaeuser 2012-11-15 08:36:51 +01:00
parent a19f85df8d
commit a47c164fc9

View File

@ -330,6 +330,9 @@ createRoundedImage( const QPixmap& pixmap, const QSize& size, float frameWidthPc
return QPixmap();
QPixmap scaledAvatar = pixmap.scaled( width, height, Qt::IgnoreAspectRatio, Qt::SmoothTransformation );
if ( frameWidthPct == 0.00 )
return scaledAvatar;
QPixmap frame( width, height );
frame.fill( Qt::transparent );