Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Softcoded max and min integer values for spin boxes
git-svn-id: http://svn.osgeo.org/qgis/trunk@2718 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
sbr00pwb committed Jan 26, 2005
1 parent 00c0e8d commit 880a3e4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/openmodeller/openmodellergui.cpp
Expand Up @@ -40,6 +40,7 @@
#include <qpushbutton.h>
#include <imagewriter.h>
#include <qpixmap.h>

//
//openmodeller includes
#ifdef WIN32
Expand All @@ -61,7 +62,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <iostream>

#include <climits>


OpenModellerGui::OpenModellerGui( QWidget* parent , const char* name , bool modal , WFlags fl )
Expand Down Expand Up @@ -226,15 +227,15 @@ void OpenModellerGui::getParameterList( QString theAlgorithmNameQString )
}
else
{
mySpinBox->setMinValue(-32767);
mySpinBox->setMinValue(INT_MIN);
}
if (!myParameter->has_max==0)
{
mySpinBox->setMaxValue(myParameter->max);
}
else
{
mySpinBox->setMaxValue(32767);
mySpinBox->setMaxValue(INT_MAX);
}

//Set value to previous otherwise to default
Expand Down

0 comments on commit 880a3e4

Please sign in to comment.