QFusionStyle: Use the generated pixmap key for the ComboBox
Amends e70cc743bc89afa7f36cd6afa520af2dab763c3a by fixing a copy/paste from CC_SpinBox handling. Task-number: QTBUG-129680 Change-Id: Ib122feedeed7cb502d4d1f789e3c83573cacb402 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
2fc5735f60
commit
b7a47d3306
@ -2506,7 +2506,7 @@ void QFusionStyle::drawComplexControl(ComplexControl control, const QStyleOption
|
||||
% QLatin1StringView(comboBox->editable ? "-editable" : "")
|
||||
% QLatin1StringView(isEnabled ? "-enabled" : "")
|
||||
% QLatin1StringView(!comboBox->frame ? "-frameless" : "");
|
||||
QCachedPainter cp(painter, "spinbox"_L1, option);
|
||||
QCachedPainter cp(painter, pixmapName, option);
|
||||
if (cp.needsPainting()) {
|
||||
const QRect pixmapRect = cp.pixmapRect();
|
||||
QStyleOptionComboBox comboBoxCopy = *comboBox;
|
||||
|
Loading…
x
Reference in New Issue
Block a user