┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinfacetswidget.h
diff options
context:
space:
mode:
authorIsmael Asensio <[email protected]>2023-03-03 23:49:19 +0100
committerIsmael Asensio <[email protected]>2023-03-04 10:30:41 +0000
commitba60b6ada3121389dcd4ee51aaa9067d681b187a (patch)
treee3fa5d3652f1284cdaff755d510702145d15df29 /src/search/dolphinfacetswidget.h
parentf8a6aba49099223a436880bd7c70a07e2f376144 (diff)
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
Diffstat (limited to 'src/search/dolphinfacetswidget.h')
-rw-r--r--src/search/dolphinfacetswidget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/search/dolphinfacetswidget.h b/src/search/dolphinfacetswidget.h
index 1d266ac97..c7358e212 100644
--- a/src/search/dolphinfacetswidget.h
+++ b/src/search/dolphinfacetswidget.h
@@ -48,6 +48,8 @@ public:
void setFacetType(const QString &type);
+ QSize minimumSizeHint() const override;
+
Q_SIGNALS:
void facetChanged();