summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Ehrlicher <[email protected]>2025-06-01 20:50:07 +0200
committerChristian Ehrlicher <[email protected]>2025-06-02 19:53:35 +0000
commitdb07a0387497cc56d4c3a82bbbc2150ec19d2e96 (patch)
treefdde18fdfb545d249af153afc159bf5e0bf1c753 /src
parent295b3ca5bde92cb6f371a04060fab9dd09f17e82 (diff)
StyleSheetStyle: Don't paint CE_ComboBoxLabel when no stylesheet is setHEADdev
Don't paint through stylesheet code when a combobox label has no stylesheet set at all. This should be done also for others but may break existing painting stuff so only fix this here as it's a regression from a77a7c157d5cdcc88bf0a02caed2aa5ff8850d06. Pick-to: 6.10 6.9 6.8 Task-number: QTBUG-131761 Fixes: QTBUG-137108 Change-Id: I462ba198821692aa60e6869df9c8e92332422c44 Reviewed-by: Axel Spoerl <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/widgets/styles/qstylesheetstyle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp
index bedf11b1b6f..530876a6e2b 100644
--- a/src/widgets/styles/qstylesheetstyle.cpp
+++ b/src/widgets/styles/qstylesheetstyle.cpp
@@ -4067,6 +4067,8 @@ void QStyleSheetStyle::drawControl(ControlElement ce, const QStyleOption *opt, Q
#if QT_CONFIG(combobox)
case CE_ComboBoxLabel:
+ if (!rule.hasDrawable())
+ break;
if (const QStyleOptionComboBox *cb = qstyleoption_cast<const QStyleOptionComboBox *>(opt)) {
QRect editRect = subControlRect(CC_ComboBox, cb, SC_ComboBoxEditField, w);
p->save();