From 0991cded0555cb2e17999740ffb31958b72c4942 Mon Sep 17 00:00:00 2001 From: Ismael Asensio Date: Fri, 16 Feb 2024 00:06:28 +0100 Subject: [PATCH] kcms/rules: Fix section header and info button sizing The section header being now a QQC2.ItemDelegate needs to explicitly set the width to be visible. The ContextualHelpButton size was getting constrained by the parent layout's being adjusted to just the label height. --- src/kcms/rules/ui/RuleItemDelegate.qml | 2 +- src/kcms/rules/ui/RulesEditor.qml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kcms/rules/ui/RuleItemDelegate.qml b/src/kcms/rules/ui/RuleItemDelegate.qml index f33c6f215b..a1e76c4909 100644 --- a/src/kcms/rules/ui/RuleItemDelegate.qml +++ b/src/kcms/rules/ui/RuleItemDelegate.qml @@ -35,6 +35,7 @@ QQC2.ItemDelegate { RowLayout { Layout.preferredWidth: 10 * Kirigami.Units.gridUnit + Layout.preferredHeight: Kirigami.Units.iconSizes.medium spacing: Kirigami.Units.smallSpacing QQC2.Label { @@ -56,7 +57,6 @@ QQC2.ItemDelegate { } KCM.ContextualHelpButton { - Layout.preferredHeight: Kirigami.Units.gridUnit * 2 Layout.alignment: Qt.AlignVCenter visible: model.description.length > 0 toolTipText: model.description diff --git a/src/kcms/rules/ui/RulesEditor.qml b/src/kcms/rules/ui/RulesEditor.qml index e30cea8f32..fdb2d6e34a 100644 --- a/src/kcms/rules/ui/RulesEditor.qml +++ b/src/kcms/rules/ui/RulesEditor.qml @@ -190,6 +190,7 @@ KCM.ScrollViewKCM { property: "section" delegate: Kirigami.ListSectionHeader { label: section + width: ListView.view.width height: implicitHeight } }