[utilities/kdebugsettings] src/quickapps/qml: Add remove rule prompt
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 52b293c91cf4122b56f6e89fbd111caa0a249851 by Laurent Montel.
Committed on 21/07/2026 at 05:05.
Pushed by mlaurent into branch 'master'.
Add remove rule prompt
M +15 -0 src/quickapps/qml/CustomRulesPage.qml
https://invent.kde.org/utilities/kdebugsettings/-/commit/52b293c91cf4122b56f6e89fbd111caa0a249851
diff --git a/src/quickapps/qml/CustomRulesPage.qml b/src/quickapps/qml/CustomRulesPage.qml
index 1fdf2591..bbb97f7f 100644
--- a/src/quickapps/qml/CustomRulesPage.qml
+++ b/src/quickapps/qml/CustomRulesPage.qml
@@ -73,9 +73,24 @@ Kirigami.ScrollablePage {
icon.name: "edit-delete"
text: i18nc("@action remove custom rule", "Remove Rule")
onTriggered: {
+ removeRulePrompt.open()
console.debug("Not implemented yet")
// TODO
}
+ Kirigami.PromptDialog {
+ id: removeRulePrompt
+
+ parent: QQC2.Overlay.overlay
+
+ title: i18nc("@title:window", "Remove Rule")
+ subtitle: i18n("Are you sure you want to remove rule ?")
+ standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
+
+ onAccepted: {
+ // TODO
+ }
+ }
+
}
}
}