Commit 17722a6c authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Fixes: Fix hover on toolbuttons

RevBy:    trust me
Details:
Now that hover is correctly implemented for
toolbuttons, we actually have to check the sunken
state.
parent 2ec448d1
...@@ -822,10 +822,12 @@ void ManhattanStyle::drawComplexControl(ComplexControl control, const QStyleOpti ...@@ -822,10 +822,12 @@ void ManhattanStyle::drawComplexControl(ComplexControl control, const QStyleOpti
} }
State mflags = bflags; State mflags = bflags;
if (toolbutton->activeSubControls & SC_ToolButton) if (toolbutton->state & State_Sunken) {
bflags |= State_Sunken; if (toolbutton->activeSubControls & SC_ToolButton)
if (toolbutton->activeSubControls & SC_ToolButtonMenu) bflags |= State_Sunken;
mflags |= State_Sunken; if (toolbutton->activeSubControls & SC_ToolButtonMenu)
mflags |= State_Sunken;
}
QStyleOption tool(0); QStyleOption tool(0);
tool.palette = toolbutton->palette; tool.palette = toolbutton->palette;
......
Supports Markdown
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