qt: Only enlarge combo box dropdowns and not the combo box itself

This commit is contained in:
Cacodemon345
2022-02-10 13:22:12 +06:00
committed by GitHub
parent 5abf8d63d9
commit 42ecdd44e8

View File

@@ -49,7 +49,6 @@ void StyleOverride::polish(QWidget* widget)
} }
if (qobject_cast<QComboBox*>(widget)) { if (qobject_cast<QComboBox*>(widget)) {
widget->setMinimumWidth(widget->minimumSizeHint().width());
qobject_cast<QComboBox*>(widget)->view()->setMinimumWidth(widget->minimumSizeHint().width()); qobject_cast<QComboBox*>(widget)->view()->setMinimumWidth(widget->minimumSizeHint().width());
} }
} }