mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Merge branch 'fix_material_print_settings' of https://github.com/fieldOfView/Cura into 5.0
This commit is contained in:
commit
4819b2484e
2 changed files with 6 additions and 1 deletions
|
|
@ -38,6 +38,7 @@ UM.TooltipArea
|
||||||
|
|
||||||
property alias textField: textFieldWithUnit
|
property alias textField: textFieldWithUnit
|
||||||
property alias valueText: textFieldWithUnit.text
|
property alias valueText: textFieldWithUnit.text
|
||||||
|
property alias enabled: textFieldWithUnit.enabled
|
||||||
property alias editingFinishedFunction: textFieldWithUnit.editingFinishedFunction
|
property alias editingFinishedFunction: textFieldWithUnit.editingFinishedFunction
|
||||||
|
|
||||||
property string tooltipText: propertyProvider.properties.description ? propertyProvider.properties.description : ""
|
property string tooltipText: propertyProvider.properties.description ? propertyProvider.properties.description : ""
|
||||||
|
|
|
||||||
|
|
@ -601,8 +601,12 @@ Item
|
||||||
maximum: 99999
|
maximum: 99999
|
||||||
unitText: model.unit
|
unitText: model.unit
|
||||||
decimals: model.unit == "mm" ? 2 : 0
|
decimals: model.unit == "mm" ? 2 : 0
|
||||||
|
enabled: base.editingEnabled
|
||||||
|
|
||||||
editingFinishedFunction: materialPropertyProvider.setPropertyValue("value", value)
|
editingFinishedFunction: function()
|
||||||
|
{
|
||||||
|
materialPropertyProvider.setPropertyValue("value", parseFloat(valueText.replace(",", ".")))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.ContainerPropertyProvider
|
UM.ContainerPropertyProvider
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue