Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -822,10 +822,12 @@ void ManhattanStyle::drawComplexControl(ComplexControl control, const QStyleOpti
}
State mflags = bflags;
if (toolbutton->activeSubControls & SC_ToolButton)
bflags |= State_Sunken;
if (toolbutton->activeSubControls & SC_ToolButtonMenu)
mflags |= State_Sunken;
if (toolbutton->state & State_Sunken) {
if (toolbutton->activeSubControls & SC_ToolButton)
bflags |= State_Sunken;
if (toolbutton->activeSubControls & SC_ToolButtonMenu)
mflags |= State_Sunken;
}
QStyleOption tool(0);
tool.palette = toolbutton->palette;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment