Commit 649cd6fb authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

ManhattanStyle: Fix wrong operator precedence

!option->state & State_Enabled is accidentially satisfied because
State_Enabled is 1, so the condition is true for any non-zero value of
option->state.

Change-Id: I965012ceecbad7296fae4eff7d429dcb8391aa2c
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 4f70388a
......@@ -745,7 +745,7 @@ void ManhattanStyle::drawControl(ControlElement element, const QStyleOption *opt
painter->setPen(QColor(0, 0, 0, 70));
painter->drawText(editRect.adjusted(1, 0, -1, 0), Qt::AlignLeft | Qt::AlignVCenter, text);
}
if (!option->state & State_Enabled)
if (!(option->state & State_Enabled))
painter->setOpacity(0.8);
painter->setPen(creatorTheme()->color(Theme::ComboBoxTextColor));
painter->drawText(editRect.adjusted(1, 0, -1, 0), Qt::AlignLeft | Qt::AlignVCenter, text);
......
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