1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 00:54:20 +02:00

* Also use queryTrack() when painting the love-box.

This commit is contained in:
Christian Muehlhaeuser
2013-09-08 01:32:43 +02:00
parent a05e7c2b18
commit 4ed80067fa

View File

@@ -338,7 +338,7 @@ PlaylistItemDelegate::drawLoveBox( QPainter* painter, const QRect& rect, Playabl
const int width = 2 + rect.height() - 4 * 2; const int width = 2 + rect.height() - 4 * 2;
QList< QPixmap > pixmaps; QList< QPixmap > pixmaps;
foreach ( const Tomahawk::source_ptr& source, item->query()->track()->sourcesWithSocialAction( "Love", true ) ) foreach ( const Tomahawk::source_ptr& source, item->query()->queryTrack()->sourcesWithSocialAction( "Love", true ) )
pixmaps << source->avatar( TomahawkUtils::Original, QSize( height, height ) ); pixmaps << source->avatar( TomahawkUtils::Original, QSize( height, height ) );
const int max = 5; const int max = 5;
const unsigned int count = qMin( pixmaps.count(), max ); const unsigned int count = qMin( pixmaps.count(), max );