[utilities/kdebugsettings] src/quickapps/qml: Reformat code

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 88d8bcd4f0854bb4c8d79f618b347673d3440eb0 by Laurent Montel.
Committed on 22/07/2026 at 05:37.
Pushed by mlaurent into branch 'master'.

Reformat code

M  +13   -15   src/quickapps/qml/CustomRulesPage.qml
M  +3    -2    src/quickapps/qml/EditCustomRuleDialog.qml
M  +1    -1    src/quickapps/qml/EnvironmentVariableRulesPage.qml
M  +3    -1    src/quickapps/qml/GlobalMenu.qml
M  +4    -3    src/quickapps/qml/KDEApplicationRulesPage.qml
M  +17   -7    src/quickapps/qml/Main.qml
M  +1    -12   src/quickapps/qml/MainPage.qml

https://invent.kde.org/utilities/kdebugsettings/-/commit/88d8bcd4f0854bb4c8d79f618b347673d3440eb0

diff --git a/src/quickapps/qml/CustomRulesPage.qml b/src/quickapps/qml/CustomRulesPage.qml
index e03d0a7e..543f7e41 100644
--- a/src/quickapps/qml/CustomRulesPage.qml
+++ b/src/quickapps/qml/CustomRulesPage.qml
@@ -37,7 +37,6 @@ Kirigami.ScrollablePage {
             text: displayRule
             highlighted: ListView.isCurrentItem
             onClicked: listviewRules.currentIndex = index
-
         }
         TapHandler {
             acceptedButtons: Qt.RightButton
@@ -50,7 +49,7 @@ Kirigami.ScrollablePage {
                 icon.name: "list-add"
                 text: i18nc("@action add custom rule", "Add Rule…")
                 onTriggered: {
-                    console.debug("Not implemented yet")
+                    console.debug("Not implemented yet");
                     editCustomRuleDialog.open();
                     // TODO
                 }
@@ -60,7 +59,7 @@ Kirigami.ScrollablePage {
                 icon.name: "document-edit"
                 text: i18nc("@action edit custom rule", "Edit Rule…")
                 onTriggered: {
-                    console.debug("Not implemented yet")
+                    console.debug("Not implemented yet");
                     editCustomRuleDialog.open();
                     // TODO
                 }
@@ -73,23 +72,22 @@ Kirigami.ScrollablePage {
                 icon.name: "edit-delete"
                 text: i18nc("@action remove custom rule", "Remove Rule")
                 onTriggered: {
-                    removeRulePrompt.open()
-                    console.debug("Not implemented yet")
+                    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
+                    id: removeRulePrompt
+                    parent: QQC2.Overlay.overlay
 
-                     onAccepted: {
-                         LoggingManager.customLoggingCategoryProxyModel.removeCategory(listviewRules.currentIndex)
-                     }
-                 }
+                    title: i18nc("@title:window", "Remove Rule")
+                    subtitle: i18n("Are you sure you want to remove rule ?")
+                    standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
 
+                    onAccepted: {
+                        LoggingManager.customLoggingCategoryProxyModel.removeCategory(listviewRules.currentIndex);
+                    }
+                }
             }
         }
     }
diff --git a/src/quickapps/qml/EditCustomRuleDialog.qml b/src/quickapps/qml/EditCustomRuleDialog.qml
index 603e4269..268d062a 100644
--- a/src/quickapps/qml/EditCustomRuleDialog.qml
+++ b/src/quickapps/qml/EditCustomRuleDialog.qml
@@ -5,6 +5,7 @@ import org.kde.kirigami as Kirigami
 import QtQuick.Controls as QQC2
 import QtQuick.Layouts
 import org.kde.kdebugsettings
+
 Kirigami.Dialog {
     id: dialog
     title: i18n("Edit Custom Rule")
@@ -45,10 +46,10 @@ Kirigami.Dialog {
         QQC2.CheckBox {
             id: categoryEnabled
             Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
-            text: i18n("Enabled");
+            text: i18n("Enabled")
         }
     }
     onAccepted: {
-        console.debug("Edit custom Not implemented yet")
+        console.debug("Edit custom Not implemented yet");
     }
 }
diff --git a/src/quickapps/qml/EnvironmentVariableRulesPage.qml b/src/quickapps/qml/EnvironmentVariableRulesPage.qml
index f89ed535..30d0fb2a 100644
--- a/src/quickapps/qml/EnvironmentVariableRulesPage.qml
+++ b/src/quickapps/qml/EnvironmentVariableRulesPage.qml
@@ -19,7 +19,7 @@ Kirigami.Page {
         anchors.centerIn: parent
         TextEdit {
             text: LoggingManager.environmentrules().length === 0 ? i18n("No rules have been defined in the environment variable \"QT_LOGGING_RULES\".") : LoggingManager.environmentrules()
-            readOnly: true;
+            readOnly: true
             horizontalAlignment: Qt.AlignHCenter
         }
     }
diff --git a/src/quickapps/qml/GlobalMenu.qml b/src/quickapps/qml/GlobalMenu.qml
index 478e653c..0d6f28f9 100644
--- a/src/quickapps/qml/GlobalMenu.qml
+++ b/src/quickapps/qml/GlobalMenu.qml
@@ -9,6 +9,8 @@ Platform.MenuBar {
     Platform.Menu {
         title: i18nc("@item:inmenu", "Help")
 
-        ActionMenuItem { action: aboutAction }
+        ActionMenuItem {
+            action: aboutAction
+        }
     }
 }
diff --git a/src/quickapps/qml/KDEApplicationRulesPage.qml b/src/quickapps/qml/KDEApplicationRulesPage.qml
index 856bd3b7..2c4b3ef4 100644
--- a/src/quickapps/qml/KDEApplicationRulesPage.qml
+++ b/src/quickapps/qml/KDEApplicationRulesPage.qml
@@ -8,6 +8,7 @@ import org.kde.kirigami as Kirigami
 
 import org.kde.kdebugsettings
 import org.kde.kirigamiaddons.delegates as Delegates
+
 Kirigami.ScrollablePage {
     id: page
     title: i18nc("@title", "KDE Application Rules")
@@ -27,8 +28,8 @@ Kirigami.ScrollablePage {
         activeFocusOnTab: true // keyboard navigation
         reuseItems: true
         clip: true
-        model: LoggingManager.kdeApplicationLoggingCategoryProxyModel;
-        delegate:  Delegates.RoundedItemDelegate {
+        model: LoggingManager.kdeApplicationLoggingCategoryProxyModel
+        delegate: Delegates.RoundedItemDelegate {
             highlighted: ListView.isCurrentItem
             onClicked: listviewRules.currentIndex = index
 
@@ -62,7 +63,7 @@ Kirigami.ScrollablePage {
                     // Re-evaluate once the ComboBox model is populated on startup.
                     currentIndex: count > 0 ? indexOfValue(loggingType) : -1
                     onActivated: () => {
-                        listviewRules.model.setCategoryType(rowIndex, currentValue)
+                        listviewRules.model.setCategoryType(rowIndex, currentValue);
                     }
                 }
             }
diff --git a/src/quickapps/qml/Main.qml b/src/quickapps/qml/Main.qml
index 3a9aad10..757515a4 100644
--- a/src/quickapps/qml/Main.qml
+++ b/src/quickapps/qml/Main.qml
@@ -17,33 +17,41 @@ Kirigami.ApplicationWindow {
         globalToolBar {
             style: Kirigami.ApplicationHeaderStyle.ToolBar
             showNavigationButtons: if (applicationWindow().pageStack.currentIndex > 0) {
-                Kirigami.ApplicationHeaderStyle.ShowBackButton
+                Kirigami.ApplicationHeaderStyle.ShowBackButton;
             } else {
-                0
+                0;
             }
         }
     }
     Kirigami.Action {
         id: goToKdeApplicationCategories
         text: i18nc("@action", "Show KDE Application Categories")
-        onTriggered: { pageStack.layers.push(Qt.resolvedUrl("KDEApplicationRulesPage.qml")) }
+        onTriggered: {
+            pageStack.layers.push(Qt.resolvedUrl("KDEApplicationRulesPage.qml"));
+        }
     }
     Kirigami.Action {
         id: goToCustomCategories
         text: i18nc("@action", "Show Custom Categories")
-        onTriggered: { pageStack.layers.push(Qt.resolvedUrl("CustomRulesPage.qml")) }
+        onTriggered: {
+            pageStack.layers.push(Qt.resolvedUrl("CustomRulesPage.qml"));
+        }
     }
     Kirigami.Action {
         id: goToEnviromnentCategories
         text: i18nc("@action", "Show Environment Categories")
-        onTriggered: { pageStack.layers.push(Qt.resolvedUrl("EnvironmentVariableRulesPage.qml")) }
+        onTriggered: {
+            pageStack.layers.push(Qt.resolvedUrl("EnvironmentVariableRulesPage.qml"));
+        }
     }
     Kirigami.Action {
         id: aboutAction
         displayHint: Kirigami.DisplayHint.AlwaysHide
         icon.name: "debug-run"
         text: i18nc("@action opens about app page", "About")
-        onTriggered: { pageStack.layers.push(Qt.resolvedUrl("AboutPage.qml")) }
+        onTriggered: {
+            pageStack.layers.push(Qt.resolvedUrl("AboutPage.qml"));
+        }
     }
 
     Kirigami.Action {
@@ -51,7 +59,9 @@ Kirigami.ApplicationWindow {
         displayHint: Kirigami.DisplayHint.AlwaysHide
         icon.name: "help-browser"
         text: i18nc("@action", "Open Handbook")
-        onTriggered: { Qt.openUrlExternally("help:/kdebugsettings") }
+        onTriggered: {
+            Qt.openUrlExternally("help:/kdebugsettings");
+        }
     }
     Kirigami.Action {
         id: separatorAction
diff --git a/src/quickapps/qml/MainPage.qml b/src/quickapps/qml/MainPage.qml
index 7d65a1ed..f3f2fa83 100644
--- a/src/quickapps/qml/MainPage.qml
+++ b/src/quickapps/qml/MainPage.qml
@@ -11,18 +11,7 @@ Kirigami.Page {
 
     leftPadding: 20
 
-
-    actions: [
-        goToKdeApplicationCategories,
-        goToCustomCategories,
-        goToEnviromnentCategories,
-        saveAction,
-        separatorAction,
-        helpAction,
-        aboutAction,
-        separatorAction,
-        quitAction
-    ]
+    actions: [goToKdeApplicationCategories, goToCustomCategories, goToEnviromnentCategories, saveAction, separatorAction, helpAction, aboutAction, separatorAction, quitAction]
     ColumnLayout {
         spacing: Kirigami.Units.gridUnit
         width: parent.width - (Kirigami.Units.largeSpacing * 4)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.