mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-09-01 18:04:05 +02:00
* TomahawkWindow cleanup.
This commit is contained in:
@@ -82,15 +82,10 @@ TomahawkWindow::TomahawkWindow( QWidget* parent )
|
|||||||
|
|
||||||
new ViewManager( this );
|
new ViewManager( this );
|
||||||
ui->setupUi( this );
|
ui->setupUi( this );
|
||||||
delete ui->sidebarWidget;
|
|
||||||
delete ui->playlistWidget;
|
|
||||||
|
|
||||||
applyPlatformTweaks();
|
applyPlatformTweaks();
|
||||||
|
|
||||||
ui->centralWidget->setContentsMargins( 0, 0, 0, 0 );
|
ui->centralWidget->setContentsMargins( 0, 0, 0, 0 );
|
||||||
ui->centralWidget->layout()->setContentsMargins( 0, 0, 0, 0 );
|
TomahawkUtils::unmarginLayout( ui->centralWidget->layout() );
|
||||||
ui->centralWidget->layout()->setMargin( 0 );
|
|
||||||
ui->centralWidget->layout()->setSpacing( 0 );
|
|
||||||
|
|
||||||
setupSideBar();
|
setupSideBar();
|
||||||
statusBar()->addPermanentWidget( m_audioControls, 1 );
|
statusBar()->addPermanentWidget( m_audioControls, 1 );
|
||||||
@@ -168,11 +163,8 @@ TomahawkWindow::applyPlatformTweaks()
|
|||||||
if ( !QString( qApp->style()->metaObject()->className() ).toLower().contains( "qtcurve" ) )
|
if ( !QString( qApp->style()->metaObject()->className() ).toLower().contains( "qtcurve" ) )
|
||||||
qApp->setStyle( new ProxyStyle() );
|
qApp->setStyle( new ProxyStyle() );
|
||||||
|
|
||||||
#ifdef Q_WS_MAC
|
|
||||||
setUnifiedTitleAndToolBarOnMac( true );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
|
setUnifiedTitleAndToolBarOnMac( true );
|
||||||
delete ui->hline1;
|
delete ui->hline1;
|
||||||
delete ui->hline2;
|
delete ui->hline2;
|
||||||
#else
|
#else
|
||||||
@@ -185,6 +177,10 @@ TomahawkWindow::applyPlatformTweaks()
|
|||||||
void
|
void
|
||||||
TomahawkWindow::setupSideBar()
|
TomahawkWindow::setupSideBar()
|
||||||
{
|
{
|
||||||
|
// Delete fake designer widgets
|
||||||
|
delete ui->sidebarWidget;
|
||||||
|
delete ui->playlistWidget;
|
||||||
|
|
||||||
QWidget* sidebarWidget = new QWidget();
|
QWidget* sidebarWidget = new QWidget();
|
||||||
sidebarWidget->setLayout( new QVBoxLayout() );
|
sidebarWidget->setLayout( new QVBoxLayout() );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user