From 613d62d0424b0fab3c6a57ce6e0b15848a2f0f70 Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 1 Apr 2024 15:32:47 +0200 Subject: [PATCH] Elide entry names in entries/fields list items --- qml/EntryDelegate.qml | 2 ++ qml/FieldsDelegate.qml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/qml/EntryDelegate.qml b/qml/EntryDelegate.qml index 40cdb46..6c64849 100644 --- a/qml/EntryDelegate.qml +++ b/qml/EntryDelegate.qml @@ -38,6 +38,8 @@ Item { Controls.Label { Layout.fillWidth: true Layout.fillHeight: true + Layout.maximumWidth: availableWidth - listItem.overlayWidth + elide: Text.ElideRight text: model.name verticalAlignment: Text.AlignVCenter } diff --git a/qml/FieldsDelegate.qml b/qml/FieldsDelegate.qml index 8a217b8..974cf45 100644 --- a/qml/FieldsDelegate.qml +++ b/qml/FieldsDelegate.qml @@ -31,6 +31,8 @@ Item { Controls.Label { Layout.fillWidth: true Layout.fillHeight: true + Layout.maximumWidth: availableWidth - listItem.overlayWidth + elide: Text.ElideRight text: { let pieces = [] if (model.key) {