[plasma/kscreen] kcm/ui: Put the ContextualHelpButton in trailingItems like everywhere else

Marco Martin <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit e669d24ddde6f3dc09e73832fa1b9ac7b63b281e by Marco Martin.
Committed on 10/08/2026 at 13:55.
Pushed by mart into branch 'master'.

Put the ContextualHelpButton in trailingItems like everywhere else

the ContextualHelpButton should be in tralingItems, so it will be at
item end in the classical layout and at the edge of the card
in the card mode

M  +8    -5    kcm/ui/OutputPanel.qml

https://invent.kde.org/plasma/kscreen/-/commit/e669d24ddde6f3dc09e73832fa1b9ac7b63b281e

diff --git a/kcm/ui/OutputPanel.qml b/kcm/ui/OutputPanel.qml
index 86ee056d..cf8e95f2 100644
--- a/kcm/ui/OutputPanel.qml
+++ b/kcm/ui/OutputPanel.qml
@@ -64,7 +64,8 @@ Kirigami.Form {
         Kirigami.FormEntry {
             title: i18n("Resolution:")
             contentItem: RowLayout {
-                Kirigami.FormData.buddyFor: resolutionCombobox
+                Layout.fillWidth: false
+                Kirigami.FormData.buddyFor: resolutionCombobox.visible ? resolutionCombobox : singleResolutionLabel
 
                 QQC2.ComboBox {
                     id: resolutionCombobox
@@ -79,13 +80,15 @@ Kirigami.Form {
                 // using a label instead
                 QQC2.Label {
                     id: singleResolutionLabel
+
                     visible: resolutionCombobox.count <= 1
                     text: element.resolutions[0] || ""
                 }
-                Kirigami.ContextualHelpButton {
-                    visible: resolutionCombobox.count <= 1
-                    toolTipText: i18nc("@info", "“%1” is the only resolution supported by this display.", singleResolutionLabel.text)
-                }
+            }
+            trailingItems: Kirigami.ContextualHelpButton {
+                visible: resolutionCombobox.count <= 1
+                visible: true
+                toolTipText: i18nc("@info", "“%1” is the only resolution supported by this display.", singleResolutionLabel.text)
             }
         }
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.