File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
python/plugins/fTools/tools Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ def __init__(self, iface):
48
48
QObject .connect (self .btnUpdate , SIGNAL ("clicked()" ), self .updateLayer )
49
49
QObject .connect (self .btnCanvas , SIGNAL ("clicked()" ), self .updateCanvas )
50
50
QObject .connect (self .chkAlign , SIGNAL ("toggled(bool)" ), self .chkAlignToggled )
51
+ QObject .connect (self .chkLock , SIGNAL ("toggled(bool)" ), self .chkLockToggled )
51
52
self .buttonOk = self .buttonBox_2 .button (QDialogButtonBox .Ok )
52
53
self .setWindowTitle (self .tr ("Vector grid" ))
53
54
self .xMin .setValidator (QDoubleValidator (self .xMin ))
@@ -334,6 +335,10 @@ def outFile(self):
334
335
return
335
336
self .outShape .setText (self .shapefileName )
336
337
338
+ def chkLockToggled (self , checked ):
339
+ if checked :
340
+ self .spnY .setValue (self .spnX .value ())
341
+
337
342
def chkAlignToggled (self ):
338
343
if self .chkAlign .isChecked ():
339
344
self .spnX .setEnabled (False )
You can’t perform that action at this time.
0 commit comments