[utilities/kdebugsettings] src/kcm: Prepare to implement pages

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

Prepare to implement pages

M  +1    -2    src/kcm/kcmdebugsettingsqml.cpp
M  +27   -6    src/kcm/ui/main.qml

https://invent.kde.org/utilities/kdebugsettings/-/commit/0d016bdc970a62e1506c4a21ab26774be5252f9c

diff --git a/src/kcm/kcmdebugsettingsqml.cpp b/src/kcm/kcmdebugsettingsqml.cpp
index fdb3bd04..ef052860 100644
--- a/src/kcm/kcmdebugsettingsqml.cpp
+++ b/src/kcm/kcmdebugsettingsqml.cpp
@@ -30,7 +30,7 @@ KCMDebugSettingsQml::~KCMDebugSettingsQml() = default;
 
 void KCMDebugSettingsQml::load()
 {
-    // TODO
+    // Nothing, it loads from LoggingManager
 }
 
 void KCMDebugSettingsQml::save()
@@ -38,7 +38,6 @@ void KCMDebugSettingsQml::save()
     if (!LoggingManager::self().saveInQtLogging()) {
         qCWarning(KDEBUGSETTINGS_KCM_LOG) << "Impossible to save file";
     }
-    // TODO
 }
 
 #include "kcmdebugsettingsqml.moc"
diff --git a/src/kcm/ui/main.qml b/src/kcm/ui/main.qml
index 99cdae90..4df394c7 100644
--- a/src/kcm/ui/main.qml
+++ b/src/kcm/ui/main.qml
@@ -7,12 +7,33 @@
 import QtQuick
 import QtQuick.Controls as QQC2
 import QtQuick.Layouts
+import org.kde.kcmutils as KCM
 import org.kde.kirigami as Kirigami
 
-Kirigami.Page {
-    id: root
-
-    focus: true
-
-    Kirigami.Theme.colorSet: Kirigami.Theme.Window
+KCM.ScrollViewKCM {
+    implicitHeight: Kirigami.Units.gridUnit * 28
+    implicitWidth: Kirigami.Units.gridUnit * 28
+    actions: [
+        Kirigami.Action {
+            id: goToKdeApplicationCategories
+            text: i18nc("@action", "Show KDE Application Categories")
+            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"));
+            }
+        },
+        Kirigami.Action {
+            id: goToEnviromnentCategories
+            text: i18nc("@action", "Show Environment Categories")
+            onTriggered: {
+                pageStack.layers.push(Qt.resolvedUrl("EnvironmentVariableRulesPage.qml"));
+            }
+        }
+    ]
 }
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.