[frameworks/kirigami] src/forms/cards: FormEntry: fix the subtitle when the contentITem doesn't have an indicator
Marco Martin <[email protected]> Wed, 5 Aug 2026 09:08:21 +0000 (UTC)
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 8ef19ac2622949f03b06b54efe280c14eab38b31 by Marco Martin.
Committed on 04/08/2026 at 08:33.
Pushed by mart into branch 'master'.
FormEntry: fix the subtitle when the contentITem doesn't have an indicator
M +1 -1 src/forms/cards/FormEntry.qml
https://invent.kde.org/frameworks/kirigami/-/commit/8ef19ac2622949f03b06b54efe280c14eab38b31
diff --git a/src/forms/cards/FormEntry.qml b/src/forms/cards/FormEntry.qml
index ab1e3a612..1ec8cbe86 100644
--- a/src/forms/cards/FormEntry.qml
+++ b/src/forms/cards/FormEntry.qml
@@ -176,7 +176,7 @@ FT.FormEntry {
wrapMode: Text.WordWrap
elide: Text.ElideRight
leftPadding: Application.layoutDirection === Qt.LeftToRight
- ? root.contentItem.KirigamiLayouts.FormData.buddyFor?.indicator?.width ?? 0 + root.contentItem.KirigamiLayouts.FormData.buddyFor?.spacing ?? 0
+ ? (root.contentItem.KirigamiLayouts.FormData.buddyFor?.indicator?.width ?? 0) + (root.contentItem.KirigamiLayouts.FormData.buddyFor?.spacing ?? 0)
: padding
}
}