mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 02:54:33 +02:00
Make the settings button a QPushButton to look nice on Mac.
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QPaintEvent>
|
#include <QPaintEvent>
|
||||||
|
#include <QPushButton>
|
||||||
#include <QToolBar>
|
#include <QToolBar>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
|
|
||||||
@@ -54,9 +55,8 @@ AccountsToolButton::AccountsToolButton( QWidget* parent )
|
|||||||
connectionsLabel->setFont( clFont );
|
connectionsLabel->setFont( clFont );
|
||||||
connectionsLabel->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );
|
connectionsLabel->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );
|
||||||
|
|
||||||
QToolButton *settingsButton = new QToolButton( w );
|
QPushButton *settingsButton = new QPushButton( w );
|
||||||
settingsButton->setIcon( QIcon( RESPATH "images/account-settings.png" ) );
|
settingsButton->setIcon( QIcon( RESPATH "images/account-settings.png" ) );
|
||||||
settingsButton->setToolButtonStyle( Qt::ToolButtonTextBesideIcon );
|
|
||||||
settingsButton->setText( tr( "Configure Accounts" ) );
|
settingsButton->setText( tr( "Configure Accounts" ) );
|
||||||
connect( settingsButton, SIGNAL( clicked() ),
|
connect( settingsButton, SIGNAL( clicked() ),
|
||||||
window(), SLOT( showSettingsDialog() ) );
|
window(), SLOT( showSettingsDialog() ) );
|
||||||
|
Reference in New Issue
Block a user