[utilities/kdebugsettings] src/quickapps/qml: Enable disable buttons
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 9cbaa4d718d66a64619e0b6133ceffa52d971e19 by Laurent Montel.
Committed on 23/07/2026 at 06:50.
Pushed by mlaurent into branch 'master'.
Enable disable buttons
M +14 -1 src/quickapps/qml/EditCustomRuleDialog.qml
https://invent.kde.org/utilities/kdebugsettings/-/commit/9cbaa4d718d66a64619e0b6133ceffa52d971e19
diff --git a/src/quickapps/qml/EditCustomRuleDialog.qml b/src/quickapps/qml/EditCustomRuleDialog.qml
index 3d989f8b..c5090040 100644
--- a/src/quickapps/qml/EditCustomRuleDialog.qml
+++ b/src/quickapps/qml/EditCustomRuleDialog.qml
@@ -17,7 +17,20 @@ Kirigami.Dialog {
property bool editMode: false
property int editRowIndex: -1
- standardButtons: QQC2.Dialog.Ok | QQC2.Dialog.Cancel
+ footer: QQC2.DialogButtonBox {
+ standardButtons: saveButton | QQC2.DialogButtonBox.Cancel
+ onAccepted: {
+ editUserModal.saveUser();
+ }
+ QQC2.Button {
+ id: saveButton
+ icon.name: "document-save"
+ enabled: categoryNameField.text !== ""
+ text: i18nc("@label:button", "Save")
+ QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.AcceptRole
+ }
+ }
+
RowLayout {
id: mainColumn
spacing: Kirigami.Units.smallSpacing