Skip to content

Commit

Permalink
fix indentation and other minor
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and wonder-sk committed May 5, 2021
1 parent 9a3ad85 commit 4bb0dca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/gui/symbology/qgsinterpolatedlinesymbollayerwidget.cpp
Expand Up @@ -59,15 +59,15 @@ QgsInterpolatedLineSymbolLayerWidget::QgsInterpolatedLineSymbolLayerWidget( QgsV
<< QgsUnitTypes::RenderUnit::RenderPixels
<< QgsUnitTypes::RenderUnit::RenderPoints );

connect( mWidthMethodComboBox, QOverload<int>::of( &QComboBox::currentIndexChanged ),
connect( mWidthMethodComboBox, qOverload<int>( &QComboBox::currentIndexChanged ),
this, &QgsInterpolatedLineSymbolLayerWidget::updateVisibleWidget );
connect( mColorMethodComboBox, QOverload<int>::of( &QComboBox::currentIndexChanged ),
connect( mColorMethodComboBox, qOverload<int>( &QComboBox::currentIndexChanged ),
this, &QgsInterpolatedLineSymbolLayerWidget::updateVisibleWidget );

// Width parameter
connect( mWidthMethodComboBox, QOverload<int>::of( &QComboBox::currentIndexChanged ),
connect( mWidthMethodComboBox, qOverload<int>( &QComboBox::currentIndexChanged ),
this, &QgsInterpolatedLineSymbolLayerWidget::apply );
connect( mDoubleSpinBoxWidth, QOverload<double>::of( &QDoubleSpinBox::valueChanged ),
connect( mDoubleSpinBoxWidth, qOverload<double>( &QDoubleSpinBox::valueChanged ),
this, &QgsInterpolatedLineSymbolLayerWidget::apply );
connect( mWidthStartFieldExpression, static_cast < void ( QgsFieldExpressionWidget::* )( const QString & ) >( &QgsFieldExpressionWidget::fieldChanged )
, this, &QgsInterpolatedLineSymbolLayerWidget::reloadMinMaxWidthFromLayer );
Expand All @@ -76,9 +76,9 @@ QgsInterpolatedLineSymbolLayerWidget::QgsInterpolatedLineSymbolLayerWidget( QgsV
connect( mButtonLoadMinMaxValueWidth, &QPushButton::clicked, this, &QgsInterpolatedLineSymbolLayerWidget::onReloadMinMaxValueWidth );
connect( mLineEditWidthMinValue, &QLineEdit::textChanged, this, &QgsInterpolatedLineSymbolLayerWidget::apply );
connect( mLineEditWidthMaxValue, &QLineEdit::textChanged, this, &QgsInterpolatedLineSymbolLayerWidget::apply );
connect( mDoubleSpinBoxMinWidth, QOverload<double>::of( &QDoubleSpinBox::valueChanged ),
connect( mDoubleSpinBoxMinWidth, qOverload<double>( &QDoubleSpinBox::valueChanged ),
this, &QgsInterpolatedLineSymbolLayerWidget::apply );
connect( mDoubleSpinBoxMaxWidth, QOverload<double>::of( &QDoubleSpinBox::valueChanged ),
connect( mDoubleSpinBoxMaxWidth, qOverload<double>( &QDoubleSpinBox::valueChanged ),
this, &QgsInterpolatedLineSymbolLayerWidget::apply );
connect( mWidthUnitSelectionFixed, &QgsUnitSelectionWidget::changed, this, &QgsInterpolatedLineSymbolLayerWidget::apply );
connect( mWidthUnitSelectionVarying, &QgsUnitSelectionWidget::changed, this, &QgsInterpolatedLineSymbolLayerWidget::apply );
Expand All @@ -97,7 +97,7 @@ QgsInterpolatedLineSymbolLayerWidget::QgsInterpolatedLineSymbolLayerWidget( QgsV
connect( mCheckBoxOutOfrange, &QCheckBox::clicked, this, &QgsInterpolatedLineSymbolLayerWidget::apply );

// Color parameter
connect( mColorMethodComboBox, QOverload<int>::of( &QComboBox::currentIndexChanged ),
connect( mColorMethodComboBox, qOverload<int>( &QComboBox::currentIndexChanged ),
this, &QgsInterpolatedLineSymbolLayerWidget::apply );
connect( mColorRampShaderWidget, &QgsColorRampShaderWidget::widgetChanged, this, &QgsInterpolatedLineSymbolLayerWidget::apply );
connect( mColorButton, &QgsColorButton::colorChanged, this, &QgsInterpolatedLineSymbolLayerWidget::apply );
Expand Down
Expand Up @@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
<string notr="true">Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
Expand Down
4 changes: 2 additions & 2 deletions tests/src/python/test_qgsinterpolatedlinesymbollayers.py
Expand Up @@ -56,7 +56,7 @@ def imageCheck(self, name, reference_image, image):
print((self.report))
return result

def renderImage(self,interpolated_width, interpolated_color, image_name):
def renderImage(self, interpolated_width, interpolated_color, image_name):
layer = QgsInterpolatedLineSymbolLayer()
layer.setExpressionsStringForWidth('5', '1')
layer.setExpressionsStringForColor('2', '6')
Expand Down Expand Up @@ -105,7 +105,7 @@ def testFixedColorFixedWidth(self):
interpolated_color.setColor(QColor(255, 0, 0))
interpolated_color.setColoringMethod(QgsInterpolatedLineColor.SingleColor)

self.renderImage(interpolated_width,interpolated_color,'interpolatedlinesymbollayer_1')
self.renderImage(interpolated_width, interpolated_color, 'interpolatedlinesymbollayer_1')

def testVaryingColorFixedWidth(self):
""" test that rendering a interpolated line with fixed width and varying color"""
Expand Down

0 comments on commit 4bb0dca

Please sign in to comment.