From bea1e9f73754266cf688254d354d4c246dd18c63 Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Wed, 4 Dec 2024 20:03:45 +0100 Subject: [PATCH] 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 Reviewed-by: Axel Spoerl (cherry picked from commit a77a7c157d5cdcc88bf0a02caed2aa5ff8850d06) Reviewed-by: Qt Cherry-pick Bot --- src/widgets/styles/qstylesheetstyle.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp index 56e380b2c66..8f980394c52 100644 --- a/src/widgets/styles/qstylesheetstyle.cpp +++ b/src/widgets/styles/qstylesheetstyle.cpp @@ -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(opt)) { QRect editRect = subControlRect(CC_ComboBox, cb, SC_ComboBoxEditField, w); p->save();