removed unneeded check.
This commit is contained in:
parent
dd026bdd9f
commit
0a7195fe22
1 changed files with 8 additions and 11 deletions
|
@ -1436,19 +1436,16 @@ namespace Oxygen
|
||||||
paint( painter );
|
paint( painter );
|
||||||
|
|
||||||
// update buttons
|
// update buttons
|
||||||
if( compositingActive() )
|
QList<Button*> buttons( widget()->findChildren<Button*>() );
|
||||||
|
foreach( Button* button, buttons )
|
||||||
{
|
{
|
||||||
QList<Button*> buttons( widget()->findChildren<Button*>() );
|
if( button->isVisible() && event->rect().intersects( button->geometry() ) )
|
||||||
foreach( Button* button, buttons )
|
|
||||||
{
|
{
|
||||||
if( button->isVisible() && event->rect().intersects( button->geometry() ) )
|
painter.save();
|
||||||
{
|
painter.setViewport( button->geometry() );
|
||||||
painter.save();
|
painter.setWindow( button->rect() );
|
||||||
painter.setViewport( button->geometry() );
|
button->paint( painter );
|
||||||
painter.setWindow( button->rect() );
|
painter.restore();
|
||||||
button->paint( painter );
|
|
||||||
painter.restore();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue