From ac6e765800cf6e78a2cae8692f6c49b75df49bda Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Tue, 3 Mar 2015 16:37:55 +0100 Subject: [PATCH 3/4] return parent style method when option passed to tabBar rect is invalid, instead of full option rect removed check on invalid tabbar size BUG: 344779 --- kstyle/breezestyle.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index 6caa00b7259b44ac38f8db206df1317d2edafbc9..e91b5da2a1622e8816a77e5cc509f9f4dd236bb2 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -1548,11 +1548,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 ); -- 2.3.0