kcms/rules: Make the "Add Property" button non-toggleable
Changing the text and meaning of the button unexpectedly for a regular operation is not consistent with any other place, and disregarded by the HIG. The sheet can be closed by tapping outside of it, or throught the close button in its titlebar, as usual elsewhere.
This commit is contained in:
parent
893bffd572
commit
9098fd4910
1 changed files with 4 additions and 6 deletions
|
@ -85,12 +85,10 @@ KCM.ScrollViewKCM {
|
|||
|
||||
footer: RowLayout {
|
||||
QQC2.Button {
|
||||
text: checked ? i18n("Close") : i18n("Add Property...")
|
||||
icon.name: checked ? "dialog-close" : "list-add"
|
||||
checkable: true
|
||||
checked: propertySheet.visible
|
||||
onToggled: {
|
||||
propertySheet.visible = checked;
|
||||
text: i18n("Add Property...")
|
||||
icon.name: "list-add"
|
||||
onClicked: {
|
||||
propertySheet.visible = true;
|
||||
}
|
||||
}
|
||||
Item {
|
||||
|
|
Loading…
Reference in a new issue