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>
This commit is contained in:
Zhang Hao 2021-05-27 20:23:13 +08:00
parent f6fb118c94
commit 8ee2186830

View File

@ -167,7 +167,8 @@ void QLineEdit::initStyleOption(QStyleOptionFrame *option) const
When editing is finished, either because the line edit lost focus When editing is finished, either because the line edit lost focus
or Return/Enter is pressed the editingFinished() signal is 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 Note that if there is a validator set on the line edit, the
returnPressed()/editingFinished() signals will only be emitted if returnPressed()/editingFinished() signals will only be emitted if