diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index 8d42ef4b..8dd664ae 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -5337,7 +5337,19 @@ namespace Breeze const QColor outline( selected ? _helper->alphaColor( palette.color( QPalette::WindowText ), 0.25 ) : QColor() ); // render - _helper->renderTabBarTab( painter, rect, color, outline, corners ); + if( selected ) + { + + QRegion oldRegion( painter->clipRegion() ); + painter->setClipRect( option->rect, Qt::IntersectClip ); + _helper->renderTabBarTab( painter, rect, color, outline, corners ); + painter->setClipRegion( oldRegion ); + + } else { + + _helper->renderTabBarTab( painter, rect, color, outline, corners ); + + } return true;