From 689966ce5ae39f662161f8ceda1b407be62fbeb7 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Sat, 15 Jul 2017 19:22:40 +1000 Subject: [PATCH] Typo --- doc/porting_processing.dox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/porting_processing.dox b/doc/porting_processing.dox index f70a4e8ae23..16ca7ad9cff 100644 --- a/doc/porting_processing.dox +++ b/doc/porting_processing.dox @@ -13,7 +13,7 @@ - ParameterField has been replaced with QgsProcessingParameterField. - When constructing, QgsProcessingParameterField uses QgsProcessingParameterField.DataType to specify valid data types. The parent layer for the field should be indicated by passing the parent layer parameter name as the parentLayerParameterName argument in the constructor. - - Retrieving field parameter values should be done with self.parameterAsString( parameters, PARAM_NAME, context) for single field values or self.parameterAsFields(parameters, PARAM_NAME, context) if allowMultiple was set to True when the parameter was constructed. parameterAsFields will return a list of all select field names, or an empty list if no fields were selected. + - Retrieving field parameter values should be done with self.parameterAsString( parameters, PARAM_NAME, context) for single field values or self.parameterAsFields(parameters, PARAM_NAME, context) if allowMultiple was set to True when the parameter was constructed. parameterAsFields will return a list of all selected field names, or an empty list if no fields were selected. Map parameters from old classes to new classes - ParameterNumber -> QgsProcessingParameterNumber