27 return QStringLiteral(
"expression" );
32 return QObject::tr(
"Custom Expression" );
45 return mExpression.evaluate( &expContext ).toString();
55 auto res = std::make_unique< QgsExpressionBasedNumericFormat >();
56 res->mExpression =
QgsExpression(
configuration.value( QStringLiteral(
"expression" ), QStringLiteral(
"@value" ) ).toString() );
63 res.insert( QStringLiteral(
"expression" ), mExpression.expression() );
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
void setOriginalValueVariable(const QVariant &value)
Sets the original value variable value for the context.
Handles parsing and evaluation of expressions (formerly called "search strings").
A context for numeric formats.
QgsExpressionContext expressionContext() const
Returns the expression context to use when evaluating QgsExpressions.
A container for the context for various read/write operations on objects.