diff options
Diffstat (limited to 'src/quick/items/qquicktextinput.cpp')
-rw-r--r-- | src/quick/items/qquicktextinput.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/quick/items/qquicktextinput.cpp b/src/quick/items/qquicktextinput.cpp index ad79f0eadf..5195911c5f 100644 --- a/src/quick/items/qquicktextinput.cpp +++ b/src/quick/items/qquicktextinput.cpp @@ -1201,23 +1201,27 @@ bool QQuickTextInput::hasAcceptableInput() const } /*! - \qmlsignal QtQuick::TextInput::onAccepted() + \qmlsignal QtQuick::TextInput::accepted() - This handler is called when the Return or Enter key is pressed. + This signal is emitted when the Return or Enter key is pressed. Note that if there is a \l validator or \l inputMask set on the text - input, the handler will only be emitted if the input is in an acceptable + input, the signal will only be emitted if the input is in an acceptable state. + + The corresponding handler is \c onAccepted. */ /*! - \qmlsignal QtQuick::TextInput::onEditingFinished() + \qmlsignal QtQuick::TextInput::editingFinished() \since 5.2 - This handler is called when the Return or Enter key is pressed or + This signal is emitted when the Return or Enter key is pressed or the text input loses focus. Note that if there is a validator or inputMask set on the text input and enter/return is pressed, this - handler will only be called if the input follows + signal will only be emitted if the input follows the inputMask and the validator returns an acceptable state. + + The corresponding handler is \c onEditingFinished. */ #ifndef QT_NO_IM |