mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-27 00:07:16 -05:00
[sextante] increase max and min limits for numeric values (fixes #7143
and possible similar issues)
This commit is contained in:
parent
dc0d240dc9
commit
4219eb1dba
@ -36,8 +36,8 @@ class NumberInputPanel(QtGui.QWidget):
|
||||
self.isInteger = isInteger
|
||||
if isInteger:
|
||||
self.spin = QtGui.QSpinBox()
|
||||
self.spin.setMaximum(100000)
|
||||
self.spin.setMinimum(-100000)
|
||||
self.spin.setMaximum(1000000000)
|
||||
self.spin.setMinimum(-1000000000)
|
||||
self.spin.setValue(number)
|
||||
self.horizontalLayout.addWidget(self.spin)
|
||||
self.setLayout(self.horizontalLayout)
|
||||
@ -63,4 +63,4 @@ class NumberInputPanel(QtGui.QWidget):
|
||||
if self.isInteger:
|
||||
return self.spin.value()
|
||||
else:
|
||||
return self.text.text()
|
||||
return self.text.text()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user