mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
Add some padding on the right edge of the dyn controls
This commit is contained in:
@@ -63,7 +63,11 @@ DynamicControlList::init()
|
|||||||
m_layout->setColumnStretch( 2, 1 );
|
m_layout->setColumnStretch( 2, 1 );
|
||||||
m_layout->setMargin( 0 );
|
m_layout->setMargin( 0 );
|
||||||
m_layout->setVerticalSpacing( 0 );
|
m_layout->setVerticalSpacing( 0 );
|
||||||
|
#ifdef Q_WS_MAC // on OS X we don't want the right edge of the toolbuttons against the window
|
||||||
|
m_layout->setContentsMargins( 0, 0, 3, 0 );
|
||||||
|
#else
|
||||||
m_layout->setContentsMargins( 0, 0, 0, 0 );
|
m_layout->setContentsMargins( 0, 0, 0, 0 );
|
||||||
|
#endif
|
||||||
m_layout->setSizeConstraint( QLayout::SetMinimumSize );
|
m_layout->setSizeConstraint( QLayout::SetMinimumSize );
|
||||||
|
|
||||||
m_collapseLayout = new QHBoxLayout();
|
m_collapseLayout = new QHBoxLayout();
|
||||||
|
@@ -41,7 +41,6 @@ DynamicControlWrapper::DynamicControlWrapper( const Tomahawk::dyncontrol_ptr& co
|
|||||||
, m_typeSelector( 0 )
|
, m_typeSelector( 0 )
|
||||||
, m_layout( QWeakPointer< QGridLayout >( layout ) )
|
, m_layout( QWeakPointer< QGridLayout >( layout ) )
|
||||||
{
|
{
|
||||||
|
|
||||||
qDebug() << "CREATING DYNAMIC CONTROL WRAPPER WITH ROW:" << row << layout;
|
qDebug() << "CREATING DYNAMIC CONTROL WRAPPER WITH ROW:" << row << layout;
|
||||||
|
|
||||||
m_typeSelector = new QComboBox( m_parent );
|
m_typeSelector = new QComboBox( m_parent );
|
||||||
@@ -74,8 +73,6 @@ DynamicControlWrapper::DynamicControlWrapper( const Tomahawk::dyncontrol_ptr& co
|
|||||||
|
|
||||||
m_layout.data()->addLayout( m_plusL, m_row, 3, Qt::AlignCenter );
|
m_layout.data()->addLayout( m_plusL, m_row, 3, Qt::AlignCenter );
|
||||||
m_plusL->setCurrentIndex( 0 );
|
m_plusL->setCurrentIndex( 0 );
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DynamicControlWrapper::~DynamicControlWrapper()
|
DynamicControlWrapper::~DynamicControlWrapper()
|
||||||
|
Reference in New Issue
Block a user