18#include "moc_qgsnumericformat.cpp"
27#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
28 mThousandsSep = l.groupSeparator();
29 mDecimalSep = l.decimalPoint();
30 mPercent = l.percent();
31 mZeroDigit = l.zeroDigit();
32 mNegativeSign = l.negativeSign();
33 mPositiveSign = l.positiveSign();
34 mExponential = l.exponential();
39 mThousandsSep = l.groupSeparator().at( 0 );
40 mDecimalSep = l.decimalPoint().at( 0 );
41 mPercent = l.percent().at( 0 );
42 mZeroDigit = l.zeroDigit().at( 0 );
43 mNegativeSign = l.negativeSign().at( 0 );
44 mPositiveSign = l.positiveSign().at( 0 );
45 mExponential = l.exponential().at( 0 );
51 return mExpressionContext;
56 mExpressionContext = context;
66 return 1234.56789123456;
73 element.appendChild( configElement );
74 element.setAttribute( QStringLiteral(
"id" ),
id() );
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
void setExpressionContext(const QgsExpressionContext &context)
Sets the expression context to use when evaluating QgsExpressions.
QgsNumericFormatContext()
Constructor for QgsNumericFormatContext.
QgsExpressionContext expressionContext() const
Returns the expression context to use when evaluating QgsExpressions.
The class is used as a container of context for various read/write operations on other objects.
static QDomElement writeVariant(const QVariant &value, QDomDocument &doc)
Write a QVariant to a QDomElement.