Use ContainerPropertyProvider to provide properties for the materials page

Contributes to CURA-342
This commit is contained in:
Arjen Hiemstra 2016-06-30 01:54:58 +02:00
parent 3798a6e26a
commit 419326132f

View file

@ -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" ]
}
} }
} }
} }