Skip to content

Commit

Permalink
[needs-docs] Do not display graduated method combobox
Browse files Browse the repository at this point in the history
when the layer is of polygon geometry type to avoid a single item combobox
  • Loading branch information
DelazJ authored and nyalldawson committed Sep 12, 2019
1 parent 7043933 commit 88b16b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/gui/symbology/qgsgraduatedsymbolrendererwidget.cpp
Expand Up @@ -522,6 +522,12 @@ QgsGraduatedSymbolRendererWidget::QgsGraduatedSymbolRendererWidget( QgsVectorLay
minSizeSpinBox->setValue( .1 );
maxSizeSpinBox->setValue( 2 );
}
else if ( mGraduatedSymbol->type() == QgsSymbol::Fill )
{
//set button and label invisible to avoid display of a single item combobox
methodComboBox->hide();
labelMethod->hide();
}
methodComboBox->blockSignals( false );

connect( mExpressionWidget, static_cast < void ( QgsFieldExpressionWidget::* )( const QString & ) >( &QgsFieldExpressionWidget::fieldChanged ), this, &QgsGraduatedSymbolRendererWidget::graduatedColumnChanged );
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgsgraduatedsymbolrendererwidget.ui
Expand Up @@ -116,7 +116,7 @@ Negative rounds to powers of 10</string>
</layout>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_3">
<widget class="QLabel" name="labelMethod">
<property name="text">
<string>Method</string>
</property>
Expand Down

0 comments on commit 88b16b7

Please sign in to comment.