QCommonStyle: fix focus rect drawing, don't fill the background
Regression in the previous commit, 5ef5f2f1b9
Pick-to: 6.6
Change-Id: I03786264d064b7d0cf2b88a5d06aa63ffb19ae8b
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
bb10
parent
bc6c44d004
commit
ebed890b51
|
|
@ -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…
Reference in New Issue