mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Use artist and album icons for temp pages
This commit is contained in:
@@ -92,6 +92,9 @@
|
|||||||
<file>data/images/artist-icon.png</file>
|
<file>data/images/artist-icon.png</file>
|
||||||
<file>data/images/album-icon.png</file>
|
<file>data/images/album-icon.png</file>
|
||||||
<file>data/images/search-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-22x22.png</file>
|
||||||
<file>data/images/track-icon-32x32.png</file>
|
<file>data/images/track-icon-32x32.png</file>
|
||||||
<file>data/images/track-icon-16x16.png</file>
|
<file>data/images/track-icon-16x16.png</file>
|
||||||
|
@@ -17,7 +17,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "temporarypageitem.h"
|
#include "temporarypageitem.h"
|
||||||
#include <viewmanager.h>
|
#include "viewmanager.h"
|
||||||
|
#include "widgets/infowidgets/AlbumInfoWidget.h"
|
||||||
|
#include "widgets/infowidgets/ArtistInfoWidget.h"
|
||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
@@ -27,6 +29,11 @@ TemporaryPageItem::TemporaryPageItem ( SourcesModel* mdl, SourceTreeItem* parent
|
|||||||
, m_icon( QIcon( RESPATH "images/playlist-icon.png" ) )
|
, m_icon( QIcon( RESPATH "images/playlist-icon.png" ) )
|
||||||
, m_sortValue( sortValue )
|
, 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 );
|
model()->linkSourceItemToPage( this, page );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user