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:
parent
1258d8ed79
commit
1a5dc2457c
@ -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;
|
||||
}
|
||||
|
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user