Skip to content

Commit

Permalink
[ui] Allow blend mode combo boxes to adjust width to be shorter
Browse files Browse the repository at this point in the history
than longest item label
  • Loading branch information
nirvn authored and nyalldawson committed Nov 29, 2021
1 parent 13e355c commit 914f737
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsblendmodecombobox.cpp
Expand Up @@ -27,6 +27,7 @@

QgsBlendModeComboBox::QgsBlendModeComboBox( QWidget *parent ) : QComboBox( parent )
{
setSizeAdjustPolicy( QComboBox::AdjustToMinimumContentsLengthWithIcon );
updateModes();
}

Expand Down
6 changes: 6 additions & 0 deletions src/ui/qgsrendererpropsdialogbase.ui
Expand Up @@ -209,6 +209,12 @@
</item>
<item row="0" column="1" colspan="2">
<widget class="QgsOpacityWidget" name="mOpacityWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>4</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
Expand Down

0 comments on commit 914f737

Please sign in to comment.