1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-07 17:42:35 +02:00

Fix margins on scripted resolver config dialogs.

This commit is contained in:
Teo Mrnjavac 2012-08-05 14:03:38 +02:00
parent 1258d8ed79
commit 1a5dc2457c
2 changed files with 8 additions and 0 deletions

View File

@ -90,6 +90,11 @@ Tomahawk::ExternalResolverGui::widgetFromData( QByteArray& data, QWidget* parent
QUiLoader l;
QBuffer b( &data );
QWidget* w = l.load( &b, parent );
#ifdef Q_OS_MAC
w->setContentsMargins( 8, 8, 8, 8 );
#else
w->setContentsMargins( 6, 6, 6, 6 );
#endif
return w;
}

View File

@ -56,6 +56,9 @@ DelegateConfigWrapper::DelegateConfigWrapper( QWidget* conf, QWidget* aboutWidge
h->addWidget( m_buttons );
if( m_widget && m_widget->layout() )
h->setContentsMargins( m_widget->layout()->contentsMargins() );
else if( m_widget )
h->setContentsMargins( m_widget->contentsMargins() );
v->addLayout( h );
setLayout( v );