Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc.lamboo <casperlamboo@gmail.com>2022-05-02 17:51:07 +0300
committerc.lamboo <casperlamboo@gmail.com>2022-05-02 17:51:07 +0300
commit4bb72cdd1a33f0bc52b0515654e9775f953da10c (patch)
tree961d33378d89190d535ce168fea4f74ca139ff56 /resources/qml
parentcb359cdfe1100eb36598b99cc1da7944cc193a5b (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.qml1
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)
}