Commit a21a14cb authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa

fixed icon mode in some toolbutton corner cases (explicitly: sunken but not on and not mouse over)

parent ef471a0a
......@@ -4341,7 +4341,7 @@ namespace Breeze
const QIcon::State iconState( sunken ? QIcon::On : QIcon::Off );
QIcon::Mode iconMode;
if( !enabled ) iconMode = QIcon::Disabled;
else if( !flat && hasFocus ) iconMode = QIcon::Selected;
else if( (!flat && hasFocus) || (flat && (state & State_Sunken) && !mouseOver) ) iconMode = QIcon::Selected;
else if( mouseOver && flat ) iconMode = QIcon::Active;
else iconMode = QIcon::Normal;
......
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