diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index 3513243c..3ea547bb 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -1547,11 +1547,10 @@ namespace Breeze // cast option and check const QStyleOptionTabWidgetFrame* tabOption = qstyleoption_cast( option ); - if( !tabOption ) return option->rect; + if( !tabOption ) return ParentStyleClass::subElementRect( SE_TabWidgetTabBar, option, widget ); // do nothing if tabbar is hidden const QSize tabBarSize( tabOption->tabBarSize ); - if( tabBarSize.isEmpty() ) return option->rect; QRect rect( option->rect ); QRect tabBarRect( QPoint(0, 0), tabBarSize );