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
David Faure 2023-11-29 12:39:33 +01:00
parent bc6c44d004
commit ebed890b51
1 changed files with 1 additions and 2 deletions

View File

@ -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: {