Skip to content
Permalink
Browse files

API tweak

  • Loading branch information
nyalldawson committed Feb 12, 2019
1 parent 43512d5 commit 493aed58fb569019017c66d5a617a29e4b4715d8
@@ -56,6 +56,8 @@ Constructor for QgsProcessingModelAlgorithm.

virtual QString asPythonCommand( const QVariantMap &parameters, QgsProcessingContext &context ) const;

virtual QgsExpressionContext createExpressionContext( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeatureSource *source = 0 ) const;


void setName( const QString &name );
%Docstring
@@ -367,7 +367,7 @@ The base class implementation returns None, which indicates that an autogenerate
parameters widget should be used.
%End

QgsExpressionContext createExpressionContext( const QVariantMap &parameters,
virtual QgsExpressionContext createExpressionContext( const QVariantMap &parameters,
QgsProcessingContext &context, QgsProcessingFeatureSource *source = 0 ) const;
%Docstring
Creates an expression context relating to the algorithm. This can be called by algorithms
@@ -376,7 +376,7 @@ class CORE_EXPORT QgsProcessingAlgorithm
* Optionally, a \a source can be specified which will be used to populate the context if it
* implements the QgsExpressionContextGenerator interface.
*/
QgsExpressionContext createExpressionContext( const QVariantMap &parameters,
virtual QgsExpressionContext createExpressionContext( const QVariantMap &parameters,
QgsProcessingContext &context, QgsProcessingFeatureSource *source = nullptr ) const;

/**

0 comments on commit 493aed5

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