[utilities/kdebugsettings] src/core/model: Prepare to add custom category

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

Prepare to add custom category

M  +5    -0    src/core/model/customloggingcategoryproxymodel.cpp
M  +1    -0    src/core/model/customloggingcategoryproxymodel.h

https://invent.kde.org/utilities/kdebugsettings/-/commit/b0b6773d0aeeadbece57387f0070bb0f249b0e52

diff --git a/src/core/model/customloggingcategoryproxymodel.cpp b/src/core/model/customloggingcategoryproxymodel.cpp
index a0beedd0..41fdffbf 100644
--- a/src/core/model/customloggingcategoryproxymodel.cpp
+++ b/src/core/model/customloggingcategoryproxymodel.cpp
@@ -32,6 +32,11 @@ void CustomLoggingCategoryProxyModel::removeCategory(int proxyRow)
     return static_cast<CustomLoggingCategoryModel *>(sourceModel())->removeCategory(sourceIndex.row());
 }
 
+void CustomLoggingCategoryProxyModel::addCategory()
+{
+    // TODO
+}
+
 bool CustomLoggingCategoryProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
 {
     if (mFilterText.isEmpty()) {
diff --git a/src/core/model/customloggingcategoryproxymodel.h b/src/core/model/customloggingcategoryproxymodel.h
index 6451d1da..880fa6b9 100644
--- a/src/core/model/customloggingcategoryproxymodel.h
+++ b/src/core/model/customloggingcategoryproxymodel.h
@@ -19,6 +19,7 @@ public:
     void setFilterText(const QString &newFilterText);
 
     Q_INVOKABLE void removeCategory(int proxyRow);
+    Q_INVOKABLE void addCategory();
 
 protected:
     [[nodiscard]] bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
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.