mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Optimize code for when rounded corners aren't actually wanted.
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
Reference in New Issue
Block a user