1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-02-25 20:33:20 +01:00

* Changed display order from 'Artist - Track' to 'Track - Artist' to be more consistent.

This commit is contained in:
Christian Muehlhaeuser 2013-10-06 07:09:38 +02:00
parent 327a9136fb
commit 97e202a24e
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ AlbumItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
QString rawText = track->track();
if ( m_showArtist )
{
rawText = QString( "%1 - %2" ).arg( track->artist() ).arg( rawText );
rawText = QString( "%1 - %2" ).arg( rawText ).arg( track->artist() );
}
const QString text = painter->fontMetrics().elidedText( rawText, Qt::ElideRight, leftRect.width() );
painter->setPen( opt.palette.text().color() );

View File

@ -173,7 +173,7 @@ PlaylistItemDelegate::paintShort( QPainter* painter, const QStyleOptionViewItem&
}
else
{
upperText = QString( "%1 - %2" ).arg( track->artist() ).arg( track->track() );
upperText = QString( "%1 - %2" ).arg( track->track() ).arg( track->artist() );
QString playtime = TomahawkUtils::ageToString( QDateTime::fromTime_t( item->playbackLog().timestamp ), true );
if ( item->playbackLog().source->isLocal() )