add_validators.diff

proposed patch - Alexander Bruy, 2010-04-14 05:48 AM

Download (1.36 KB)

View differences:

python/plugins/fTools/tools/doGeoprocessing.py (working copy)
12 12
    QDialog.__init__( self )
13 13
    self.iface = iface
14 14
    self.setupUi( self )
15
    self.param.setValidator(QDoubleValidator(self.param))
15 16
    self.myFunction = function
16 17
    QObject.connect( self.btnBrowse, SIGNAL( "clicked()" ), self.outFile )
17 18
    QObject.connect( self.inShapeA, SIGNAL( "currentIndexChanged(QString)" ), self.checkA )
python/plugins/fTools/tools/doRegPoints.py (working copy)
44 44
        QDialog.__init__(self)
45 45
        self.iface = iface
46 46
        self.setupUi(self)
47
        self.xMin.setValidator(QDoubleValidator(self.xMin))
48
        self.xMax.setValidator(QDoubleValidator(self.xMax))
49
        self.yMin.setValidator(QDoubleValidator(self.yMin))
50
        self.yMax.setValidator(QDoubleValidator(self.yMax))
47 51
        QObject.connect(self.toolOut, SIGNAL("clicked()"), self.outFile)
48 52
        self.setWindowTitle( self.tr("Regular points") )
49 53
        self.progressBar.setValue(0)