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

Try to get nice margins for the accounts widget on OSX.

This commit is contained in:
Teo Mrnjavac 2012-10-20 19:20:54 +02:00
parent 4a91be6fe5
commit 676a8c1b40

View File

@ -49,10 +49,9 @@ AccountsToolButton::AccountsToolButton( QWidget* parent )
QVBoxLayout *wMainLayout = new QVBoxLayout( w );
w->setLayout( wMainLayout );
#ifdef Q_OS_MAC
w->setContentsMargins( 4, 4, 2, 2 );
wMainLayout->setContentsMargins( 4, 4, 2, 2 );
#endif
TomahawkUtils::unmarginLayout( w->layout() );
w->setContentsMargins( 6, 6, 6, 6 );
m_popup->setWidget( w );
connect( m_popup, SIGNAL( hidden() ), SLOT( popupHidden() ) );
@ -77,6 +76,8 @@ AccountsToolButton::AccountsToolButton( QWidget* parent )
separatorLine->setStyleSheet( "QWidget { border-top: 1px solid rgb( 140, 140, 140 ); }" ); //from ProxyStyle
wMainLayout->addWidget( separatorLine );
wMainLayout->addSpacing( 6 );
QPushButton *settingsButton = new QPushButton( w );
settingsButton->setIcon( QIcon( RESPATH "images/account-settings.png" ) );
settingsButton->setText( tr( "Configure Accounts" ) );