mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 08:04:25 +02:00
* Use font-metrics to calculate icon size in header.
This commit is contained in:
@@ -101,7 +101,8 @@ BasicHeader::setDescription( const QString& /* s */ )
|
|||||||
void
|
void
|
||||||
BasicHeader::setPixmap( const QPixmap& pixmap, bool tinted )
|
BasicHeader::setPixmap( const QPixmap& pixmap, bool tinted )
|
||||||
{
|
{
|
||||||
ui->iconLabel->setFixedHeight( 20 );
|
QFontMetrics fm( ui->captionLabel->font() );
|
||||||
|
ui->iconLabel->setFixedHeight( fm.ascent() );
|
||||||
|
|
||||||
QPixmap p = pixmap;
|
QPixmap p = pixmap;
|
||||||
if ( tinted )
|
if ( tinted )
|
||||||
|
Reference in New Issue
Block a user