Skip to content
Permalink
Browse files

[processing] add ui option useCheckBoxes in CheckValidity

  • Loading branch information
arnaud-morvan authored and nyalldawson committed Aug 9, 2017
1 parent 534fe21 commit 53df3699fd2ebab36be9e4dc57c621285f179428
Showing with 5 additions and 0 deletions.
  1. +5 −0 python/plugins/processing/algs/qgis/CheckValidity.py
@@ -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')))

0 comments on commit 53df369

Please sign in to comment.
You can’t perform that action at this time.