mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:38:58 +08:00
Disable "Print Settings" fields for read-only materials
This commit is contained in:
parent
eae5f4d57a
commit
8aa08944f2
@ -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,6 +601,7 @@ 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: materialPropertyProvider.setPropertyValue("value", value)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user