Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix indentation
  • Loading branch information
nyalldawson committed Jun 7, 2016
1 parent 179a92c commit fbc5e0f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion python/plugins/processing/core/parameters.py
Expand Up @@ -228,7 +228,6 @@ def getAsScriptCode(self):
return '##' + self.name + '=' + param_type



class ParameterPoint(Parameter):

def __init__(self, name='', description='', default=None, optional=False):
Expand Down Expand Up @@ -846,6 +845,7 @@ def getAsScriptCode(self):


class ParameterTableField(Parameter):

"""A parameter representing a table field.
Its value is a string that represents the name of the field.
Expand Down Expand Up @@ -899,6 +899,7 @@ def getAsScriptCode(self):


class ParameterTableMultipleField(Parameter):

"""A parameter representing several table fields.
Its value is a string with items separated by semicolons, each of
which represents the name of each field.
Expand Down
1 change: 1 addition & 0 deletions python/plugins/processing/gui/ListMultiselectWidget.py
Expand Up @@ -27,6 +27,7 @@


class ListMultiSelectWidget(QGroupBox):

"""Widget to show two parallel lists and move elements between the two
usage from code:
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/gui/ParametersPanel.py
Expand Up @@ -457,8 +457,8 @@ def updateDependentFields(self):
not isinstance(child, ParameterTableMultipleField)):
widget.addItem(self.tr('[not set]'))
widget.addItems(
self.getFields(layer, self.alg.getParameterFromName(
child.name).datatype))
self.getFields(layer, self.alg.getParameterFromName(
child.name).datatype))
if isinstance(child, OutputVector):
child.base_layer = layer

Expand Down
Expand Up @@ -127,7 +127,7 @@ def setupUi(self):
self.horizontalLayoutParent.addWidget(self.state)
self.verticalLayout.addLayout(self.horizontalLayoutParent)
elif self.paramType in (
ModelerParameterDefinitionDialog.PARAMETER_TABLE_FIELD,
ModelerParameterDefinitionDialog.PARAMETER_TABLE_FIELD,
ModelerParameterDefinitionDialog.PARAMETER_TABLE_MULTIPLE_FIELD)\
or isinstance(self.param, (ParameterTableField,
ParameterTableMultipleField)):
Expand All @@ -146,7 +146,7 @@ def setupUi(self):

# add the datatype selector
self.horizontalLayoutDatatype.addWidget(QLabel(self.tr('Allowed '
'data type')))
'data type')))
self.datatypeCombo = QComboBox()
self.datatypeCombo.addItem(self.tr('Any'), -1)
self.datatypeCombo.addItem(self.tr('Number'), 0)
Expand Down
1 change: 1 addition & 0 deletions python/plugins/processing/tests/ParametersTest.py
Expand Up @@ -435,6 +435,7 @@ def testOptional(self):


class ParameterTableMultipleFieldTest(unittest.TestCase):

def setUp(self):
self.parent_name = 'test_parent_layer'
test_data = points2()
Expand Down

0 comments on commit fbc5e0f

Please sign in to comment.