summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZhang Hao <zhanghao@uniontech.com>2021-05-27 20:23:13 +0800
committerZhang Hao <zhanghao@uniontech.com>2021-06-07 11:51:45 +0000
commit8ee2186830d33cf2e0ebc7c9ab59166a27fe81a5 (patch)
treee63ec4c758de1348926f27cdc46057190ac59877 /src
parentf6fb118c943ca4e54509b3c4c8aaafcdbb88f031 (diff)
Clarify the QLineEdit document of editingFinished signal
QLineEdit gets focus and don't type any character when QLineEdit lost focus, document say QLineEdit will issue editingFinished signal. In fact,QLineEdit doesn't issue editingFinished signal. Fix this by clarify the document. Fixes: QTBUG-94057 Pick-to: 6.1 Change-Id: I88eed2ec7a28823598dc46f1df26fd305eb99c1f Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/widgets/widgets/qlineedit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/widgets/qlineedit.cpp b/src/widgets/widgets/qlineedit.cpp
index 814d194817..ad144e5c75 100644
--- a/src/widgets/widgets/qlineedit.cpp
+++ b/src/widgets/widgets/qlineedit.cpp
@@ -167,7 +167,8 @@ void QLineEdit::initStyleOption(QStyleOptionFrame *option) const
When editing is finished, either because the line edit lost focus
or Return/Enter is pressed the editingFinished() signal is
- emitted.
+ emitted. Note that if focus is lost without any changes done,
+ the editingFinished() signal won't be emitted.
Note that if there is a validator set on the line edit, the
returnPressed()/editingFinished() signals will only be emitted if