1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

* Use track-placeholder.png in the PlaylistItemDelegate.

This commit is contained in:
Christian Muehlhaeuser
2011-08-11 02:48:28 +02:00
parent 503de73c7f
commit 0dd29ffa3d
2 changed files with 3 additions and 4 deletions

View File

@@ -10,6 +10,7 @@
<file>data/images/not-loved.png</file>
<file>data/images/no-album-art-placeholder.png</file>
<file>data/images/no-artist-image-placeholder.png</file>
<file>data/images/track-placeholder.png</file>
<file>data/images/now-playing-panel.png</file>
<file>data/images/now-playing-speaker.png</file>
<file>data/images/pause-pressed.png</file>

View File

@@ -184,13 +184,11 @@ PlaylistItemDelegate::paintShort( QPainter* painter, const QStyleOptionViewItem&
else
lowerText = QString( "played %1 ago by %2" ).arg( playtime ).arg( source->friendlyName() );
pixmap = source->avatar();
// pixmap = source->avatar();
}
if ( pixmap.isNull() )
pixmap = QPixmap( RESPATH "images/user-avatar.png" );
pixmap = TomahawkUtils::createAvatarFrame( pixmap );
pixmap = QPixmap( RESPATH "images/track-placeholder.png" );
painter->save();
{