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:
parent
4ec5871f25
commit
b6aca9ee1c
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user