mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 08:39:01 +08:00
Use ContainerPropertyProvider to provide properties for the materials page
Contributes to CURA-342
This commit is contained in:
parent
3798a6e26a
commit
419326132f
@ -211,16 +211,11 @@ TabView
|
|||||||
suffix: model.unit
|
suffix: model.unit
|
||||||
maximumValue: 99999
|
maximumValue: 99999
|
||||||
decimals: model.unit == "mm" ? 2 : 0
|
decimals: model.unit == "mm" ? 2 : 0
|
||||||
|
|
||||||
|
onEditingFinished: provider.setPropertyValue("value", value)
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.SettingPropertyProvider
|
UM.ContainerPropertyProvider { id: provider; containerId: base.containerId; watchedProperties: [ "value" ]; key: model.key }
|
||||||
{
|
|
||||||
id: provider
|
|
||||||
|
|
||||||
containerStackId: Cura.MachineManager.activeMachineId
|
|
||||||
key: model.key
|
|
||||||
watchedProperties: [ "value" ]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user