Elide entry names in entries/fields list items

This commit is contained in:
Martchus 2024-04-01 15:32:47 +02:00
parent 8319d4f485
commit 613d62d042
2 changed files with 4 additions and 0 deletions

View File

@ -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
}

View File

@ -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) {