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 Change-Id: I603ae6c459303f0d3a5bcc9572f12acca32bc575 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit a77a7c157d5cdcc88bf0a02caed2aa5ff8850d06) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
4f2c976b7e
commit
bea1e9f737
@ -4050,8 +4050,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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user