1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

* Use bold font for painting artist items in the 'still so-wrongly-called' AlbumItemDelegate.

This commit is contained in:
Christian Muehlhaeuser 2011-12-05 08:34:55 +01:00
parent 41c79b931f
commit 7e6b543a70

@ -149,6 +149,7 @@ AlbumItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
if ( oneLiner )
{
painter->setFont( boldFont );
to.setAlignment( Qt::AlignHCenter | Qt::AlignVCenter );
text = painter->fontMetrics().elidedText( name, Qt::ElideRight, textRect.width() - 3 );
painter->drawText( textRect, text, to );