Add an accepted signal in the TextField Plasma Component.
REVIEW: 103795
This commit is contained in:
parent
ac344dba18
commit
4905917342
@ -113,6 +113,9 @@ Properties:
|
||||
|
||||
* bool clearButtonShown:
|
||||
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:
|
||||
* void copy():
|
||||
@ -176,6 +179,8 @@ Item {
|
||||
property alias text: textInput.text
|
||||
property alias maximumLength: textInput.maximumLength
|
||||
|
||||
signal accepted
|
||||
|
||||
//Plasma api
|
||||
property bool clearButtonShown: false
|
||||
|
||||
@ -295,6 +300,7 @@ Item {
|
||||
textInput.closeSoftwareInputPanel()
|
||||
}
|
||||
}
|
||||
onAccepted: textField.accepted()
|
||||
}
|
||||
|
||||
Private.IconLoader {
|
||||
|
Loading…
Reference in New Issue
Block a user