Skip to content

Commit

Permalink
QgsRasterBandComboBox: set the size adjust policy
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Feb 21, 2025
1 parent 535b548 commit 2e49a73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/raster/qgsrasterbandcombobox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ QgsRasterBandComboBox::QgsRasterBandComboBox( QWidget *parent )

// default to editable, until a layer is set
setEditable( true );

setSizeAdjustPolicy( QComboBox::SizeAdjustPolicy::AdjustToMinimumContentsLengthWithIcon );
}

QgsRasterLayer *QgsRasterBandComboBox::layer() const
Expand Down

0 comments on commit 2e49a73

Please sign in to comment.