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:
BIN
data/images/cancel.png
Normal file
BIN
data/images/cancel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 798 B |
BIN
data/images/delete.png
Normal file
BIN
data/images/delete.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 960 B |
@@ -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>
|
||||||
|
@@ -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 );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user