diff options
author | Zhang Hao <zhanghao@uniontech.com> | 2021-05-27 20:23:13 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-06-08 00:51:12 +0000 |
commit | b3f84f0a734b2c5065aa721a2982134289525f8f (patch) | |
tree | 9c114c6e7f7a2be7e956606870bd1271cfe8e314 /src | |
parent | 02a5580292ed503b1a830b1831b3f0274b600cef (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
Change-Id: I88eed2ec7a28823598dc46f1df26fd305eb99c1f
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 8ee2186830d33cf2e0ebc7c9ab59166a27fe81a5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/widgets/widgets/qlineedit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/widgets/qlineedit.cpp b/src/widgets/widgets/qlineedit.cpp index 8c70b8b026..29053c4ade 100644 --- a/src/widgets/widgets/qlineedit.cpp +++ b/src/widgets/widgets/qlineedit.cpp @@ -166,7 +166,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 |