From f435f716b81e7bcbb1b1ac52fc93ab9d1f39bd8b Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Fri, 23 Sep 2011 15:46:29 +0200 Subject: [PATCH] do not paint buttons (from parent) if hidden. --- clients/oxygen/oxygenclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index e956eeeb17..f05c3e8ebf 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -1414,7 +1414,7 @@ namespace Oxygen QList buttons( widget()->findChildren() ); foreach( Button* button, buttons ) { - if( event->rect().intersects( button->geometry() ) ) + if( button->isVisible() && event->rect().intersects( button->geometry() ) ) { painter.save(); painter.setViewport( button->geometry() );