mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 11:04:01 +02:00
* Tint default FlexibleTreeView's pixmap.
This commit is contained in:
@@ -55,6 +55,7 @@ FlexibleTreeView::FlexibleTreeView( QWidget* parent, QWidget* extraHeader )
|
|||||||
|
|
||||||
m_header->setBackgroundColor( Qt::black );
|
m_header->setBackgroundColor( Qt::black );
|
||||||
m_header->setBackground( ImageRegistry::instance()->pixmap( RESPATH "images/collection_background_small.png", QSize( 0, 0 ) ), false );
|
m_header->setBackground( ImageRegistry::instance()->pixmap( RESPATH "images/collection_background_small.png", QSize( 0, 0 ) ), false );
|
||||||
|
setPixmap( TomahawkUtils::defaultPixmap( TomahawkUtils::DefaultCollection, TomahawkUtils::Original, QSize( 256, 256 ) ) );
|
||||||
|
|
||||||
// m_trackView->setPlaylistInterface( m_playlistInterface );
|
// m_trackView->setPlaylistInterface( m_playlistInterface );
|
||||||
// m_columnView->setPlaylistInterface( m_trackView->proxyModel()->playlistInterface() );
|
// m_columnView->setPlaylistInterface( m_trackView->proxyModel()->playlistInterface() );
|
||||||
@@ -369,17 +370,17 @@ FlexibleTreeView::setEmptyTip( const QString& tip )
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
FlexibleTreeView::setPixmap( const QPixmap& pixmap )
|
FlexibleTreeView::setPixmap( const QPixmap& pixmap, bool tinted )
|
||||||
{
|
{
|
||||||
m_pixmap = pixmap;
|
m_pixmap = pixmap;
|
||||||
m_header->setPixmap( pixmap );
|
m_header->setPixmap( pixmap, tinted );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
FlexibleTreeView::onModelChanged()
|
FlexibleTreeView::onModelChanged()
|
||||||
{
|
{
|
||||||
setPixmap( m_model->icon() );
|
setPixmap( m_model->icon(), false );
|
||||||
m_header->setCaption( m_model->title() );
|
m_header->setCaption( m_model->title() );
|
||||||
m_header->setDescription( m_model->description() );
|
m_header->setDescription( m_model->description() );
|
||||||
|
|
||||||
|
@@ -70,7 +70,7 @@ public:
|
|||||||
void setFlatModel( PlayableModel* model );
|
void setFlatModel( PlayableModel* model );
|
||||||
void setAlbumModel( PlayableModel* model );
|
void setAlbumModel( PlayableModel* model );
|
||||||
|
|
||||||
void setPixmap( const QPixmap& pixmap );
|
void setPixmap( const QPixmap& pixmap, bool tinted = true );
|
||||||
void setEmptyTip( const QString& tip );
|
void setEmptyTip( const QString& tip );
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
Reference in New Issue
Block a user