[utilities/kdebugsettings] src: Prepare kcm module

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 2ec4e7d371fe613fb51610429b7ecb7ac73b3839 by Laurent Montel.
Committed on 29/07/2026 at 19:21.
Pushed by mlaurent into branch 'master'.

Prepare kcm module

M  +1    -1    src/CMakeLists.txt
M  +7    -1    src/kcm/CMakeLists.txt
A  +18   -0    src/kcm/kcmdebugsettingsqml.cpp     [License: LGPL(v2.0+)]
A  +17   -0    src/kcm/kcmdebugsettingsqml.h     [License: LGPL(v2.0+)]
A  +18   -0    src/kcm/ui/main.qml     [License: LGPL(v2.0+)]

https://invent.kde.org/utilities/kdebugsettings/-/commit/2ec4e7d371fe613fb51610429b7ecb7ac73b3839

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f6a6878c..8bf87d0b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -6,7 +6,7 @@ add_subdirectory(apps)
 add_subdirectory(data)
 add_subdirectory(widgets)
 add_subdirectory(quickapps)
-# add_subdirectory(kcm)
+add_subdirectory(kcm)
 
 # Selenium GUI tests
 if(SeleniumWebDriverATSPI_FOUND)
diff --git a/src/kcm/CMakeLists.txt b/src/kcm/CMakeLists.txt
index b49c8dbe..1251fe98 100644
--- a/src/kcm/CMakeLists.txt
+++ b/src/kcm/CMakeLists.txt
@@ -2,7 +2,13 @@
 # SPDX-License-Identifier: BSD-3-Clause
 kcmutils_add_qml_kcm(kcm_debugsettings)
 
-target_sources(kcm_debugsettings PRIVATE cellularnetworksettings.cpp)
+target_sources(
+    kcm_debugsettings
+    PRIVATE
+        kcmdebugsettingsqml.h
+        kcmdebugsettingsqml.cpp
+)
+
 target_link_libraries(
     kcm_debugsettings
     PRIVATE
diff --git a/src/kcm/kcmdebugsettingsqml.cpp b/src/kcm/kcmdebugsettingsqml.cpp
new file mode 100644
index 00000000..4e6b355a
--- /dev/null
+++ b/src/kcm/kcmdebugsettingsqml.cpp
@@ -0,0 +1,18 @@
+/*
+    SPDX-FileCopyrightText: 2026 Laurent Montel <[email protected]>
+
+    SPDX-License-Identifier: LGPL-2.0-or-later
+*/
+
+#include "kcmdebugsettingsqml.h"
+
+K_PLUGIN_CLASS_WITH_JSON(KCMDebugSettingsQml, "kcm_debugsettings.json")
+
+KCMDebugSettingsQml::KCMDebugSettingsQml(QObject *parent, const KPluginMetaData &metaData)
+    : KQuickConfigModule(parent, metaData)
+{
+}
+
+KCMDebugSettingsQml::~KCMDebugSettingsQml() = default;
+
+#include "kcmdebugsettingsqml.moc"
diff --git a/src/kcm/kcmdebugsettingsqml.h b/src/kcm/kcmdebugsettingsqml.h
new file mode 100644
index 00000000..fbbff8b9
--- /dev/null
+++ b/src/kcm/kcmdebugsettingsqml.h
@@ -0,0 +1,17 @@
+/*
+    SPDX-FileCopyrightText: 2026 Laurent Montel <[email protected]>
+
+    SPDX-License-Identifier: LGPL-2.0-or-later
+*/
+
+#pragma once
+
+#include <KQuickConfigModule>
+
+class KCMDebugSettingsQml : public KQuickConfigModule
+{
+    Q_OBJECT
+public:
+    explicit KCMDebugSettingsQml(QObject *parent, const KPluginMetaData &metaData);
+    ~KCMDebugSettingsQml() override;
+};
diff --git a/src/kcm/ui/main.qml b/src/kcm/ui/main.qml
new file mode 100644
index 00000000..99cdae90
--- /dev/null
+++ b/src/kcm/ui/main.qml
@@ -0,0 +1,18 @@
+/*
+    SPDX-FileCopyrightText: 2026 Laurent Montel <[email protected]>
+
+    SPDX-License-Identifier: LGPL-2.0-or-later
+*/
+
+import QtQuick
+import QtQuick.Controls as QQC2
+import QtQuick.Layouts
+import org.kde.kirigami as Kirigami
+
+Kirigami.Page {
+    id: root
+
+    focus: true
+
+    Kirigami.Theme.colorSet: Kirigami.Theme.Window
+}
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.