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

Don't make infobar bigger than needed

This commit is contained in:
Leo Franchi 2011-10-30 14:32:46 -04:00
parent c1ee97fc40
commit 0e83e47f1a

View File

@ -43,7 +43,6 @@ InfoBar::InfoBar( QWidget* parent )
ui->setupUi( this );
TomahawkUtils::unmarginLayout( layout() );
layout()->setContentsMargins( 8, 4, 8, 4 );
ui->verticalLayout->setContentsMargins( 0, 0, 0, 15 );
QFont boldFont = ui->captionLabel->font();
boldFont.setPixelSize( 18 );
@ -133,6 +132,7 @@ InfoBar::setDescription( const QString& s )
m_queryLabel->hide();
ui->verticalLayout->addWidget( ui->descriptionLabel );
ui->verticalLayout->setContentsMargins( 0, 0, 0, 0 );
ui->descriptionLabel->show();
}
ui->descriptionLabel->setText( s );
@ -151,12 +151,13 @@ InfoBar::setDescription( const artist_ptr& artist )
m_queryLabel->show();
ui->verticalLayout->addWidget( m_queryLabel );
ui->verticalLayout->setContentsMargins( 0, 0, 0, 15 );
}
}
void
InfoBar::setDescription( const album_ptr& album_ptr )
InfoBar::setDescription( const album_ptr& )
{
// TODO
}