mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Fix the header gradient rect issue for headers other than BasicHeader.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user