mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
* Don't wordwrap track names in sidebar.
This commit is contained in:
@@ -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 );
|
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 )
|
if ( status )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user