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:
|
* 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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user