diff --git a/kcmkwin/kwinrules/package/contents/ui/RulesList.qml b/kcmkwin/kwinrules/package/contents/ui/RulesList.qml index a8c25ccec..e6ebd566a 100644 --- a/kcmkwin/kwinrules/package/contents/ui/RulesList.qml +++ b/kcmkwin/kwinrules/package/contents/ui/RulesList.qml @@ -140,7 +140,7 @@ ScrollViewKCM { Component { id: ruleBookDelegate - Kirigami.AbstractListItem { + Kirigami.SwipeListItem { id: ruleBookItem RowLayout { @@ -189,15 +189,23 @@ ScrollViewKCM { } } - Kirigami.ActionToolBar { - Layout.preferredWidth: maximumContentWidth + Kirigami.Units.smallSpacing - alignment: Qt.AlignRight - display: QQC2.Button.IconOnly - visible: !exportInfo.visible - opacity: ruleBookItem.hovered ? 1 : 0 - focus: false + QQC2.CheckBox { + id: itemSelectionCheck + visible: exportInfo.visible + checked: selectedIndexes.includes(index) + onToggled: { + var position = selectedIndexes.indexOf(index); + if (checked) { + if (position < 0) { selectedIndexes.push(index); } + } else { + if (position >= 0) { selectedIndexes.splice(position, 1); } + } + selectedIndexesChanged(); + } + } + } - actions: [ + actions: [ Kirigami.Action { text: i18n("Edit") iconName: "edit-entry" @@ -214,23 +222,7 @@ ScrollViewKCM { } } ] - } - QQC2.CheckBox { - id: itemSelectionCheck - visible: exportInfo.visible - checked: selectedIndexes.includes(index) - onToggled: { - var position = selectedIndexes.indexOf(index); - if (checked) { - if (position < 0) { selectedIndexes.push(index); } - } else { - if (position >= 0) { selectedIndexes.splice(position, 1); } - } - selectedIndexesChanged(); - } - } - } } }