@ -2726,15 +2726,9 @@ namespace Breeze
// get relevant state flags
// get relevant state flags
const State & state ( option - > state ) ;
const State & state ( option - > state ) ;
const bool autoRaise ( state & State_AutoRaise ) ;
const bool autoRaise ( state & State_AutoRaise ) ;
const bool hasPopupMenu ( toolButtonOption - > features & QStyleOptionToolButton : : MenuButtonPopup ) ;
const bool hasInlineIndicator (
toolButtonOption - > features & QStyleOptionToolButton : : HasMenu
& & toolButtonOption - > features & QStyleOptionToolButton : : PopupDelay
& & ! hasPopupMenu ) ;
const int marginWidth ( autoRaise ? Metrics : : ToolButton_MarginWidth : Metrics : : Button_MarginWidth + Metrics : : Frame_FrameWidth ) ;
const int marginWidth ( autoRaise ? Metrics : : ToolButton_MarginWidth : Metrics : : Button_MarginWidth + Metrics : : Frame_FrameWidth ) ;
if ( hasInlineIndicator ) size . rwidth ( ) + = Metrics : : ToolButton_InlineIndicatorWidth ;
size = expandSize ( size , marginWidth ) ;
size = expandSize ( size , marginWidth ) ;
return size ;
return size ;
@ -6099,7 +6093,7 @@ namespace Breeze
copy . rect = menuRect ;
copy . rect = menuRect ;
if ( sunken & & ! flat ) copy . rect . translate ( 1 , 1 ) ;
if ( sunken & & ! flat ) copy . rect . translate ( 1 , 1 ) ;
drawPrimitive ( PE_Indicator ArrowDown, & copy , painter , widget ) ;
drawIndicatorArrow Primitive ( ArrowDown_Small , & copy , painter , widget ) ;
}
}
@ -6127,7 +6121,6 @@ namespace Breeze
const int marginWidth ( flat ? Metrics : : ToolButton_MarginWidth : Metrics : : Button_MarginWidth + Metrics : : Frame_FrameWidth ) ;
const int marginWidth ( flat ? Metrics : : ToolButton_MarginWidth : Metrics : : Button_MarginWidth + Metrics : : Frame_FrameWidth ) ;
contentsRect = insideMargin ( contentsRect , marginWidth , 0 ) ;
contentsRect = insideMargin ( contentsRect , marginWidth , 0 ) ;
contentsRect . setRight ( contentsRect . right ( ) - Metrics : : ToolButton_InlineIndicatorWidth ) ;
contentsRect = visualRect ( option , contentsRect ) ;
contentsRect = visualRect ( option , contentsRect ) ;
}
}