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