Skip to content

Commit

Permalink
show search icon in expression builder widget
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Apr 2, 2018
1 parent a04d553 commit 1e5fe12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -81,12 +81,14 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
connect( button, &QAbstractButton::pressed, this, &QgsExpressionBuilderWidget::operatorButtonClicked );
}

txtSearchEdit->setShowSearchIcon( true );
txtSearchEdit->setPlaceholderText( tr( "Search" ) );

mValuesModel = new QStringListModel();
mProxyValues = new QSortFilterProxyModel();
mProxyValues->setSourceModel( mValuesModel );
mValuesListView->setModel( mProxyValues );
txtSearchEditValues->setShowSearchIcon( true );
txtSearchEditValues->setPlaceholderText( tr( "Search" ) );

QgsSettings settings;
Expand Down

0 comments on commit 1e5fe12

Please sign in to comment.