Skip to content

Commit

Permalink
Fixes #11061
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Oct 4, 2014
1 parent 650cd8f commit def0a1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsfieldexpressionwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ QgsFieldExpressionWidget::QgsFieldExpressionWidget( QWidget *parent )
mCombo = new QComboBox( this );
mCombo->setEditable( true );
mCombo->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Minimum );
int width = mCombo->minimumSizeHint().width();
mCombo->setMinimumWidth( width );
mFieldProxyModel = new QgsFieldProxyModel( mCombo );
mFieldProxyModel->sourceFieldModel()->setAllowExpression( true );
mCombo->setModel( mFieldProxyModel );
Expand Down

0 comments on commit def0a1d

Please sign in to comment.