QCommonStyle: fix focus rect drawing, don't fill the background
Regression in the previous commit, 5ef5f2f1b9 Change-Id: I03786264d064b7d0cf2b88a5d06aa63ffb19ae8b Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> (cherry picked from commit ebed890b51e920533087ecaffc7219890a708738) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1bd40b3e94
commit
f981cdc31d
@ -201,8 +201,7 @@ void QCommonStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, Q
|
||||
color = opt->palette.windowText().color();
|
||||
}
|
||||
const QRect focusRect = opt->rect.adjusted(1, 1, -1, -1);
|
||||
const QBrush fill(bg);
|
||||
qDrawPlainRect(p, focusRect, color, 1, bg.isValid() ? &fill : nullptr);
|
||||
qDrawPlainRect(p, focusRect, color, 1);
|
||||
}
|
||||
break;
|
||||
case PE_IndicatorMenuCheckMark: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user