mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-07 00:03:52 -05:00
Merge pull request #2705 from SebDieBln/FixVectorGridLock
[fTools] restore 1:1 ratio when checking 'Lock 1:1 ratio' checkbox
This commit is contained in:
commit
beaa45e557
@ -48,6 +48,7 @@ class Dialog(QDialog, Ui_Dialog):
|
|||||||
QObject.connect(self.btnUpdate, SIGNAL("clicked()"), self.updateLayer)
|
QObject.connect(self.btnUpdate, SIGNAL("clicked()"), self.updateLayer)
|
||||||
QObject.connect(self.btnCanvas, SIGNAL("clicked()"), self.updateCanvas)
|
QObject.connect(self.btnCanvas, SIGNAL("clicked()"), self.updateCanvas)
|
||||||
QObject.connect(self.chkAlign, SIGNAL("toggled(bool)"), self.chkAlignToggled)
|
QObject.connect(self.chkAlign, SIGNAL("toggled(bool)"), self.chkAlignToggled)
|
||||||
|
QObject.connect(self.chkLock, SIGNAL("toggled(bool)"), self.chkLockToggled)
|
||||||
self.buttonOk = self.buttonBox_2.button(QDialogButtonBox.Ok)
|
self.buttonOk = self.buttonBox_2.button(QDialogButtonBox.Ok)
|
||||||
self.setWindowTitle(self.tr("Vector grid"))
|
self.setWindowTitle(self.tr("Vector grid"))
|
||||||
self.xMin.setValidator(QDoubleValidator(self.xMin))
|
self.xMin.setValidator(QDoubleValidator(self.xMin))
|
||||||
@ -334,6 +335,10 @@ class Dialog(QDialog, Ui_Dialog):
|
|||||||
return
|
return
|
||||||
self.outShape.setText(self.shapefileName)
|
self.outShape.setText(self.shapefileName)
|
||||||
|
|
||||||
|
def chkLockToggled(self, checked):
|
||||||
|
if checked:
|
||||||
|
self.spnY.setValue(self.spnX.value())
|
||||||
|
|
||||||
def chkAlignToggled(self):
|
def chkAlignToggled(self):
|
||||||
if self.chkAlign.isChecked():
|
if self.chkAlign.isChecked():
|
||||||
self.spnX.setEnabled(False)
|
self.spnX.setEnabled(False)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user