qwindowsstyle: Remove duplicate flag in mask
Adding State_Sunken once should be enough for everyone. Task-number: QTBUG-20482 Change-Id: Ic5c1bf47283d9c344eda41c766749d4106a8da67 Reviewed-on: http://codereview.qt-project.org/6051 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
This commit is contained in:
parent
569d7a4d2e
commit
db6db2f9d4
@ -1357,7 +1357,7 @@ void QWindowsStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt,
|
|||||||
p->setPen(pal.dark().color());
|
p->setPen(pal.dark().color());
|
||||||
p->setBrush(fill);
|
p->setBrush(fill);
|
||||||
p->drawRect(r.adjusted(0, 0, -1, -1));
|
p->drawRect(r.adjusted(0, 0, -1, -1));
|
||||||
} else if (flags & (State_Raised | State_Sunken | State_On | State_Sunken)) {
|
} else if (flags & (State_Raised | State_On | State_Sunken)) {
|
||||||
qDrawWinButton(p, r, pal, flags & (State_Sunken | State_On),
|
qDrawWinButton(p, r, pal, flags & (State_Sunken | State_On),
|
||||||
&fill);
|
&fill);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user