From 21c83cb47f54ce65ac63f5e2901066f68b0dac70 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Tue, 2 Sep 2014 03:06:39 +0200 Subject: [PATCH] * Less margin on sidebar sources. --- src/tomahawk/sourcetree/SourceDelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tomahawk/sourcetree/SourceDelegate.cpp b/src/tomahawk/sourcetree/SourceDelegate.cpp index a10376a6d..6e3c185c2 100644 --- a/src/tomahawk/sourcetree/SourceDelegate.cpp +++ b/src/tomahawk/sourcetree/SourceDelegate.cpp @@ -250,7 +250,7 @@ SourceDelegate::paintSource( QPainter* painter, const QStyleOptionViewItem& opti painter->setOpacity( 1.0 ); painter->drawPixmap( iconRect, avatar ); - QRect textRect = option.rect.adjusted( iconRect.width() + m_margin, m_margin / 4, -figWidth - ( figWidth ? m_margin : 0 ), 0 ); + QRect textRect = option.rect.adjusted( iconRect.width() + m_margin, m_margin / 6 + m_margin / 32, -figWidth - ( figWidth ? m_margin : 0 ), 0 ); QString text = painter->fontMetrics().elidedText( name, Qt::ElideRight, textRect.width() ); { QTextOption to;