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.
This commit is contained in:
Mark Liversedge
2021-07-28 21:46:49 +01:00
parent 0f432a7824
commit 173b1a754e

View File

@@ -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);