Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[processing] add ui option useCheckBoxes in CheckValidity
- Loading branch information
Showing
with
5 additions
and
0 deletions.
-
+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'))) |
|
|