Merge branch 'master' of github.com:Ultimaker/Cura

This commit is contained in:
Diego Prado Gesto 2018-05-02 13:46:30 +02:00
commit 39c313b8e2

View File

@ -40,21 +40,9 @@ Item
{ {
anchors.top: packageName.bottom anchors.top: packageName.bottom
width: parent.width width: parent.width
text: text: model.description
{ maximumLineCount: 3
if (model.description.length > 235) elide: Text.ElideRight
{
if (model.description.substring(234, 235) == " ")
{
return model.description.substring(0, 234) + "..."
}
else
{
return model.description.substring(0, 235) + "..."
}
}
return model.description
}
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
color: UM.Theme.getColor("text") color: UM.Theme.getColor("text")
font: UM.Theme.getFont("default") font: UM.Theme.getFont("default")