QStyleSheetStyle: Draw menu item also when font is set
Task-number: QTBUG-64055 Change-Id: I0674e7b43bb56aa1834c8df10794714dbcc4e5e3 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
This commit is contained in:
parent
9e1b6b6e53
commit
1adb1ef6ba
@ -3655,7 +3655,7 @@ void QStyleSheetStyle::drawControl(ControlElement ce, const QStyleOption *opt, Q
|
||||
if ((pseudo == PseudoElement_MenuSeparator) && subRule.hasDrawable()) {
|
||||
subRule.drawRule(p, opt->rect);
|
||||
} else if ((pseudo == PseudoElement_Item)
|
||||
&& (allRules.hasBox() || allRules.hasBorder()
|
||||
&& (allRules.hasBox() || allRules.hasBorder() || subRule.hasFont
|
||||
|| (allRules.background() && !allRules.background()->pixmap.isNull()))) {
|
||||
subRule.drawRule(p, opt->rect);
|
||||
if (subRule.hasBackground()) {
|
||||
|
Loading…
Reference in New Issue
Block a user