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:
parent
b17b8356ad
commit
c2a79d4cbf
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user