Commit 0de811bc authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa
Browse files

Fix color of dropdown arrow for focused toolbuttons with long-press menus.

parent 0e6c9215
......@@ -3425,9 +3425,12 @@ namespace Breeze
// cast option
const QStyleOptionToolButton* toolButtonOption( static_cast<const QStyleOptionToolButton*>( option ) );
const bool hasPopupMenu( toolButtonOption->subControls & SC_ToolButtonMenu );
const bool hasMenu(
( toolButtonOption->subControls & SC_ToolButtonMenu ) ||
( toolButtonOption->features&QStyleOptionToolButton::HasMenu
&& toolButtonOption->features&QStyleOptionToolButton::PopupDelay ) );
const bool sunken( state & (State_On | State_Sunken) );
if( flat && hasPopupMenu )
if( flat && hasMenu )
{
if( sunken && !mouseOver ) color = palette.color( QPalette::HighlightedText );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment