mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Use ContainerPropertyProvider to provide properties for the materials page
Contributes to CURA-342
This commit is contained in:
parent
3798a6e26a
commit
419326132f
1 changed files with 3 additions and 8 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue