22using namespace Qt::StringLiterals;
31 return u
"expression"_s;
36 return QObject::tr(
"Custom Expression" );
49 return mExpression.evaluate( &expContext ).toString();
59 auto res = std::make_unique< QgsExpressionBasedNumericFormat >();
67 res.insert( u
"expression"_s, 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.