mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Fixed painting tracks with foreign charsets in sidebar.
This commit is contained in:
@@ -651,10 +651,11 @@ SourceDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, co
|
|||||||
if ( desc.isEmpty() )
|
if ( desc.isEmpty() )
|
||||||
desc = tr( "Online" );
|
desc = tr( "Online" );
|
||||||
|
|
||||||
textRect = option.rect.adjusted( iconRect.width() + 8, painter->fontMetrics().height() + 10, -figWidth - 24, 0 );
|
textRect = option.rect.adjusted( iconRect.width() + 8, painter->fontMetrics().height() + 6, -figWidth - 24, -4 );
|
||||||
painter->setFont( normal );
|
painter->setFont( normal );
|
||||||
text = painter->fontMetrics().elidedText( desc, Qt::ElideRight, textRect.width() );
|
text = painter->fontMetrics().elidedText( desc, Qt::ElideRight, textRect.width() );
|
||||||
painter->drawText( textRect, text );
|
QTextOption to( Qt::AlignBottom );
|
||||||
|
painter->drawText( textRect, text, to );
|
||||||
|
|
||||||
if ( status )
|
if ( status )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user