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

Fixes: Fix hover on toolbuttons

RevBy:    trust me
Now that hover is correctly implemented for
toolbuttons, we actually have to check the sunken
parent 2ec448d1
......@@ -822,10 +822,12 @@ void ManhattanStyle::drawComplexControl(ComplexControl control, const QStyleOpti
State mflags = bflags;
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;
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