Skip to content
Permalink
Browse files

[processing] Add ui option useCheckBoxes in ByLocation algorithms

  • Loading branch information
arnaud-morvan authored and nyalldawson committed Aug 9, 2017
1 parent 53df369 commit b08119bc965bd31735a91dc343382f4df1aac3a3
Showing with 11 additions and 4 deletions.
  1. +11 −4 python/plugins/processing/algs/qgis/SpatialJoin.py
@@ -96,10 +96,17 @@ def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterFeatureSource(self.JOIN,
self.tr('Join layer'),
[QgsProcessing.TypeVectorAnyGeometry]))
self.addParameter(QgsProcessingParameterEnum(self.PREDICATE,
self.tr('Geometric predicate'),
options=[p[1] for p in self.predicates],
allowMultiple=True, defaultValue=[0]))

predicate = QgsProcessingParameterEnum(self.PREDICATE,
self.tr('Geometric predicate'),
options=[p[1] for p in self.predicates],
allowMultiple=True, defaultValue=[0])
predicate.setMetadata({
'widget_wrapper': {
'class': 'processing.gui.wrappers.SelectionWidgetWrapper',
'useCheckBoxes': True,
'columns': 2}})
self.addParameter(predicate)
self.addParameter(QgsProcessingParameterField(self.JOIN_FIELDS,
self.tr('Fields to add (leave empty to use all fields)'),
parentLayerParameterName=self.JOIN,

0 comments on commit b08119b

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