diff --git a/src/libtomahawk/playlist/FlexibleTreeView.cpp b/src/libtomahawk/playlist/FlexibleTreeView.cpp index ef515d563..4300eaaaa 100644 --- a/src/libtomahawk/playlist/FlexibleTreeView.cpp +++ b/src/libtomahawk/playlist/FlexibleTreeView.cpp @@ -55,6 +55,7 @@ FlexibleTreeView::FlexibleTreeView( QWidget* parent, QWidget* extraHeader ) m_header->setBackgroundColor( Qt::black ); 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_columnView->setPlaylistInterface( m_trackView->proxyModel()->playlistInterface() ); @@ -369,17 +370,17 @@ FlexibleTreeView::setEmptyTip( const QString& tip ) void -FlexibleTreeView::setPixmap( const QPixmap& pixmap ) +FlexibleTreeView::setPixmap( const QPixmap& pixmap, bool tinted ) { m_pixmap = pixmap; - m_header->setPixmap( pixmap ); + m_header->setPixmap( pixmap, tinted ); } void FlexibleTreeView::onModelChanged() { - setPixmap( m_model->icon() ); + setPixmap( m_model->icon(), false ); m_header->setCaption( m_model->title() ); m_header->setDescription( m_model->description() ); diff --git a/src/libtomahawk/playlist/FlexibleTreeView.h b/src/libtomahawk/playlist/FlexibleTreeView.h index 04287fe9c..dbe3f5c24 100644 --- a/src/libtomahawk/playlist/FlexibleTreeView.h +++ b/src/libtomahawk/playlist/FlexibleTreeView.h @@ -70,7 +70,7 @@ public: void setFlatModel( PlayableModel* model ); void setAlbumModel( PlayableModel* model ); - void setPixmap( const QPixmap& pixmap ); + void setPixmap( const QPixmap& pixmap, bool tinted = true ); void setEmptyTip( const QString& tip ); public slots: