From b39029743e6656bd08b25c19c1360c8c5015041e Mon Sep 17 00:00:00 2001
From: Christian Muehlhaeuser <muesli@gmail.com>
Date: Wed, 20 Jul 2011 02:32:20 +0200
Subject: [PATCH] * Fixed painting tracks with foreign charsets in sidebar.

---
 src/sourcetree/sourcetreeview.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/sourcetree/sourcetreeview.cpp b/src/sourcetree/sourcetreeview.cpp
index e1f2b8fc0..fe5a9e66b 100644
--- a/src/sourcetree/sourcetreeview.cpp
+++ b/src/sourcetree/sourcetreeview.cpp
@@ -651,10 +651,11 @@ SourceDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, co
         if ( desc.isEmpty() )
             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 );
         text = painter->fontMetrics().elidedText( desc, Qt::ElideRight, textRect.width() );
-        painter->drawText( textRect, text );
+        QTextOption to( Qt::AlignBottom );
+        painter->drawText( textRect, text, to );
 
         if ( status )
         {