mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
[processing] if min and max values not set use redefined ones
This commit is contained in:
parent
05a94811ca
commit
3833ddf876
@ -36,8 +36,14 @@ class NumberInputPanel(QtGui.QWidget):
|
||||
self.isInteger = isInteger
|
||||
if isInteger:
|
||||
self.spin = QtGui.QSpinBox()
|
||||
if maximum:
|
||||
self.spin.setMaximum(maximum)
|
||||
else:
|
||||
self.spin.setMaximum(99999999)
|
||||
if minimum:
|
||||
self.spin.setMinimum(minimum)
|
||||
else:
|
||||
self.spin.setMinimum(-99999999)
|
||||
self.spin.setValue(number)
|
||||
self.horizontalLayout.addWidget(self.spin)
|
||||
self.setLayout(self.horizontalLayout)
|
||||
|
Loading…
x
Reference in New Issue
Block a user