Set stepSize property on SpinBox that reflects its decimals

CURA-9201
This commit is contained in:
c.lamboo 2022-05-02 16:51:07 +02:00
parent cb359cdfe1
commit 4bb72cdd1a

View file

@ -601,6 +601,7 @@ Item
suffix: " " + model.unit suffix: " " + model.unit
to: 99999 to: 99999
decimals: model.unit == "mm" ? 2 : 0 decimals: model.unit == "mm" ? 2 : 0
stepSize: Math.pow(10, -decimals)
onEditingFinished: materialPropertyProvider.setPropertyValue("value", value) onEditingFinished: materialPropertyProvider.setPropertyValue("value", value)
} }