65 void setExpressionDialogTitle(
const QString &title );
78 void setMultiLine(
bool multiLine );
87 QString expectedOutputFormat()
const;
95 void setExpectedOutputFormat(
const QString &expected );
117 QString expression()
const;
124 bool isValidExpression( QString *expressionError
SIP_OUT =
nullptr )
const;
149 void setExpression(
const QString &expression );
153 void changeEvent( QEvent *event )
override;
158 void expressionEdited(
const QString &expression );
159 void expressionEdited();
162 void editExpression();
169 void updateLineEditStyle(
const QString &expression = QString() );
174 QToolButton *mButton =
nullptr;
175 QString mExpressionDialogTitle;
176 std::unique_ptr<QgsDistanceArea> mDa;
180 QString mExpectedOutputFormat;
182 bool isExpressionValid(
const QString &expressionStr );
184 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...