Skip to content

Commit c605c67

Browse files
committed
[processing] some minor changes for batch processing interface
1 parent d33e338 commit c605c67

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

python/plugins/processing/gui/BatchInputSelectionPanel.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(self, param, row, col, dialog):
6262
self.text.setObjectName('text')
6363
self.text.setMinimumWidth(300)
6464
self.setValue('')
65-
self.text.editingFinished.connect(self.on_text_EditingFinished)
65+
self.text.editingFinished.connect(self.textEditingFinished)
6666
self.text.setSizePolicy(QSizePolicy.Expanding,
6767
QSizePolicy.Expanding)
6868
self.horizontalLayout.addWidget(self.text)
@@ -159,7 +159,7 @@ def showFileSelectionDialog(self):
159159
self._table().cellWidget(i + self.row,
160160
self.col).setValue(f)
161161

162-
def on_text_EditingFinished(self):
162+
def textEditingFinished(self):
163163
self._value = self.text.text()
164164
self.valueChanged.emit()
165165

@@ -170,6 +170,6 @@ def setValue(self, value):
170170
self._value = value
171171
if isinstance(value, QgsMapLayer):
172172
self.text.setText(value.name())
173-
else: # should be basestring
173+
else: #  should be basestring
174174
self.text.setText(value)
175175
self.valueChanged.emit()

python/plugins/processing/gui/wrappers.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,7 @@ def createWidget(self):
399399
opts = [getExtendedLayerName(opt) for opt in options]
400400
return MultipleInputPanel(opts)
401401
elif self.dialogType == DIALOG_BATCH:
402-
widget = BatchInputSelectionPanel(self.param, self.row, self.col, self.dialog)
403-
widget.textChanged
404-
return widget
402+
return BatchInputSelectionPanel(self.param, self.row, self.col, self.dialog)
405403
else:
406404
options = [self.dialog.resolveValueDescription(opt) for opt in self._getOptions()]
407405
return MultipleInputPanel(options)

0 commit comments

Comments
 (0)