mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 23:57:34 +02:00
* Source/style cleanup.
This commit is contained in:
@@ -68,7 +68,7 @@ void SettingsListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
|
|||||||
QRect textRect = option.rect.adjusted( 6, iconRect.height() + 8, -6, 0 );
|
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() );
|
QString text = painter->fontMetrics().elidedText( index.data( Qt::DisplayRole ).toString(), Qt::ElideRight, textRect.width() );
|
||||||
QTextOption to( Qt::AlignHCenter );
|
QTextOption to( Qt::AlignHCenter );
|
||||||
painter->drawText( textRect, text, to);
|
painter->drawText( textRect, text, to );
|
||||||
|
|
||||||
painter->restore();
|
painter->restore();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user