mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-30 11:22:01 +08:00
Set stepSize
property on SpinBox
that reflects its decimals
CURA-9201
This commit is contained in:
parent
cb359cdfe1
commit
4bb72cdd1a
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user