64 void setExpressionDialogTitle(
const QString &title );
77 void setMultiLine(
bool multiLine );
86 QString expectedOutputFormat()
const;
94 void setExpectedOutputFormat(
const QString &expected );
116 QString expression()
const;
123 bool isValidExpression( QString *expressionError
SIP_OUT =
nullptr )
const;
148 void setExpression(
const QString &expression );
151 void changeEvent( QEvent *event )
override;
156 void expressionEdited(
const QString &expression );
157 void expressionEdited();
160 void editExpression();
167 void updateLineEditStyle(
const QString &expression = QString() );
172 QToolButton *mButton =
nullptr;
173 QString mExpressionDialogTitle;
174 std::unique_ptr<QgsDistanceArea> mDa;
178 QString mExpectedOutputFormat;
180 bool isExpressionValid(
const QString &expressionStr );
182 friend class TestQgsFieldExpressionWidget;
Abstract interface for generating an expression context.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...