mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 21:58:01 -06:00
Remove function to reintroduce binding.
Also force max width to integer value and comment why there is a plain value like 0.7 in the code. part of CURA-6862
This commit is contained in:
parent
ca21268a12
commit
71701f15cf
1 changed files with 2 additions and 7 deletions
|
@ -88,20 +88,15 @@ Item
|
|||
Label
|
||||
{
|
||||
id: textLabel
|
||||
text: qualityName()
|
||||
text: Cura.MachineManager.activeQualityDisplayNameMap["main"]
|
||||
font: UM.Theme.getFont("default")
|
||||
color: UM.Theme.getColor("text")
|
||||
Layout.margins: 0
|
||||
Layout.maximumWidth: parent.width * 0.7
|
||||
Layout.maximumWidth: Math.floor(parent.width * 0.7) // Always leave >= 30% for the rest of the row.
|
||||
height: contentHeight
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
renderType: Text.NativeRendering
|
||||
elide: Text.ElideRight
|
||||
|
||||
function qualityName() {
|
||||
var resultMap = Cura.MachineManager.activeQualityDisplayNameMap
|
||||
return resultMap["main"]
|
||||
}
|
||||
}
|
||||
|
||||
Label
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue