[hotfix] adding decimals to AutopickParaBox

This commit is contained in:
Marcel Paffrath 2017-06-01 14:01:43 +02:00
parent eaa4849a20
commit 04304d3db8
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
cf399-dirty eaa4-dirty

View File

@ -1856,6 +1856,8 @@ class AutoPickParaBox(QtGui.QWidget):
box = QtGui.QLineEdit() box = QtGui.QLineEdit()
elif typ == float: elif typ == float:
box = QtGui.QDoubleSpinBox() box = QtGui.QDoubleSpinBox()
box.setDecimals(5)
box.setRange(-10e5, 10e5)
elif typ == int: elif typ == int:
box = QtGui.QSpinBox() box = QtGui.QSpinBox()
elif typ == bool: elif typ == bool:
@ -1946,8 +1948,6 @@ class AutoPickParaBox(QtGui.QWidget):
if type(box) == QtGui.QLineEdit: if type(box) == QtGui.QLineEdit:
box.setText(str(value)) box.setText(str(value))
elif type(box) == QtGui.QSpinBox or type(box) == QtGui.QDoubleSpinBox: elif type(box) == QtGui.QSpinBox or type(box) == QtGui.QDoubleSpinBox:
box.setMaximum(10e7)
box.setMinimum(-10e7)
box.setValue(value) box.setValue(value)
elif type(box) == QtGui.QCheckBox: elif type(box) == QtGui.QCheckBox:
if value == 'True': if value == 'True':