1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-10 16:14:40 +02:00

Added nice icons to SourceTreePopupDialog, and layout fix.

This commit is contained in:
Teo Mrnjavac
2012-10-13 21:51:10 +02:00
parent f6f42c5f33
commit 3f96632302
4 changed files with 7 additions and 3 deletions

BIN
data/images/cancel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 798 B

BIN
data/images/delete.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 960 B

View File

@@ -160,5 +160,7 @@
<file>data/images/spotify-sourceicon.png</file> <file>data/images/spotify-sourceicon.png</file>
<file>data/images/account-offline.png</file> <file>data/images/account-offline.png</file>
<file>data/images/account-online.png</file> <file>data/images/account-online.png</file>
<file>data/images/cancel.png</file>
<file>data/images/delete.png</file>
</qresource> </qresource>
</RCC> </RCC>

View File

@@ -62,16 +62,18 @@ SourceTreePopupDialog::SourceTreePopupDialog()
m_label = new QLabel( this ); m_label = new QLabel( this );
m_buttons = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, this ); m_buttons = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, this );
//TODO: get some nice icons for this
m_buttons->button( QDialogButtonBox::Ok )->setIcon( QIcon() ); m_buttons->button( QDialogButtonBox::Ok )->setIcon( QIcon( RESPATH "images/delete.png" ) );
m_buttons->button( QDialogButtonBox::Cancel )->setIcon( QIcon() ); m_buttons->button( QDialogButtonBox::Cancel )->setIcon( QIcon( RESPATH "images/cancel.png" ) );
connect( m_buttons, SIGNAL( accepted() ), this, SLOT( onAccepted() ) ); connect( m_buttons, SIGNAL( accepted() ), this, SLOT( onAccepted() ) );
connect( m_buttons, SIGNAL( rejected() ), this, SLOT( onRejected() ) ); connect( m_buttons, SIGNAL( rejected() ), this, SLOT( onRejected() ) );
m_layout = new QVBoxLayout; m_layout = new QVBoxLayout;
TomahawkUtils::unmarginLayout( m_layout );
setLayout( m_layout ); setLayout( m_layout );
m_layout->setSpacing( 8 ); m_layout->setSpacing( 8 );
m_layout->setMargin( 6 );
m_layout->addWidget( m_title ); m_layout->addWidget( m_title );