mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 01:54:07 +02:00
* Use track-placeholder.png in the PlaylistItemDelegate.
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
<file>data/images/not-loved.png</file>
|
<file>data/images/not-loved.png</file>
|
||||||
<file>data/images/no-album-art-placeholder.png</file>
|
<file>data/images/no-album-art-placeholder.png</file>
|
||||||
<file>data/images/no-artist-image-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-panel.png</file>
|
||||||
<file>data/images/now-playing-speaker.png</file>
|
<file>data/images/now-playing-speaker.png</file>
|
||||||
<file>data/images/pause-pressed.png</file>
|
<file>data/images/pause-pressed.png</file>
|
||||||
|
@@ -184,13 +184,11 @@ PlaylistItemDelegate::paintShort( QPainter* painter, const QStyleOptionViewItem&
|
|||||||
else
|
else
|
||||||
lowerText = QString( "played %1 ago by %2" ).arg( playtime ).arg( source->friendlyName() );
|
lowerText = QString( "played %1 ago by %2" ).arg( playtime ).arg( source->friendlyName() );
|
||||||
|
|
||||||
pixmap = source->avatar();
|
// pixmap = source->avatar();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( pixmap.isNull() )
|
if ( pixmap.isNull() )
|
||||||
pixmap = QPixmap( RESPATH "images/user-avatar.png" );
|
pixmap = QPixmap( RESPATH "images/track-placeholder.png" );
|
||||||
|
|
||||||
pixmap = TomahawkUtils::createAvatarFrame( pixmap );
|
|
||||||
|
|
||||||
painter->save();
|
painter->save();
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user