QStyleSheetStyle: Use qss attributes for CE_ComboBoxLabel

CE_ComboBoxLabel did not apply any attributes if the render rule has no
box. Remove the check.

Fixes: QTBUG-131761
Pick-to: 6.8
Change-Id: I603ae6c459303f0d3a5bcc9572f12acca32bc575
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
Christian Ehrlicher 2024-12-04 20:03:45 +01:00
parent 16c5398aa1
commit a77a7c157d

View File

@ -4070,8 +4070,6 @@ void QStyleSheetStyle::drawControl(ControlElement ce, const QStyleOption *opt, Q
#if QT_CONFIG(combobox)
case CE_ComboBoxLabel:
if (!rule.hasBox())
break;
if (const QStyleOptionComboBox *cb = qstyleoption_cast<const QStyleOptionComboBox *>(opt)) {
QRect editRect = subControlRect(CC_ComboBox, cb, SC_ComboBoxEditField, w);
p->save();