diff options
author | c.lamboo <casperlamboo@gmail.com> | 2022-05-02 17:51:07 +0300 |
---|---|---|
committer | c.lamboo <casperlamboo@gmail.com> | 2022-05-02 17:51:07 +0300 |
commit | 4bb72cdd1a33f0bc52b0515654e9775f953da10c (patch) | |
tree | 961d33378d89190d535ce168fea4f74ca139ff56 /resources/qml | |
parent | cb359cdfe1100eb36598b99cc1da7944cc193a5b (diff) |
Set `stepSize` property on `SpinBox` that reflects its `decimals`
CURA-9201
Diffstat (limited to 'resources/qml')
-rw-r--r-- | resources/qml/Preferences/Materials/MaterialsView.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/resources/qml/Preferences/Materials/MaterialsView.qml b/resources/qml/Preferences/Materials/MaterialsView.qml index b033f755cf..77761f0c9e 100644 --- a/resources/qml/Preferences/Materials/MaterialsView.qml +++ b/resources/qml/Preferences/Materials/MaterialsView.qml @@ -601,6 +601,7 @@ Item suffix: " " + model.unit to: 99999 decimals: model.unit == "mm" ? 2 : 0 + stepSize: Math.pow(10, -decimals) onEditingFinished: materialPropertyProvider.setPropertyValue("value", value) } |