From a77a7c157d5cdcc88bf0a02caed2aa5ff8850d06 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 Pick-to: 6.8 Change-Id: I603ae6c459303f0d3a5bcc9572f12acca32bc575 Reviewed-by: Friedemann Kleint Reviewed-by: Axel Spoerl --- 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 4a7f47c9335..6528615c694 100644 --- a/src/widgets/styles/qstylesheetstyle.cpp +++ b/src/widgets/styles/qstylesheetstyle.cpp @@ -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(opt)) { QRect editRect = subControlRect(CC_ComboBox, cb, SC_ComboBoxEditField, w); p->save();