1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-18 23:09:42 +01:00

* Source/style cleanup.

This commit is contained in:
Christian Muehlhaeuser 2011-12-05 21:10:32 +01:00
parent 6f4a26220d
commit 330efc5833

View File

@ -68,7 +68,7 @@ void SettingsListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
QRect textRect = option.rect.adjusted( 6, iconRect.height() + 8, -6, 0 );
QString text = painter->fontMetrics().elidedText( index.data( Qt::DisplayRole ).toString(), Qt::ElideRight, textRect.width() );
QTextOption to( Qt::AlignHCenter );
painter->drawText( textRect, text, to);
painter->drawText( textRect, text, to );
painter->restore();
}