mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
Fix the header gradient rect issue for headers other than BasicHeader.
This commit is contained in:
parent
cf36ca82ac
commit
3e577cc8ee
@ -297,7 +297,7 @@ InfoBar::paintEvent( QPaintEvent* event )
|
||||
gradient.setColorAt( 1.0, QColor( "#25292c" ) );
|
||||
|
||||
painter.setBrush( gradient );
|
||||
painter.fillRect( event->rect(), gradient );
|
||||
painter.fillRect( rect(), gradient );
|
||||
}
|
||||
|
||||
|
||||
|
@ -40,7 +40,7 @@ void
|
||||
HeaderWidget::paintEvent( QPaintEvent* e )
|
||||
{
|
||||
QStylePainter p( this );
|
||||
QRect r = e->rect();
|
||||
QRect r = rect();
|
||||
|
||||
StyleHelper::horizontalHeader( &p, r );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user