[utilities/kdebugsettings] src/kcm: Continue to implement kcm

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

Continue to implement kcm

M  +1    -0    src/kcm/CMakeLists.txt
M  +13   -1    src/kcm/kcmdebugsettingsqml.cpp

https://invent.kde.org/utilities/kdebugsettings/-/commit/93e28bd1eae6d088d452fb393a2b5160aba906c9

diff --git a/src/kcm/CMakeLists.txt b/src/kcm/CMakeLists.txt
index 1251fe98..159a80e5 100644
--- a/src/kcm/CMakeLists.txt
+++ b/src/kcm/CMakeLists.txt
@@ -17,4 +17,5 @@ target_link_libraries(
         Qt::Qml
         KF6::I18n
         KF6::KCMUtilsQuick
+        libkdebugsettingscore
 )
diff --git a/src/kcm/kcmdebugsettingsqml.cpp b/src/kcm/kcmdebugsettingsqml.cpp
index 4e6b355a..fa192177 100644
--- a/src/kcm/kcmdebugsettingsqml.cpp
+++ b/src/kcm/kcmdebugsettingsqml.cpp
@@ -5,12 +5,24 @@
 */
 
 #include "kcmdebugsettingsqml.h"
-
+#include "loggingmanager.h"
+#include "model/categorytypeproxymodel.h"
+#include "model/customloggingcategorymodel.h"
+#include "model/customloggingcategoryproxymodel.h"
+#include "model/kdeapplicationloggingcategorymodel.h"
+#include "model/kdeapplicationloggingcategoryproxymodel.h"
+#include <qqml.h>
 K_PLUGIN_CLASS_WITH_JSON(KCMDebugSettingsQml, "kcm_debugsettings.json")
 
 KCMDebugSettingsQml::KCMDebugSettingsQml(QObject *parent, const KPluginMetaData &metaData)
     : KQuickConfigModule(parent, metaData)
 {
+    qmlRegisterSingletonInstance("org.kde.kdebugsettings", 1, 0, "LoggingManager", &LoggingManager::self());
+    qRegisterMetaType<CustomLoggingCategoryModel *>("CustomLoggingCategoryModel *");
+    qRegisterMetaType<KDEApplicationLoggingCategoryModel *>("KDEApplicationLoggingCategoryModel *");
+    qmlRegisterType<CategoryTypeProxyModel>("org.kde.kdebugsettings", 1, 0, "CategoryTypeProxyModel");
+    qmlRegisterType<CustomLoggingCategoryProxyModel>("org.kde.kdebugsettings", 1, 0, "CustomLoggingCategoryProxyModel");
+    qmlRegisterType<KDEApplicationLoggingCategoryProxyModel>("org.kde.kdebugsettings", 1, 0, "KDEApplicationLoggingCategoryProxyModel");
 }
 
 KCMDebugSettingsQml::~KCMDebugSettingsQml() = default;
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.