1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-18 23:09:42 +01:00

Fixed CaptionLabel size calculation.

This commit is contained in:
Christian Muehlhaeuser 2014-10-27 18:53:38 +01:00
parent faeabada6a
commit dfa5bc9e6f
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ TrackDetailView::TrackDetailView( QWidget* parent )
m_resultsBoxLabel->setStyleSheet( "QLabel { color: rgba( 0, 0, 0, 50% ) }" );
m_resultsBoxLabel->setText( tr( "Alternate Sources:" ) );
m_resultsBoxLabel->setFixedWidth( width() - 4 );
m_resultsBoxLabel->setFixedHeight( m_resultsBoxLabel->sizeHint().height() * 0.8 );
// m_resultsBoxLabel->setFixedHeight( m_resultsBoxLabel->sizeHint().height() * 0.8 );
m_resultsBoxLabel->hide();
m_resultsBox = new QWidget;

View File

@ -45,7 +45,7 @@ QSize
CaptionLabel::sizeHint() const
{
QFontMetrics fm( font() );
return QSize( fm.width( text().toUpper() ), fm.height() * 1.7 );
return QSize( fm.width( text().toUpper() ), fm.height() + 9 );
}