Gui: several fixes for expression search box:

+ rename method setMatchExact() to setExactMatch()
+ move handling of user-defined parameters to class ExpressionParameter
+ Qt::MatchExactly is not supported by QCompleter, use Qt::MatchStartsWith instead
+ add possibility to change match behaviour via context-menu
This commit is contained in:
wmayer
2020-09-13 18:34:16 +02:00
parent d6748a030f
commit 2c744264d6
4 changed files with 105 additions and 22 deletions

View File

@@ -2838,7 +2838,7 @@ TreePanel::TreePanel(const char *name, QWidget* parent)
this, SLOT(showEditor()));
this->searchBox = new Gui::ExpressionLineEdit(this,true);
static_cast<ExpressionLineEdit*>(this->searchBox)->setMatchExact(false);
static_cast<ExpressionLineEdit*>(this->searchBox)->setExactMatch(Gui::ExpressionParameter::instance()->isExactMatch());
pLayout->addWidget(this->searchBox);
this->searchBox->hide();
this->searchBox->installEventFilter(this);