Re-added elide properties that seem to have gone lost in re-work

CL-521
This commit is contained in:
Jaime van Kessel 2017-10-06 13:51:18 +02:00
parent 8913a64fdc
commit a2dabc6442

View file

@ -93,25 +93,38 @@ Rectangle
id: jobNameLabel
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("default_margin").width
text: printJob != null ? printJob.name : ""
font: UM.Theme.getFont("default_bold")
elide: Text.ElideRight
}
Label
{
id: jobOwnerLabel
anchors.top: jobNameLabel.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("default_margin").width
text: printJob != null ? printJob.owner : ""
opacity: 0.50
elide: Text.ElideRight
}
Label
{
id: totalTimeLabel
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("default_margin").width
text: printJob != null ? getPrettyTime(printJob.time_total) : ""
opacity: 0.65
font: UM.Theme.getFont("default")
elide: Text.ElideRight
}
}
@ -388,6 +401,8 @@ Rectangle
}
return "";
}
anchors.left: parent.left
anchors.right: parent.right
elide: Text.ElideRight
font: UM.Theme.getFont("default")
}