Skip to content
Permalink
Browse files

Fix QgsProcessingParameterNumber docstring example

(cherry picked from commit 66011b2)
  • Loading branch information
SrNetoChan authored and nyalldawson committed Sep 25, 2020
1 parent c763387 commit 279c499bb14958b9e56f6eea14f9af442d9134f8
@@ -1954,7 +1954,7 @@ shown in the parameter's widget can be specified by setting the parameter's meta

.. code-block:: python

param = QgsProcessingParameterNumber( 'VAL', 'Threshold', type=QgsProcessingParameter.Double)
param = QgsProcessingParameterNumber( 'VAL', 'Threshold', type=QgsProcessingParameterNumber.Double)
# only show two decimal places in parameter's widgets, not 6:
param.setMetadata( {'widget_wrapper':
{ 'decimals': 2 }
@@ -1947,7 +1947,7 @@ class CORE_EXPORT QgsProcessingParameterMultipleLayers : public QgsProcessingPar
* shown in the parameter's widget can be specified by setting the parameter's metadata. For example:
*
* \code{.py}
* param = QgsProcessingParameterNumber( 'VAL', 'Threshold', type=QgsProcessingParameter.Double)
* param = QgsProcessingParameterNumber( 'VAL', 'Threshold', type=QgsProcessingParameterNumber.Double)
* # only show two decimal places in parameter's widgets, not 6:
* param.setMetadata( {'widget_wrapper':
* { 'decimals': 2 }

0 comments on commit 279c499

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