mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 19:37:09 +02:00
tighten up some margins
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "DynamicControlWidget.h"
|
||||
#include "dynamic/GeneratorInterface.h"
|
||||
#include <QHBoxLayout>
|
||||
|
||||
using namespace Tomahawk;
|
||||
|
||||
@@ -65,6 +66,7 @@ DynamicControlList::init()
|
||||
setLayout( m_layout );
|
||||
m_layout->setMargin( 0 );
|
||||
m_layout->setSpacing( 0 );
|
||||
m_layout->setContentsMargins( 0, 0, 0, 0 );
|
||||
// setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Ignored );
|
||||
|
||||
m_summaryWidget = new QWidget( this );
|
||||
|
@@ -49,6 +49,9 @@ DynamicControlWidget::DynamicControlWidget( const Tomahawk::dyncontrol_ptr& cont
|
||||
setMouseTracking( true );
|
||||
|
||||
m_layout = new QHBoxLayout;
|
||||
m_layout->setMargin( 0 );
|
||||
m_layout->setContentsMargins( 0, 0, 0, 0 );
|
||||
|
||||
QComboBox* typeSelector = new QComboBox( this );
|
||||
m_typeSelector = new ReadOrWriteWidget( typeSelector, m_isLocal, this );
|
||||
|
||||
@@ -71,6 +74,7 @@ DynamicControlWidget::DynamicControlWidget( const Tomahawk::dyncontrol_ptr& cont
|
||||
connect( m_plusButton, SIGNAL( clicked( bool ) ), this, SIGNAL( addNewControl() ) );
|
||||
m_plusL = new QStackedLayout;
|
||||
m_plusL->setContentsMargins( 0, 0, 0, 0 );
|
||||
m_plusL->setMargin( 0 );
|
||||
m_plusL->addWidget( m_plusButton );
|
||||
m_plusL->addWidget( m_minusButton );
|
||||
m_plusL->addWidget( createDummy( m_plusButton ) ); // :-(
|
||||
@@ -81,6 +85,7 @@ DynamicControlWidget::DynamicControlWidget( const Tomahawk::dyncontrol_ptr& cont
|
||||
m_collapseButton->setIcon( QIcon( RESPATH "images/arrow-up-double.png" ) );
|
||||
m_collapseL = new QStackedLayout;
|
||||
m_collapseL->setContentsMargins( 0, 0, 0, 0 );
|
||||
m_collapseL->setMargin( 0 );
|
||||
m_collapseL->addWidget( m_collapseButton );
|
||||
m_collapseL->addWidget( createDummy( m_collapseButton ) ); // :-(
|
||||
m_collapseL->setCurrentIndex( 1 );
|
||||
@@ -146,6 +151,7 @@ QToolButton* DynamicControlWidget::initButton()
|
||||
QWidget* DynamicControlWidget::createDummy( QWidget* fromW )
|
||||
{
|
||||
QWidget* dummy = new QWidget( this );
|
||||
dummy->setContentsMargins( 0, 0, 0, 0 );
|
||||
dummy->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
|
||||
dummy->setMinimumSize( fromW->size() );
|
||||
dummy->setMaximumSize( fromW->size() );
|
||||
|
@@ -97,16 +97,20 @@ DynamicWidget::DynamicWidget( const Tomahawk::dynplaylist_ptr& playlist, QWidget
|
||||
m_model = new PlaylistModel( this );
|
||||
m_view = new PlaylistView( this );
|
||||
m_view->setModel( m_model );
|
||||
m_view->setContentsMargins( 0, 0, 0, 0 );
|
||||
|
||||
m_splitter->addWidget( m_controls );
|
||||
m_splitter->addWidget( m_view );
|
||||
m_splitter->setGreedyWidget( 1 );
|
||||
m_splitter->setHandleWidth( 0 );
|
||||
m_splitter->setContentsMargins( 0, 0, 0, 0 );
|
||||
|
||||
m_splitter->show( 0, false );
|
||||
|
||||
loadDynamicPlaylist( playlist );
|
||||
|
||||
m_layout->setContentsMargins( 0, 0, 0, 0 );
|
||||
m_layout->setMargin( 0 );
|
||||
setLayout( m_layout );
|
||||
|
||||
connect( m_controls, SIGNAL( controlChanged( Tomahawk::dyncontrol_ptr ) ), this, SLOT( controlChanged( Tomahawk::dyncontrol_ptr ) ), Qt::QueuedConnection );
|
||||
|
Reference in New Issue
Block a user