Add an accepted signal in the TextField Plasma Component.

REVIEW: 103795
This commit is contained in:
Aleix Pol 2012-01-27 16:09:40 +01:00
parent ac344dba18
commit 4905917342

View File

@ -113,6 +113,9 @@ Properties:
* bool clearButtonShown: * bool clearButtonShown:
Holds if the button to clear the text from TextField is visible. Holds if the button to clear the text from TextField is visible.
Signals:
* accepted():
This signal is emitted when the text input is accepted.
Methods: Methods:
* void copy(): * void copy():
@ -176,6 +179,8 @@ Item {
property alias text: textInput.text property alias text: textInput.text
property alias maximumLength: textInput.maximumLength property alias maximumLength: textInput.maximumLength
signal accepted
//Plasma api //Plasma api
property bool clearButtonShown: false property bool clearButtonShown: false
@ -295,6 +300,7 @@ Item {
textInput.closeSoftwareInputPanel() textInput.closeSoftwareInputPanel()
} }
} }
onAccepted: textField.accepted()
} }
Private.IconLoader { Private.IconLoader {