From ba60b6ada3121389dcd4ee51aaa9067d681b187a Mon Sep 17 00:00:00 2001 From: Ismael Asensio Date: Fri, 3 Mar 2023 23:49:19 +0100 Subject: search: Prevent the search box from enlarging the view By default, the search filters widget calculates its `minimumSizeHint` as the sum of its components' minimum widths. This minimum width hint will scale up the widgets hierarchy, finally imposing a minimum width to the contents view, which in certain conditions can take the space from the side panels. Let's set a minimum width hint of 0, so it is the filters widget which always adapts to the available view size instead. BUG: 466796 FIXED-IN: 23.04 --- src/search/dolphinfacetswidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/search/dolphinfacetswidget.cpp') diff --git a/src/search/dolphinfacetswidget.cpp b/src/search/dolphinfacetswidget.cpp index ffc07442a..501f3a956 100644 --- a/src/search/dolphinfacetswidget.cpp +++ b/src/search/dolphinfacetswidget.cpp @@ -104,6 +104,11 @@ void DolphinFacetsWidget::changeEvent(QEvent *event) } } +QSize DolphinFacetsWidget::minimumSizeHint() const +{ + return QSize(0, m_typeSelector->minimumHeight()); +} + void DolphinFacetsWidget::resetSearchTerms() { m_typeSelector->setCurrentIndex(0); -- cgit v1.3