Use Label delegate to avoid overlapping texts

CURA-5544
This commit is contained in:
Lipu Fei 2018-07-05 14:36:19 +02:00
parent ab339e7784
commit b0f1a6d859

View file

@ -76,11 +76,26 @@ Item
} }
} }
Component
{
id: columnTextDelegate
Label
{
anchors.fill: parent
verticalAlignment: Text.AlignVCenter
text: styleData.value || ""
elide: Text.ElideRight
color: UM.Theme.getColor("text_medium")
font: UM.Theme.getFont("default")
}
}
TableViewColumn TableViewColumn
{ {
role: "machine" role: "machine"
title: "Machine" title: "Machine"
width: Math.floor(table.width * 0.25) width: Math.floor(table.width * 0.25)
delegate: columnTextDelegate
} }
TableViewColumn TableViewColumn
{ {