mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 23:26:40 +02:00
Fixed CaptionLabel size calculation.
This commit is contained in:
@@ -96,7 +96,7 @@ TrackDetailView::TrackDetailView( QWidget* parent )
|
|||||||
m_resultsBoxLabel->setStyleSheet( "QLabel { color: rgba( 0, 0, 0, 50% ) }" );
|
m_resultsBoxLabel->setStyleSheet( "QLabel { color: rgba( 0, 0, 0, 50% ) }" );
|
||||||
m_resultsBoxLabel->setText( tr( "Alternate Sources:" ) );
|
m_resultsBoxLabel->setText( tr( "Alternate Sources:" ) );
|
||||||
m_resultsBoxLabel->setFixedWidth( width() - 4 );
|
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_resultsBoxLabel->hide();
|
||||||
|
|
||||||
m_resultsBox = new QWidget;
|
m_resultsBox = new QWidget;
|
||||||
|
@@ -45,7 +45,7 @@ QSize
|
|||||||
CaptionLabel::sizeHint() const
|
CaptionLabel::sizeHint() const
|
||||||
{
|
{
|
||||||
QFontMetrics fm( font() );
|
QFontMetrics fm( font() );
|
||||||
return QSize( fm.width( text().toUpper() ), fm.height() * 1.7 );
|
return QSize( fm.width( text().toUpper() ), fm.height() + 9 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user