Gui: allow change ExpressionCompleter filter mode

Fixes #4428

Filter mode set to Qt::MatchContains for tree view search and link
property editor object search.

Other usage of the completer (e.g. property editor, speadsheet) defaults
to Qt::MatchContains, but can be changed using parameter,

    BaseApp/Preferences/Expression/CompleterMatchExact
This commit is contained in:
Zheng, Lei
2020-09-06 01:44:39 +00:00
committed by wwmayer
parent 82038bb1ff
commit 4f5a2e923c
4 changed files with 39 additions and 1 deletions

View File

@@ -76,6 +76,7 @@ DlgPropertyLink::DlgPropertyLink(QWidget* parent)
ui->typeTree->hide();
ui->searchBox->installEventFilter(this);
ui->searchBox->setNoProperty(true);
ui->searchBox->setMatchExact(false);
timer = new QTimer(this);
timer->setSingleShot(true);