diff options
author | Dong Rui <dongrui@uniontech.com> | 2020-08-26 13:07:39 +0800 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2021-02-22 07:18:43 +0000 |
commit | c5904cb96aed3b171c543a2cf0bed8f8ac5f95c4 (patch) | |
tree | 2999ffd11ad634787e5482483a0084cb726fbb8b /src | |
parent | d012e953bfb498091c0ea9a83a717a3deffc670f (diff) |
QLineEdit: Fix editingFinished() not being emitted when pressing the clear button
When pressing the clear button, the editingFinished() signal was not
received when focussing out.
Call _q_textEdited(QString()) when pressing the clear button.
Pick-to: 5.15 6.0
Fixes: QTBUG-83295
Change-Id: Ie4bc6d9a2f27f89163c05c4c15175540c7631a30
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/widgets/widgets/qlineedit_p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/widgets/qlineedit_p.cpp b/src/widgets/widgets/qlineedit_p.cpp index 1839941036..4143b848b5 100644 --- a/src/widgets/widgets/qlineedit_p.cpp +++ b/src/widgets/widgets/qlineedit_p.cpp @@ -479,7 +479,7 @@ void QLineEditPrivate::_q_clearButtonClicked() Q_Q(QLineEdit); if (!q->text().isEmpty()) { q->clear(); - emit q->textEdited(QString()); + _q_textEdited(QString()); } } |