1
0
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:
Teo Mrnjavac 2012-12-24 21:28:06 +01:00
parent cf36ca82ac
commit 3e577cc8ee
2 changed files with 2 additions and 2 deletions

View File

@ -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 );
}

View File

@ -40,7 +40,7 @@ void
HeaderWidget::paintEvent( QPaintEvent* e )
{
QStylePainter p( this );
QRect r = e->rect();
QRect r = rect();
StyleHelper::horizontalHeader( &p, r );
}