diff options
author | Tianlu Shao <shaotianlu@uniontech.com> | 2021-08-09 20:38:04 +0800 |
---|---|---|
committer | Tianlu Shao <shaotianlu@uniontech.com> | 2021-08-10 20:21:59 +0800 |
commit | 0ef190fcc429405200d9f6063851726fcfb75637 (patch) | |
tree | 4d3a07efb6262a3b3efa903bdcbeccd315f6cd99 /src/widgets/doc | |
parent | e946e6895a8517a887ac246905e0769edd766fcc (diff) |
QCompleter: QCompleter unexpectedly changes QLineEdit text
When qcompleter and qlineedit are used together, the currentcompletion()
of qcompleter is its first item by default. Therefore, when qlineedit
makes the initial value, then selects the text and enters, qcompleter
will modify the default first item to qlineedit text. The judgment that
completionprefix() of the completer is not empty is modified and added
here, because completionprefix() is always empty when there is no match.
Fixes: QTBUG-20894
Pick-to: 6.2 6.1 5.15
Change-Id: Id47f7f4da0a93d03a4e7b056ec731615b0803d13
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Reviewed-by: Tianlu Shao <shaotianlu@uniontech.com>
Diffstat (limited to 'src/widgets/doc')
0 files changed, 0 insertions, 0 deletions