From 173b1a754ea92ad912bbdd542b40dcd52e21c00b Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Wed, 28 Jul 2021 21:46:49 +0100 Subject: [PATCH] Stop Filter box expanding in config dialogs .. we have a filter box on most trends charts config dialogs and elsewhere. But when you resized the dialog the filter box would also stretch (even though it is a QLineEdit). .. this commit sets the vertical size policy to fixed to stop this ugly behaviour. --- src/Gui/SearchFilterBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/SearchFilterBox.cpp b/src/Gui/SearchFilterBox.cpp index 207d6da6e..7fa5866bb 100644 --- a/src/Gui/SearchFilterBox.cpp +++ b/src/Gui/SearchFilterBox.cpp @@ -35,7 +35,7 @@ SearchFilterBox::SearchFilterBox(QWidget *parent, Context *context, bool nochoos // no column chooser if my parent widget is a modal widget searchbox = new SearchBox(context, this, nochooser); - searchbox->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding)); + searchbox->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed)); contents->addWidget(searchbox); freeSearch = new FreeSearch(this, context);