From b291788a2edc333118904e19aa4101100a200d1a Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 7 Jun 2013 11:27:15 +0200 Subject: [PATCH] * Fixed Accounts stuff causing QLayout warning. --- src/tomahawk/widgets/AccountListWidget.cpp | 2 +- src/tomahawk/widgets/AccountsToolButton.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tomahawk/widgets/AccountListWidget.cpp b/src/tomahawk/widgets/AccountListWidget.cpp index 4606043f4..4714be4be 100644 --- a/src/tomahawk/widgets/AccountListWidget.cpp +++ b/src/tomahawk/widgets/AccountListWidget.cpp @@ -73,7 +73,7 @@ AccountListWidget::AccountListWidget( AccountModelFactoryProxy* model, QWidget* connect( m_toggleOnlineButton, SIGNAL( clicked() ), this, SLOT( toggleOnlineStateForAll() ) ); - QHBoxLayout *headerLayout = new QHBoxLayout( this ); + QHBoxLayout *headerLayout = new QHBoxLayout(); headerLayout->addWidget( connectionsLabel ); headerLayout->addSpacing( 30 ); headerLayout->addWidget( m_toggleOnlineButton ); diff --git a/src/tomahawk/widgets/AccountsToolButton.cpp b/src/tomahawk/widgets/AccountsToolButton.cpp index ecb4fedee..a6288ea50 100644 --- a/src/tomahawk/widgets/AccountsToolButton.cpp +++ b/src/tomahawk/widgets/AccountsToolButton.cpp @@ -89,7 +89,7 @@ AccountsToolButton::AccountsToolButton( QWidget* parent ) settingsButton->setText( tr( "Configure Accounts" ) ); connect( settingsButton, SIGNAL( clicked() ), window(), SLOT( showSettingsDialog() ) ); - QHBoxLayout *bottomLayout = new QHBoxLayout( w ); + QHBoxLayout *bottomLayout = new QHBoxLayout(); TomahawkUtils::unmarginLayout( bottomLayout ); bottomLayout->addStretch(); bottomLayout->addWidget( settingsButton );