mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Use Label delegate to avoid overlapping texts
CURA-5544
This commit is contained in:
parent
ab339e7784
commit
b0f1a6d859
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue