From 0e83e47f1ae6208d6bbca6a437332049490c95b8 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Sun, 30 Oct 2011 14:32:46 -0400 Subject: [PATCH] Don't make infobar bigger than needed --- src/libtomahawk/infobar/infobar.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/infobar/infobar.cpp b/src/libtomahawk/infobar/infobar.cpp index 72da4836b..d4f39d680 100644 --- a/src/libtomahawk/infobar/infobar.cpp +++ b/src/libtomahawk/infobar/infobar.cpp @@ -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 }