mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 08:04:25 +02:00
Don't stretch the artist label too much.
This commit is contained in:
@@ -84,7 +84,11 @@ ColumnViewPreviewWidget::ColumnViewPreviewWidget( ColumnView* parent )
|
|||||||
connect( m_artistLabel, SIGNAL( clickedArtist() ), SLOT( onArtistClicked() ) );
|
connect( m_artistLabel, SIGNAL( clickedArtist() ), SLOT( onArtistClicked() ) );
|
||||||
font.setPointSize( TomahawkUtils::defaultFontSize() + 5 );
|
font.setPointSize( TomahawkUtils::defaultFontSize() + 5 );
|
||||||
m_artistLabel->setFont( font );
|
m_artistLabel->setFont( font );
|
||||||
mainLayout->addWidget( m_artistLabel );
|
QHBoxLayout* artistLayout = new QHBoxLayout;
|
||||||
|
artistLayout->addStretch();
|
||||||
|
artistLayout->addWidget( m_artistLabel );
|
||||||
|
artistLayout->addStretch();
|
||||||
|
mainLayout->addLayout( artistLayout );
|
||||||
|
|
||||||
#ifndef Q_OS_MAC //we don't need to scale on OSX anyway
|
#ifndef Q_OS_MAC //we don't need to scale on OSX anyway
|
||||||
mainLayout->addSpacing( TomahawkUtils::DpiScaler::scaledY( this, 16 ) );
|
mainLayout->addSpacing( TomahawkUtils::DpiScaler::scaledY( this, 16 ) );
|
||||||
|
Reference in New Issue
Block a user