mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-22 08:52:12 +02:00
* Rounded corners for images on Artist, Album & Track page.
This commit is contained in:
parent
84b963a489
commit
a9af4be463
src/libtomahawk/widgets/infowidgets
@ -230,7 +230,7 @@ AlbumInfoWidget::onAlbumImageUpdated()
|
||||
m_pixmap = m_album->cover( QSize( 0, 0 ) );
|
||||
emit pixmapChanged( m_pixmap );
|
||||
|
||||
ui->cover->setPixmap( m_album->cover( ui->cover->sizeHint() ) );
|
||||
ui->cover->setPixmap( TomahawkUtils::createRoundedImage( m_album->cover( ui->cover->sizeHint() ), QSize( 0, 0 ), 0.05 ) );
|
||||
}
|
||||
|
||||
|
||||
|
@ -304,7 +304,7 @@ ArtistInfoWidget::onArtistImageUpdated()
|
||||
m_pixmap = m_artist->cover( QSize( 0, 0 ) );
|
||||
emit pixmapChanged( m_pixmap );
|
||||
|
||||
ui->cover->setPixmap( m_artist->cover( ui->cover->sizeHint() ) );
|
||||
ui->cover->setPixmap( TomahawkUtils::createRoundedImage( m_artist->cover( ui->cover->sizeHint() ), QSize( 0, 0 ), 0.05 ) );
|
||||
}
|
||||
|
||||
|
||||
|
@ -217,7 +217,7 @@ TrackInfoWidget::onCoverUpdated()
|
||||
return;
|
||||
|
||||
m_pixmap = m_query->cover( ui->cover->size() );
|
||||
ui->cover->setPixmap( m_pixmap );
|
||||
ui->cover->setPixmap( TomahawkUtils::createRoundedImage( m_pixmap, QSize( 0, 0 ), 0.05 ) );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user