Skip to content

Commit

Permalink
API tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 12, 2019
1 parent 43512d5 commit 493aed5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/core/processing/qgsprocessingalgorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down

0 comments on commit 493aed5

Please sign in to comment.