mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Remove function and property that are only used once.
Contributes to CURA-5786.
This commit is contained in:
parent
059e681de5
commit
2dfd354b25
1 changed files with 2 additions and 6 deletions
|
|
@ -48,9 +48,7 @@ Column
|
||||||
id: estimatedTime
|
id: estimatedTime
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
property var printDuration: PrintInformation.currentPrintTime
|
text: PrintInformation.currentPrintTime.getDisplayString(UM.DurationFormat.Long)
|
||||||
|
|
||||||
text: printDuration.getDisplayString(UM.DurationFormat.Long)
|
|
||||||
source: UM.Theme.getIcon("clock")
|
source: UM.Theme.getIcon("clock")
|
||||||
font: UM.Theme.getFont("small")
|
font: UM.Theme.getFont("small")
|
||||||
}
|
}
|
||||||
|
|
@ -63,7 +61,7 @@ Column
|
||||||
property var printMaterialLengths: PrintInformation.materialLengths
|
property var printMaterialLengths: PrintInformation.materialLengths
|
||||||
property var printMaterialWeights: PrintInformation.materialWeights
|
property var printMaterialWeights: PrintInformation.materialWeights
|
||||||
|
|
||||||
function getText()
|
text:
|
||||||
{
|
{
|
||||||
var totalLengths = 0
|
var totalLengths = 0
|
||||||
var totalWeights = 0
|
var totalWeights = 0
|
||||||
|
|
@ -80,8 +78,6 @@ Column
|
||||||
}
|
}
|
||||||
return totalWeights + "g · " + totalLengths.toFixed(2) + "m"
|
return totalWeights + "g · " + totalLengths.toFixed(2) + "m"
|
||||||
}
|
}
|
||||||
|
|
||||||
text: getText()
|
|
||||||
source: UM.Theme.getIcon("spool")
|
source: UM.Theme.getIcon("spool")
|
||||||
font: UM.Theme.getFont("very_small")
|
font: UM.Theme.getFont("very_small")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue