From 9a75453216fec710908fa1f3ddb47fb8db46c341 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Thu, 10 Feb 2022 01:37:41 +0600 Subject: [PATCH] qt: Combo boxes are no longer cramped --- src/qt/qt_styleoverride.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/qt/qt_styleoverride.cpp b/src/qt/qt_styleoverride.cpp index 06876adb2..86fa51d09 100644 --- a/src/qt/qt_styleoverride.cpp +++ b/src/qt/qt_styleoverride.cpp @@ -16,6 +16,9 @@ */ #include "qt_styleoverride.hpp" +#include +#include + int StyleOverride::styleHint( StyleHint hint, const QStyleOption *option, @@ -44,4 +47,9 @@ void StyleOverride::polish(QWidget* widget) } widget->setWindowFlag(Qt::WindowContextHelpButtonHint, false); } + + if (qobject_cast(widget)) { + widget->setMinimumWidth(widget->minimumSizeHint().width()); + qobject_cast(widget)->view()->setMinimumWidth(widget->minimumSizeHint().width()); + } }