mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
* Consistent color for duration in PlaylistItemDelegate.
This commit is contained in:
@@ -239,6 +239,7 @@ PlaylistLargeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem&
|
|||||||
|
|
||||||
if ( duration > 0 )
|
if ( duration > 0 )
|
||||||
{
|
{
|
||||||
|
painter->setPen( opt.palette.text().color() );
|
||||||
painter->setFont( smallBoldFont );
|
painter->setFont( smallBoldFont );
|
||||||
text = painter->fontMetrics().elidedText( TomahawkUtils::timeToString( duration ), Qt::ElideRight, rightRect.width() );
|
text = painter->fontMetrics().elidedText( TomahawkUtils::timeToString( duration ), Qt::ElideRight, rightRect.width() );
|
||||||
painter->drawText( rightRect, text, m_centerRightOption );
|
painter->drawText( rightRect, text, m_centerRightOption );
|
||||||
|
Reference in New Issue
Block a user