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