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:
parent
a19f85df8d
commit
a47c164fc9
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user