1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

* Don't wordwrap track names in sidebar.

This commit is contained in:
Christian Muehlhaeuser 2012-02-23 21:06:17 +01:00
parent b17b8356ad
commit c2a79d4cbf

View File

@ -242,9 +242,11 @@ SourceDelegate::paintCollection( QPainter* painter, const QStyleOptionViewItem&
}
}
text = painter->fontMetrics().elidedText( desc, Qt::ElideRight, textRect.width() );
textRect.adjust( 0, 0, 0, 2 );
text = painter->fontMetrics().elidedText( desc, Qt::ElideRight, textRect.width() - 4 );
QTextOption to( Qt::AlignVCenter );
painter->drawText( textRect.adjusted( 0, 0, 0, 2 ), text, to );
to.setWrapMode( QTextOption::NoWrap );
painter->drawText( textRect, text, to );
if ( status )
{