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
wilder-pre-rebase
Hugo Pereira Da Costa 11 years ago
parent e5830632fc
commit ba0097bb4e
  1. 3
      kstyle/breezestyle.cpp

@ -1547,11 +1547,10 @@ namespace Breeze
// cast option and check
const QStyleOptionTabWidgetFrame* tabOption = qstyleoption_cast<const QStyleOptionTabWidgetFrame*>( 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 );

Loading…
Cancel
Save