Skip to content
Permalink
Browse files

First steps towards expression context

  • Loading branch information
nyalldawson committed Sep 21, 2018
1 parent 7af13f6 commit 5cf04334d7132925c3b0d7ab9c7a543bc0533518
@@ -81,6 +81,7 @@ QgsProcessingModelerParameterWidget::QgsProcessingModelerParameterWidget( QgsPro
}

mExpressionWidget = new QgsExpressionLineEdit();
mExpressionWidget->registerExpressionContextGenerator( this );
mStackedWidget->addWidget( mExpressionWidget );

mModelInputCombo = new QComboBox();
@@ -169,6 +170,11 @@ QgsProcessingModelChildParameterSource QgsProcessingModelerParameterWidget::valu
return QgsProcessingModelChildParameterSource();
}

QgsExpressionContext QgsProcessingModelerParameterWidget::createExpressionContext() const
{
return QgsExpressionContext();
}

void QgsProcessingModelerParameterWidget::sourceMenuAboutToShow()
{
mSourceMenu->clear();
@@ -56,7 +56,7 @@ class QComboBox;
* \ingroup gui
* \since QGIS 3.4
*/
class GUI_EXPORT QgsProcessingModelerParameterWidget : public QWidget
class GUI_EXPORT QgsProcessingModelerParameterWidget : public QWidget, public QgsExpressionContextGenerator
{
Q_OBJECT

0 comments on commit 5cf0433

Please sign in to comment.
You can’t perform that action at this time.