1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 15:29:42 +01:00

* No need to set black font twice.

This commit is contained in:
Christian Muehlhaeuser 2014-08-21 18:38:43 +02:00
parent be31baf7a8
commit 1b9d4469f1

View File

@ -154,7 +154,6 @@ SourceDelegate::paintStandardItem( QPainter* painter, const QStyleOptionViewItem
f.setBold( true );
// f.setPointSize( 10 );
painter->setFont( f );
painter->setPen( Qt::black );
}
QRect textRect = opt.rect.adjusted( iconRect.width() + 22, 0, -32, 0 );
@ -163,7 +162,7 @@ SourceDelegate::paintStandardItem( QPainter* painter, const QStyleOptionViewItem
QTextOption to( Qt::AlignVCenter );
to.setWrapMode( QTextOption::NoWrap );
if ( !enabled )
if ( !enabled && !selected )
{
painter->setPen( opt.palette.color( QPalette::Disabled, QPalette::Text ) );
}