1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 17:29:42 +01:00

* Consistent color for duration in PlaylistItemDelegate.

This commit is contained in:
Christian Muehlhaeuser 2012-05-21 04:41:22 +02:00
parent 219d4e5f19
commit 965a9b6153

View File

@ -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 );