From 07dd2a50864512b5681f1a82bf9faff50c609425 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Wed, 18 Oct 2023 23:38:33 +0300 Subject: [PATCH] Port implicit default content items to use contentItem: property See also https://invent.kde.org/frameworks/kirigami/-/merge_requests/1338 and https://invent.kde.org/frameworks/kirigami/-/merge_requests/1340 --- src/kcms/rules/ui/RuleItemDelegate.qml | 2 +- src/kcms/rules/ui/RulesEditor.qml | 2 +- src/kcms/rules/ui/main.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kcms/rules/ui/RuleItemDelegate.qml b/src/kcms/rules/ui/RuleItemDelegate.qml index 87b6d357cf..59bd3d6c7a 100644 --- a/src/kcms/rules/ui/RuleItemDelegate.qml +++ b/src/kcms/rules/ui/RuleItemDelegate.qml @@ -21,7 +21,7 @@ Kirigami.AbstractListItem { highlighted: false hoverEnabled: false - RowLayout { + contentItem: RowLayout { Kirigami.Icon { id: itemIcon diff --git a/src/kcms/rules/ui/RulesEditor.qml b/src/kcms/rules/ui/RulesEditor.qml index 3135693603..583015245a 100644 --- a/src/kcms/rules/ui/RulesEditor.qml +++ b/src/kcms/rules/ui/RulesEditor.qml @@ -197,7 +197,7 @@ KCM.ScrollViewKCM { highlighted: false width: ListView.view.width - RowLayout { + contentItem: RowLayout { Kirigami.Icon { source: model.icon Layout.preferredHeight: Kirigami.Units.iconSizes.smallMedium diff --git a/src/kcms/rules/ui/main.qml b/src/kcms/rules/ui/main.qml index 450b9ee771..8a18ff3ab2 100644 --- a/src/kcms/rules/ui/main.qml +++ b/src/kcms/rules/ui/main.qml @@ -143,7 +143,7 @@ KCM.ScrollViewKCM { Kirigami.SwipeListItem { id: ruleBookItem - RowLayout { + contentItem: RowLayout { Kirigami.ListItemDragHandle { visible: !exportInfo.visible listItem: ruleBookItem