mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 21:27:58 +02:00
* Uppercase most of the sidebar.
This commit is contained in:
@@ -143,7 +143,7 @@ SourceDelegate::paintStandardItem( QPainter* painter, const QStyleOptionViewItem
|
|||||||
painter->drawPixmap( iconRect, opt.icon.pixmap( iconRect.size(), iconMode ) );
|
painter->drawPixmap( iconRect, opt.icon.pixmap( iconRect.size(), iconMode ) );
|
||||||
|
|
||||||
QRect textRect = opt.rect.adjusted( iconRect.width() + 22, 0, -32, 0 );
|
QRect textRect = opt.rect.adjusted( iconRect.width() + 22, 0, -32, 0 );
|
||||||
QString text = painter->fontMetrics().elidedText( opt.text, Qt::ElideRight, textRect.width() );
|
QString text = painter->fontMetrics().elidedText( opt.text.toUpper(), Qt::ElideRight, textRect.width() );
|
||||||
{
|
{
|
||||||
QTextOption to( Qt::AlignVCenter );
|
QTextOption to( Qt::AlignVCenter );
|
||||||
to.setWrapMode( QTextOption::NoWrap );
|
to.setWrapMode( QTextOption::NoWrap );
|
||||||
|
Reference in New Issue
Block a user