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