Skip to content

Commit

Permalink
Fix some ui issues in interpolated line renderer widget
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 21, 2021
1 parent 3474909 commit a76c2ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 deletions.
8 changes: 4 additions & 4 deletions src/gui/symbology/qgsinterpolatedlinesymbollayerwidget.cpp
Expand Up @@ -28,10 +28,10 @@ QgsInterpolatedLineSymbolLayerWidget::QgsInterpolatedLineSymbolLayerWidget( QgsV
{
setupUi( this );

mWidthMethodComboBox->addItem( tr( "Fixed width" ), false );
mWidthMethodComboBox->addItem( tr( "Varying width" ), true );
mColorMethodComboBox->addItem( tr( "Single color" ), QgsInterpolatedLineColor::SingleColor );
mColorMethodComboBox->addItem( tr( "Varying color" ), QgsInterpolatedLineColor::ColorRamp );
mWidthMethodComboBox->addItem( tr( "Fixed Width" ), false );
mWidthMethodComboBox->addItem( tr( "Varying Width" ), true );
mColorMethodComboBox->addItem( tr( "Single Color" ), QgsInterpolatedLineColor::SingleColor );
mColorMethodComboBox->addItem( tr( "Varying Color" ), QgsInterpolatedLineColor::ColorRamp );

mWidthStartFieldExpression->setFilters( QgsFieldProxyModel::Numeric );
mWidthEndFieldExpression->setFilters( QgsFieldProxyModel::Numeric );
Expand Down
24 changes: 0 additions & 24 deletions src/ui/symbollayer/qgsinterpolatedlinesymbollayerwidgetbase.ui
Expand Up @@ -32,18 +32,6 @@
<string>Stroke Width</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QComboBox" name="mWidthMethodComboBox"/>
</item>
Expand Down Expand Up @@ -240,18 +228,6 @@
<string>Color</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QComboBox" name="mColorMethodComboBox"/>
</item>
Expand Down

0 comments on commit a76c2ed

Please sign in to comment.