mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Don't make infobar bigger than needed
This commit is contained in:
@@ -43,7 +43,6 @@ InfoBar::InfoBar( QWidget* parent )
|
|||||||
ui->setupUi( this );
|
ui->setupUi( this );
|
||||||
TomahawkUtils::unmarginLayout( layout() );
|
TomahawkUtils::unmarginLayout( layout() );
|
||||||
layout()->setContentsMargins( 8, 4, 8, 4 );
|
layout()->setContentsMargins( 8, 4, 8, 4 );
|
||||||
ui->verticalLayout->setContentsMargins( 0, 0, 0, 15 );
|
|
||||||
|
|
||||||
QFont boldFont = ui->captionLabel->font();
|
QFont boldFont = ui->captionLabel->font();
|
||||||
boldFont.setPixelSize( 18 );
|
boldFont.setPixelSize( 18 );
|
||||||
@@ -133,6 +132,7 @@ InfoBar::setDescription( const QString& s )
|
|||||||
m_queryLabel->hide();
|
m_queryLabel->hide();
|
||||||
|
|
||||||
ui->verticalLayout->addWidget( ui->descriptionLabel );
|
ui->verticalLayout->addWidget( ui->descriptionLabel );
|
||||||
|
ui->verticalLayout->setContentsMargins( 0, 0, 0, 0 );
|
||||||
ui->descriptionLabel->show();
|
ui->descriptionLabel->show();
|
||||||
}
|
}
|
||||||
ui->descriptionLabel->setText( s );
|
ui->descriptionLabel->setText( s );
|
||||||
@@ -151,12 +151,13 @@ InfoBar::setDescription( const artist_ptr& artist )
|
|||||||
|
|
||||||
m_queryLabel->show();
|
m_queryLabel->show();
|
||||||
ui->verticalLayout->addWidget( m_queryLabel );
|
ui->verticalLayout->addWidget( m_queryLabel );
|
||||||
|
ui->verticalLayout->setContentsMargins( 0, 0, 0, 15 );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
InfoBar::setDescription( const album_ptr& album_ptr )
|
InfoBar::setDescription( const album_ptr& )
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user