mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
[processing] some minor changes for batch processing interface
This commit is contained in:
parent
d33e33874a
commit
c605c67b8c
@ -62,7 +62,7 @@ class BatchInputSelectionPanel(QWidget):
|
|||||||
self.text.setObjectName('text')
|
self.text.setObjectName('text')
|
||||||
self.text.setMinimumWidth(300)
|
self.text.setMinimumWidth(300)
|
||||||
self.setValue('')
|
self.setValue('')
|
||||||
self.text.editingFinished.connect(self.on_text_EditingFinished)
|
self.text.editingFinished.connect(self.textEditingFinished)
|
||||||
self.text.setSizePolicy(QSizePolicy.Expanding,
|
self.text.setSizePolicy(QSizePolicy.Expanding,
|
||||||
QSizePolicy.Expanding)
|
QSizePolicy.Expanding)
|
||||||
self.horizontalLayout.addWidget(self.text)
|
self.horizontalLayout.addWidget(self.text)
|
||||||
@ -159,7 +159,7 @@ class BatchInputSelectionPanel(QWidget):
|
|||||||
self._table().cellWidget(i + self.row,
|
self._table().cellWidget(i + self.row,
|
||||||
self.col).setValue(f)
|
self.col).setValue(f)
|
||||||
|
|
||||||
def on_text_EditingFinished(self):
|
def textEditingFinished(self):
|
||||||
self._value = self.text.text()
|
self._value = self.text.text()
|
||||||
self.valueChanged.emit()
|
self.valueChanged.emit()
|
||||||
|
|
||||||
@ -170,6 +170,6 @@ class BatchInputSelectionPanel(QWidget):
|
|||||||
self._value = value
|
self._value = value
|
||||||
if isinstance(value, QgsMapLayer):
|
if isinstance(value, QgsMapLayer):
|
||||||
self.text.setText(value.name())
|
self.text.setText(value.name())
|
||||||
else: # should be basestring
|
else: # should be basestring
|
||||||
self.text.setText(value)
|
self.text.setText(value)
|
||||||
self.valueChanged.emit()
|
self.valueChanged.emit()
|
||||||
|
@ -399,9 +399,7 @@ class MultipleInputWidgetWrapper(WidgetWrapper):
|
|||||||
opts = [getExtendedLayerName(opt) for opt in options]
|
opts = [getExtendedLayerName(opt) for opt in options]
|
||||||
return MultipleInputPanel(opts)
|
return MultipleInputPanel(opts)
|
||||||
elif self.dialogType == DIALOG_BATCH:
|
elif self.dialogType == DIALOG_BATCH:
|
||||||
widget = BatchInputSelectionPanel(self.param, self.row, self.col, self.dialog)
|
return BatchInputSelectionPanel(self.param, self.row, self.col, self.dialog)
|
||||||
widget.textChanged
|
|
||||||
return widget
|
|
||||||
else:
|
else:
|
||||||
options = [self.dialog.resolveValueDescription(opt) for opt in self._getOptions()]
|
options = [self.dialog.resolveValueDescription(opt) for opt in self._getOptions()]
|
||||||
return MultipleInputPanel(options)
|
return MultipleInputPanel(options)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user