Skip to content

Commit

Permalink
Make QgsFeatureListComboBox shrinkable
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jan 24, 2023
1 parent 593c5c5 commit d97baeb
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 d97baeb

Please sign in to comment.