mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 14:46:33 +02:00
* Tint breadcrumb icon.
This commit is contained in:
@@ -68,14 +68,14 @@ Breadcrumb::setModel( QAbstractItemModel* model )
|
|||||||
void
|
void
|
||||||
Breadcrumb::setRootIcon( const QPixmap& pm )
|
Breadcrumb::setRootIcon( const QPixmap& pm )
|
||||||
{
|
{
|
||||||
m_rootIcon = pm;
|
m_rootIcon = TomahawkUtils::tinted( pm, Qt::white );
|
||||||
|
|
||||||
QPushButton* button = new QPushButton( QIcon( m_rootIcon ), "", this );
|
QPushButton* button = new QPushButton( QIcon( m_rootIcon ), "", this );
|
||||||
button->setFlat( true );
|
button->setFlat( true );
|
||||||
button->setStyleSheet( "QPushButton{ background-color: transparent; border: none; width:36px; height:36px;}" );
|
button->setStyleSheet( "QPushButton{ background-color: transparent; border: none; width:36px; height:36px; }" );
|
||||||
m_buttonlayout->insertWidget( 0, button );
|
m_buttonlayout->insertWidget( 0, button );
|
||||||
m_buttonlayout->insertSpacing( 0,5 );
|
m_buttonlayout->insertSpacing( 0, 5 );
|
||||||
m_buttonlayout->insertSpacing( 2,5 );
|
m_buttonlayout->insertSpacing( 2, 5 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user