diff options
author | Oto Magaldadze <omagaldadze@gmail.com> | 2012-12-31 14:11:25 +0400 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-20 23:45:06 +0200 |
commit | 6b95130faa31307579cb3711cab2101d07d20823 (patch) | |
tree | e67c0d181eaf5ea8545417039c049e088b9ba0f6 /src/widgets/util/qcompleter_p.h | |
parent | ef5455429f30ec9c8236e5240ed8f96af6ca9271 (diff) |
QCompleter::setFilterMode() add property filterMode.
QCompleter::setFilterMode(Qt::MatchContains) will enable filtering
out entries that contain typed characters in any place, instead of the
default behavior when only those entries that start with typed characters
are displayed. Qt::MatchEndsWith is also possible.
QCompleter::setFilterMode(Qt::MatchStartsWith) will bring the default
behavior back.
Task-number: QTBUG-3414
Change-Id: I3845704c59eb8fc401e9a650c54a9c934ed28c2e
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/widgets/util/qcompleter_p.h')
-rw-r--r-- | src/widgets/util/qcompleter_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/util/qcompleter_p.h b/src/widgets/util/qcompleter_p.h index 26d539a57b..1f890e0114 100644 --- a/src/widgets/util/qcompleter_p.h +++ b/src/widgets/util/qcompleter_p.h @@ -82,6 +82,7 @@ public: QCompletionModel *proxy; QAbstractItemView *popup; QCompleter::CompletionMode mode; + Qt::MatchFlags filterMode; QString prefix; Qt::CaseSensitivity cs; |