mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-13 20:39:57 +01:00
* Use font-metrics to calculate icon size in header.
This commit is contained in:
parent
4241dd840b
commit
4ca90d7691
@ -101,7 +101,8 @@ BasicHeader::setDescription( const QString& /* s */ )
|
||||
void
|
||||
BasicHeader::setPixmap( const QPixmap& pixmap, bool tinted )
|
||||
{
|
||||
ui->iconLabel->setFixedHeight( 20 );
|
||||
QFontMetrics fm( ui->captionLabel->font() );
|
||||
ui->iconLabel->setFixedHeight( fm.ascent() );
|
||||
|
||||
QPixmap p = pixmap;
|
||||
if ( tinted )
|
||||
|
Loading…
x
Reference in New Issue
Block a user