1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-02-22 19:05:05 +01:00

Accounts delegate fixes: padding and status text font.

This commit is contained in:
Teo Mrnjavac 2013-04-05 23:24:07 +02:00
parent 5530d58997
commit ae2ef735ed

View File

@ -242,7 +242,8 @@ AccountDelegate::paint ( QPainter* painter, const QStyleOptionViewItem& option,
{
Q_ASSERT( accts.size() == 1 );
rightEdge = drawStatus( painter, QPointF( rightEdge, center - painter->fontMetrics().height()/2 ), accts.first(), true );
painter->setFont( installFont );
rightEdge = drawStatus( painter, QPointF( rightEdge - PADDING, center - painter->fontMetrics().height()/2 ), accts.first(), true );
}
}
else if ( canDelete )