mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 07:36:48 +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" ) );
|
gradient.setColorAt( 1.0, QColor( "#25292c" ) );
|
||||||
|
|
||||||
painter.setBrush( gradient );
|
painter.setBrush( gradient );
|
||||||
painter.fillRect( event->rect(), gradient );
|
painter.fillRect( rect(), gradient );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -40,7 +40,7 @@ void
|
|||||||
HeaderWidget::paintEvent( QPaintEvent* e )
|
HeaderWidget::paintEvent( QPaintEvent* e )
|
||||||
{
|
{
|
||||||
QStylePainter p( this );
|
QStylePainter p( this );
|
||||||
QRect r = e->rect();
|
QRect r = rect();
|
||||||
|
|
||||||
StyleHelper::horizontalHeader( &p, r );
|
StyleHelper::horizontalHeader( &p, r );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user