[kcms/virtualdesktops] Enable apply button when typing desktop name
Currently the apply button will only be enabled when you press enter or change focus away from the text field which is somewhat inintuitive. Instead enable the apply button as soon as the text changed. BUG: 435014
This commit is contained in:
parent
d8855cc62a
commit
86ce04a7fc
1 changed files with 4 additions and 1 deletions
|
@ -53,9 +53,12 @@ KCM.ScrollViewKCM {
|
||||||
|
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
|
||||||
|
onTextEdited: {
|
||||||
|
Qt.callLater(kcm.desktopsModel.setDesktopName, model.Id, text);
|
||||||
|
}
|
||||||
|
|
||||||
onEditingFinished: {
|
onEditingFinished: {
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
Qt.callLater(kcm.desktopsModel.setDesktopName, model.Id, text);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue