1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-13 12:31:52 +02:00

Use artist and album icons for temp pages

This commit is contained in:
Leo Franchi 2011-10-21 17:34:01 -04:00
parent b8ccf9b2af
commit 08610eee13
2 changed files with 11 additions and 1 deletions

View File

@ -92,6 +92,9 @@
<file>data/images/artist-icon.png</file>
<file>data/images/album-icon.png</file>
<file>data/images/search-icon.png</file>
<file>data/images/star-hover.png</file>
<file>data/images/starred.png</file>
<file>data/images/star-unstarred.png</file>
<file>data/images/track-icon-22x22.png</file>
<file>data/images/track-icon-32x32.png</file>
<file>data/images/track-icon-16x16.png</file>

View File

@ -17,7 +17,9 @@
*/
#include "temporarypageitem.h"
#include <viewmanager.h>
#include "viewmanager.h"
#include "widgets/infowidgets/AlbumInfoWidget.h"
#include "widgets/infowidgets/ArtistInfoWidget.h"
using namespace Tomahawk;
@ -27,6 +29,11 @@ TemporaryPageItem::TemporaryPageItem ( SourcesModel* mdl, SourceTreeItem* parent
, m_icon( QIcon( RESPATH "images/playlist-icon.png" ) )
, m_sortValue( sortValue )
{
if ( dynamic_cast< ArtistInfoWidget* >( page ) )
m_icon = QIcon( RESPATH "images/artist-icon.png" );
else if ( dynamic_cast< AlbumInfoWidget* >( page ) )
m_icon = QIcon( RESPATH "images/album-icon.png" );
model()->linkSourceItemToPage( this, page );
}