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:
parent
be31baf7a8
commit
1b9d4469f1
@ -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 ) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user