[utilities/kdebugsettings] src/quickapps/qml: Allow to change showOffType

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

Allow to change showOffType

M  +2    -1    src/quickapps/qml/CategoryComboBox.qml
M  +1    -0    src/quickapps/qml/EditCustomRuleDialog.qml

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

diff --git a/src/quickapps/qml/CategoryComboBox.qml b/src/quickapps/qml/CategoryComboBox.qml
index b64463eb..e7c5f8a4 100644
--- a/src/quickapps/qml/CategoryComboBox.qml
+++ b/src/quickapps/qml/CategoryComboBox.qml
@@ -8,6 +8,7 @@ QQC2.ComboBox {
     id: categoryType
 
     property int loggingType: -1
+    property bool showOffTypeValue: true
 
     onLoggingTypeChanged: {
         currentIndex = count > 0 ? indexOfValue(loggingType) : -1
@@ -21,7 +22,7 @@ QQC2.ComboBox {
 
     model: CategoryTypeProxyModel {
         sourceModel: LoggingManager.categoryTypeModel
-        showOffType: true
+        showOffType: showOffTypeValue
     }
     textRole: "display"
     valueRole: "categoryType"
diff --git a/src/quickapps/qml/EditCustomRuleDialog.qml b/src/quickapps/qml/EditCustomRuleDialog.qml
index 05fba138..3d989f8b 100644
--- a/src/quickapps/qml/EditCustomRuleDialog.qml
+++ b/src/quickapps/qml/EditCustomRuleDialog.qml
@@ -39,6 +39,7 @@ Kirigami.Dialog {
         }
         CategoryComboBox {
             id: categoryType
+            showOffTypeValue: false
             Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
         }
         QQC2.CheckBox {
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.