1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 04:51:53 +02:00

* No need to save / restore painter state.

This commit is contained in:
Christian Muehlhaeuser 2011-01-23 05:01:22 +01:00
parent 4ec5871f25
commit b6aca9ee1c

View File

@ -61,7 +61,6 @@ OverlayWidget::paintEvent( QPaintEvent* event )
QPainter p( this );
QRect r = contentsRect();
p.save();
p.setBackgroundMode( Qt::TransparentMode );
p.setRenderHint( QPainter::Antialiasing );
@ -81,6 +80,4 @@ OverlayWidget::paintEvent( QPaintEvent* event )
p.setFont( f );
p.setPen( palette().light().color() );
p.drawText( r.adjusted( 16, 16, -16, -16 ), text(), to );
p.restore();
}