QFusionStyle: Fix width of editable combo box
Add a scaling overlooked in 63d08003cf.
Task-number: QTBUG-68194
Change-Id: I97c771435e4316ec55aacc527335b62cb4dfd9ec
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
bb10
parent
fefe5cdf0c
commit
c4cbb3f315
|
|
@ -3513,7 +3513,7 @@ QRect QFusionStyle::subControlRect(ComplexControl control, const QStyleOptionCom
|
|||
int frameWidth = 2;
|
||||
rect = visualRect(option->direction, option->rect, rect);
|
||||
rect.setRect(option->rect.left() + frameWidth, option->rect.top() + frameWidth,
|
||||
option->rect.width() - 19 - 2 * frameWidth,
|
||||
option->rect.width() - int(QStyleHelper::dpiScaled(19)) - 2 * frameWidth,
|
||||
option->rect.height() - 2 * frameWidth);
|
||||
if (const QStyleOptionComboBox *box = qstyleoption_cast<const QStyleOptionComboBox *>(option)) {
|
||||
if (!box->editable) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue