mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Use bold font for painting artist items in the 'still so-wrongly-called' AlbumItemDelegate.
This commit is contained in:
@@ -149,6 +149,7 @@ AlbumItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
|
|||||||
|
|
||||||
if ( oneLiner )
|
if ( oneLiner )
|
||||||
{
|
{
|
||||||
|
painter->setFont( boldFont );
|
||||||
to.setAlignment( Qt::AlignHCenter | Qt::AlignVCenter );
|
to.setAlignment( Qt::AlignHCenter | Qt::AlignVCenter );
|
||||||
text = painter->fontMetrics().elidedText( name, Qt::ElideRight, textRect.width() - 3 );
|
text = painter->fontMetrics().elidedText( name, Qt::ElideRight, textRect.width() - 3 );
|
||||||
painter->drawText( textRect, text, to );
|
painter->drawText( textRect, text, to );
|
||||||
|
Reference in New Issue
Block a user