mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 01:09:42 +01:00
* Remove code which seems to cause painting issues with some styles.
This commit is contained in:
parent
28de1cd8c7
commit
391f9951b7
@ -303,9 +303,6 @@ SourceDelegate::paintCategory( QPainter* painter, const QStyleOptionViewItem& op
|
||||
|
||||
QTextOption to( Qt::AlignVCenter );
|
||||
|
||||
painter->setPen( option.palette.color( QPalette::Base ) );
|
||||
painter->setBrush( option.palette.color( QPalette::Base ) );
|
||||
painter->drawRect( option.rect );
|
||||
painter->setRenderHint( QPainter::Antialiasing );
|
||||
|
||||
painter->setPen( Qt::white );
|
||||
@ -347,9 +344,6 @@ SourceDelegate::paintGroup( QPainter* painter, const QStyleOptionViewItem& optio
|
||||
|
||||
QTextOption to( Qt::AlignBottom );
|
||||
|
||||
painter->setPen( option.palette.color( QPalette::Base ) );
|
||||
painter->setBrush( option.palette.color( QPalette::Base ) );
|
||||
painter->drawRect( option.rect );
|
||||
painter->setRenderHint( QPainter::Antialiasing );
|
||||
|
||||
painter->setPen( Qt::white );
|
||||
@ -413,7 +407,6 @@ SourceDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, co
|
||||
else
|
||||
o3.state &= ~QStyle::State_Selected;
|
||||
|
||||
o.palette.setColor( QPalette::Base, QColor( 0, 0, 0, 0 ) );
|
||||
o.palette.setColor( QPalette::Text, o.palette.color( QPalette::HighlightedText ) );
|
||||
o3.palette.setColor( QPalette::Text, o.palette.color( QPalette::HighlightedText ) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user