Skip to content

Commit

Permalink
[processing] add ui option useCheckBoxes in CheckValidity
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan authored and nyalldawson committed Sep 15, 2017
1 parent 534fe21 commit 53df369
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/plugins/processing/algs/qgis/CheckValidity.py
Expand Up @@ -80,6 +80,11 @@ def initAlgorithm(self, config=None):
self.tr('Input layer')))
self.addParameter(QgsProcessingParameterEnum(self.METHOD,
self.tr('Method'), self.methods))
self.parameterDefinition(self.METHOD).setMetadata({
'widget_wrapper': {
'class': 'processing.gui.wrappers.SelectionWidgetWrapper',
'useCheckBoxes': True,
'columns': 3}})

self.addParameter(QgsProcessingParameterFeatureSink(self.VALID_OUTPUT, self.tr('Valid output'), QgsProcessing.TypeVectorAnyGeometry, '', True))
self.addOutput(QgsProcessingOutputNumber(self.VALID_COUNT, self.tr('Count of valid features')))
Expand Down

0 comments on commit 53df369

Please sign in to comment.