Skip to content

Commit e70b152

Browse files
author
Hugo Mercier
committed
Update QgsExpression's SIP
1 parent 17b6f04 commit e70b152

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

python/core/qgsexpression.sip

+11-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ public:
4343
//! Return the number used for $rownum special column
4444
int currentRowNumber();
4545

46+
//! Assign a special column
47+
static void setSpecialColumn( const QString& name, QVariant value );
48+
//! Unset a special column
49+
static void unsetSpecialColumn( const QString& name );
50+
//! Return the value of the given special column or a null QVariant if undefined
51+
static QVariant specialColumn( const QString& name );
52+
4653
//! Return the parsed expression as a string - useful for debugging
4754
QString dump() const;
4855

@@ -57,10 +64,13 @@ public:
5764
Additional substitutions can be passed through the substitutionMap
5865
parameter
5966
*/
60-
static QString replaceExpressionText( QString action, QgsFeature &feat,
67+
static QString replaceExpressionText( QString action, QgsFeature* feat,
6168
QgsVectorLayer* layer,
6269
const QMap<QString, QVariant> *substitutionMap = 0);
6370

71+
static QString replaceExpressionText( QString action, QgsFeature& feat,
72+
QgsVectorLayer* layer,
73+
const QMap<QString, QVariant> *substitutionMap = 0 );
6474
//
6575

6676
enum UnaryOperator

0 commit comments

Comments
 (0)