Skip to content
Permalink
Browse files

Add QString operator to QgsExpression

  • Loading branch information
m-kuhn committed Nov 22, 2017
1 parent 58bfbd5 commit 7d92641700935b81934ffdae7a3ca3740b343479
@@ -98,6 +98,7 @@ Implicit sharing was added in 2.14
%End



QgsExpression();
%Docstring
Create an empty expression.
@@ -218,6 +218,11 @@ QgsExpression &QgsExpression::operator=( const QgsExpression &other )
return *this;
}

QgsExpression::operator QString() const
{
return d->mExp;
}

QgsExpression::QgsExpression()
: d( new QgsExpressionPrivate )
{
@@ -137,6 +137,13 @@ class CORE_EXPORT QgsExpression
*/
QgsExpression &operator=( const QgsExpression &other );

/**
* Automatically convert this expression to a string where requested.
*
* \since QGIS 3.0
*/
operator QString() const SIP_SKIP;

/**
* Create an empty expression.
*

0 comments on commit 7d92641

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