Disable stepSize in all SpinBoxes where stepSize is a non integer value

This should be enabled. However this is a feature gap of QtControls 2.x
This commit is contained in:
casper 2022-02-08 12:01:42 +01:00
parent 50820048f7
commit a0e5d66299

View File

@ -243,7 +243,7 @@ Item
value: properties.density value: properties.density
decimals: 2 decimals: 2
suffix: " g/cm³" suffix: " g/cm³"
stepSize: 0.01 // spinboxes can only cointain reals, a non-integer value can not be entered as the step size // stepSize: 0.01 // spinboxes can only cointain reals, a non-integer value can not be entered as the step size
onEditingFinished: base.setMetaDataEntry("properties/density", properties.density, value) onEditingFinished: base.setMetaDataEntry("properties/density", properties.density, value)
onValueChanged: updateCostPerMeter() onValueChanged: updateCostPerMeter()
@ -258,7 +258,7 @@ Item
value: properties.diameter value: properties.diameter
decimals: 2 decimals: 2
suffix: " mm" suffix: " mm"
stepSize: 0.01 // spinboxes can only cointain reals, a non-integer value can not be entered as the step size // stepSize: 0.01 // spinboxes can only cointain reals, a non-integer value can not be entered as the step size
onEditingFinished: onEditingFinished:
{ {