66 void setExpressionDialogTitle(
const QString &title );
79 void setMultiLine(
bool multiLine );
88 QString expectedOutputFormat()
const;
96 void setExpectedOutputFormat(
const QString &expected );
118 QString expression()
const;
125 bool isValidExpression( QString *expressionError
SIP_OUT =
nullptr )
const;
150 void setExpression(
const QString &expression );
154 void changeEvent( QEvent *event )
override;
159 void expressionEdited(
const QString &expression );
160 void expressionEdited();
163 void editExpression();
170 void updateLineEditStyle(
const QString &expression = QString() );
175 QToolButton *mButton =
nullptr;
176 QString mExpressionDialogTitle;
177 std::unique_ptr<QgsDistanceArea> mDa;
181 QString mExpectedOutputFormat;
183 bool isExpressionValid(
const QString &expressionStr );
185 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...