Skip to content

Commit

Permalink
* Consistent color for duration in PlaylistItemDelegate.
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed May 21, 2012
1 parent 219d4e5 commit 965a9b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libtomahawk/playlist/PlaylistLargeItemDelegate.cpp
Expand Up @@ -239,6 +239,7 @@ PlaylistLargeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem&

if ( duration > 0 )
{
painter->setPen( opt.palette.text().color() );
painter->setFont( smallBoldFont );
text = painter->fontMetrics().elidedText( TomahawkUtils::timeToString( duration ), Qt::ElideRight, rightRect.width() );
painter->drawText( rightRect, text, m_centerRightOption );
Expand Down

0 comments on commit 965a9b6

Please sign in to comment.