Skip to content

Commit

Permalink
changed miinor bug in spinner when using a integer numerical value
Browse files Browse the repository at this point in the history
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@117 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf committed Apr 18, 2012
1 parent d7d363e commit da6e1f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/sextante/gui/NumberInputPanel.py
Expand Up @@ -13,9 +13,9 @@ def __init__(self, number, isInteger):
self.isInteger = isInteger
if isInteger:
self.spin = QtGui.QSpinBox()
self.spin.setValue(number)
self.spin.setMaximum(100000)
self.spin.setMinimum(-100000)
self.spin.setValue(number)
self.horizontalLayout.addWidget(self.spin)
self.setLayout(self.horizontalLayout)
else:
Expand Down
2 changes: 0 additions & 2 deletions src/sextante/gui/SextanteToolbox.py
Expand Up @@ -106,8 +106,6 @@ def executeAlgorithm(self):
dlg = alg.getCustomParametersDialog()
if not dlg:
dlg = ParametersDialog(alg)
#dlg.setWindowModality(Qt.WindowModal)
#dlg.setWindowFlags(dlg.windowFlags() | Qt.WindowStaysOnTopHint)
canvas = QGisLayers.iface.mapCanvas()
prevMapTool = canvas.mapTool()
dlg.show()
Expand Down

0 comments on commit da6e1f6

Please sign in to comment.