Windows style: Fix wrong color of non-editable combo box
Use QPalette::Button instead of Base as does QFusionStyle so that style sheets specifying colors for the non-editable case work correctly. Fixes: QTBUG-81573 Change-Id: I84cecb38a48a1450c82498558aa350f3e60a5df6 Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
parent
2130d282b1
commit
d7a5d6a98d
@ -2119,7 +2119,7 @@ void QWindowsStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComp
|
||||
#if QT_CONFIG(combobox)
|
||||
case CC_ComboBox:
|
||||
if (const QStyleOptionComboBox *cmb = qstyleoption_cast<const QStyleOptionComboBox *>(opt)) {
|
||||
QBrush editBrush = cmb->palette.brush(QPalette::Base);
|
||||
QBrush editBrush = cmb->palette.brush(QPalette::Button);
|
||||
if ((cmb->subControls & SC_ComboBoxFrame)) {
|
||||
if (cmb->frame) {
|
||||
QPalette shadePal = opt->palette;
|
||||
|
Loading…
Reference in New Issue
Block a user