Skip to content

Commit

Permalink
Make QgsFeatureListComboBox shrinkable
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and github-actions[bot] committed Jan 24, 2023
1 parent 428ab49 commit a6969a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsfeaturelistcombobox.cpp
Expand Up @@ -29,6 +29,8 @@ QgsFeatureListComboBox::QgsFeatureListComboBox( QWidget *parent )
, mModel( new QgsFeatureFilterModel( this ) )
, mCompleter( new QCompleter( mModel ) )
{
setMinimumContentsLength( 1 );
setSizeAdjustPolicy( QComboBox::SizeAdjustPolicy::AdjustToMinimumContentsLengthWithIcon );
mCompleter->setCaseSensitivity( Qt::CaseInsensitive );
mCompleter->setFilterMode( Qt::MatchContains );
setEditable( true );
Expand Down

0 comments on commit a6969a0

Please sign in to comment.