Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set a better size adjustment policy for our map layer combo box widget
  • Loading branch information
nirvn committed Apr 1, 2020
1 parent cac2d28 commit d64c761
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsmaplayercombobox.cpp
Expand Up @@ -29,6 +29,8 @@ QgsMapLayerComboBox::QgsMapLayerComboBox( QWidget *parent )
connect( mProxyModel, &QAbstractItemModel::rowsInserted, this, &QgsMapLayerComboBox::rowsChanged );
connect( mProxyModel, &QAbstractItemModel::rowsRemoved, this, &QgsMapLayerComboBox::rowsChanged );

setSizeAdjustPolicy( QComboBox::AdjustToMinimumContentsLengthWithIcon );

setAcceptDrops( true );
}

Expand Down

0 comments on commit d64c761

Please sign in to comment.