Skip to content

Commit 493aed5

Browse files
committed
API tweak
1 parent 43512d5 commit 493aed5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

python/core/auto_generated/processing/models/qgsprocessingmodelalgorithm.sip.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ Constructor for QgsProcessingModelAlgorithm.
5656

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

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

6062
void setName( const QString &name );
6163
%Docstring

python/core/auto_generated/processing/qgsprocessingalgorithm.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ The base class implementation returns None, which indicates that an autogenerate
367367
parameters widget should be used.
368368
%End
369369

370-
QgsExpressionContext createExpressionContext( const QVariantMap &parameters,
370+
virtual QgsExpressionContext createExpressionContext( const QVariantMap &parameters,
371371
QgsProcessingContext &context, QgsProcessingFeatureSource *source = 0 ) const;
372372
%Docstring
373373
Creates an expression context relating to the algorithm. This can be called by algorithms

src/core/processing/qgsprocessingalgorithm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ class CORE_EXPORT QgsProcessingAlgorithm
376376
* Optionally, a \a source can be specified which will be used to populate the context if it
377377
* implements the QgsExpressionContextGenerator interface.
378378
*/
379-
QgsExpressionContext createExpressionContext( const QVariantMap &parameters,
379+
virtual QgsExpressionContext createExpressionContext( const QVariantMap &parameters,
380380
QgsProcessingContext &context, QgsProcessingFeatureSource *source = nullptr ) const;
381381

382382
/**

0 commit comments

Comments
 (0)