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

Fixes: Don't hover disabled buttons

Manhattan would incorrectly hover a disabled toolbutton.
This fixes it.
parent f5686922
......@@ -518,7 +518,8 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption
painter->drawLine(rect.bottomLeft(), rect.bottomRight());
#ifndef Q_WS_MAC
else if (option->state & State_MouseOver) {
else if (option->state & State_Enabled &&
option->state & State_MouseOver) {
QColor lighter(255, 255, 255, 35);
painter->fillRect(rect, lighter);
painter->drawLine(rect.topRight(), rect.bottomRight());
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