Skip to content

Commit

Permalink
[processing] some minor changes for batch processing interface
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Oct 5, 2016
1 parent d33e338 commit c605c67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/gui/BatchInputSelectionPanel.py
Expand Up @@ -62,7 +62,7 @@ def __init__(self, param, row, col, dialog):
self.text.setObjectName('text')
self.text.setMinimumWidth(300)
self.setValue('')
self.text.editingFinished.connect(self.on_text_EditingFinished)
self.text.editingFinished.connect(self.textEditingFinished)
self.text.setSizePolicy(QSizePolicy.Expanding,
QSizePolicy.Expanding)
self.horizontalLayout.addWidget(self.text)
Expand Down Expand Up @@ -159,7 +159,7 @@ def showFileSelectionDialog(self):
self._table().cellWidget(i + self.row,
self.col).setValue(f)

def on_text_EditingFinished(self):
def textEditingFinished(self):
self._value = self.text.text()
self.valueChanged.emit()

Expand All @@ -170,6 +170,6 @@ def setValue(self, value):
self._value = value
if isinstance(value, QgsMapLayer):
self.text.setText(value.name())
else: # should be basestring
else: #  should be basestring
self.text.setText(value)
self.valueChanged.emit()
4 changes: 1 addition & 3 deletions python/plugins/processing/gui/wrappers.py
Expand Up @@ -399,9 +399,7 @@ def createWidget(self):
opts = [getExtendedLayerName(opt) for opt in options]
return MultipleInputPanel(opts)
elif self.dialogType == DIALOG_BATCH:
widget = BatchInputSelectionPanel(self.param, self.row, self.col, self.dialog)
widget.textChanged
return widget
return BatchInputSelectionPanel(self.param, self.row, self.col, self.dialog)
else:
options = [self.dialog.resolveValueDescription(opt) for opt in self._getOptions()]
return MultipleInputPanel(options)
Expand Down

0 comments on commit c605c67

Please sign in to comment.