mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-22 13:43:11 +02:00
Pretty up Recently Played widget on dashboard a bit by making played time/playee gray text
This commit is contained in:
@@ -225,6 +225,7 @@ PlaylistItemDelegate::paintShort( QPainter* painter, const QStyleOptionViewItem&
|
|||||||
painter->drawText( r.adjusted( 0, 1, 0, 0 ), text, m_topOption );
|
painter->drawText( r.adjusted( 0, 1, 0, 0 ), text, m_topOption );
|
||||||
|
|
||||||
painter->setFont( opt.font );
|
painter->setFont( opt.font );
|
||||||
|
painter->setPen( Qt::gray );
|
||||||
text = painter->fontMetrics().elidedText( lowerText, Qt::ElideRight, r.width() );
|
text = painter->fontMetrics().elidedText( lowerText, Qt::ElideRight, r.width() );
|
||||||
painter->drawText( r.adjusted( 0, 1, 0, 0 ), text, m_bottomOption );
|
painter->drawText( r.adjusted( 0, 1, 0, 0 ), text, m_bottomOption );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user