[utilities/kdebugsettings] src/quickapps/contents/ui: Fix select items

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

Fix select items

M  +4    -0    src/quickapps/contents/ui/CustomRulesPage.qml
M  +3    -0    src/quickapps/contents/ui/KDEApplicationRulesPage.qml

https://invent.kde.org/utilities/kdebugsettings/-/commit/1dfec1e0f2a041b4e1028d6a1773a2ce69eacb8a

diff --git a/src/quickapps/contents/ui/CustomRulesPage.qml b/src/quickapps/contents/ui/CustomRulesPage.qml
index 8a03f584..d4c5c71d 100644
--- a/src/quickapps/contents/ui/CustomRulesPage.qml
+++ b/src/quickapps/contents/ui/CustomRulesPage.qml
@@ -16,12 +16,16 @@ Kirigami.ScrollablePage {
     ListView {
         id: listviewRules
         reuseItems: true
+        activeFocusOnTab: true // keyboard navigation
         focus: true // keyboard navigation
         model: LoggingManager.customCategoryModel
         delegate: Delegates.RoundedItemDelegate {
             required property string displayRule
+            required property int index
 
             text: displayRule
+            highlighted: ListView.isCurrentItem
+            onClicked: listviewRules.currentIndex = index
 
             TapHandler {
                 acceptedButtons: Qt.RightButton
diff --git a/src/quickapps/contents/ui/KDEApplicationRulesPage.qml b/src/quickapps/contents/ui/KDEApplicationRulesPage.qml
index da2682ca..19c6f95e 100644
--- a/src/quickapps/contents/ui/KDEApplicationRulesPage.qml
+++ b/src/quickapps/contents/ui/KDEApplicationRulesPage.qml
@@ -32,6 +32,9 @@ Kirigami.ScrollablePage {
             sourceModel: LoggingManager.qtKdeCategoryModel
         }
         delegate:  Delegates.RoundedItemDelegate {
+            highlighted: ListView.isCurrentItem
+            onClicked: listviewRules.currentIndex = index
+
             RowLayout {
                 width: parent.width
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.