1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

didn't mean to commit that change, doing a partial update of the playlist delegate isn't great

This commit is contained in:
Leo Franchi
2011-08-11 21:25:44 -04:00
parent 744f31bb45
commit 7a4a2f5b70

View File

@@ -246,8 +246,7 @@ PlaylistDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
{
descText = index.data( WelcomePlaylistModel::ArtistRole ).toString();
}
painter->setFont( italicFont );
painter->drawText( option.rect.adjusted( 66, 26, -100, -8 ), descText );
painter->drawText( option.rect.adjusted( 56, 26, -100, -8 ), descText );
QString trackCount = tr( "%1 tracks" ).arg( index.data( WelcomePlaylistModel::TrackCountRole ).toString() );
painter->drawText( option.rect.adjusted( option.rect.width() - 96, 12, 0, -2 - opt.rect.height() / 2 ), trackCount, to );