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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user