Skip to content
Permalink
Browse files
Simplify signals in QgsMeshRendererScalarSettingsWidget
  • Loading branch information
elpaso committed Jun 22, 2021
1 parent b3f013b commit 1600e25b47f6b30a46959e97e2ee7a9eed493e99
Showing with 0 additions and 10 deletions.
  1. +0 −9 src/gui/mesh/qgsmeshrendererscalarsettingswidget.cpp
  2. +0 −1 src/gui/mesh/qgsmeshrendererscalarsettingswidget.h
@@ -51,8 +51,6 @@ QgsMeshRendererScalarSettingsWidget::QgsMeshRendererScalarSettingsWidget( QWidge
connect( mScalarRecalculateMinMaxButton, &QPushButton::clicked, this, &QgsMeshRendererScalarSettingsWidget::recalculateMinMaxButtonClicked );
connect( mScalarMinSpinBox, qOverload<double>( &QgsDoubleSpinBox::valueChanged ), this, [ = ]( double ) { minMaxChanged(); } );
connect( mScalarMaxSpinBox, qOverload<double>( &QgsDoubleSpinBox::valueChanged ), this, [ = ]( double ) { minMaxChanged(); } );
connect( mScalarMinSpinBox, &QgsDoubleSpinBox::editingFinished, this, &QgsMeshRendererScalarSettingsWidget::minMaxEdited );
connect( mScalarMaxSpinBox, &QgsDoubleSpinBox::editingFinished, this, &QgsMeshRendererScalarSettingsWidget::minMaxEdited );
connect( mScalarEdgeStrokeWidthVariableRadioButton, &QRadioButton::toggled, this, &QgsMeshRendererScalarSettingsWidget::onEdgeStrokeWidthMethodChanged );

connect( mScalarColorRampShaderWidget, &QgsColorRampShaderWidget::widgetChanged, this, &QgsMeshRendererScalarSettingsWidget::widgetChanged );
@@ -165,13 +163,6 @@ double QgsMeshRendererScalarSettingsWidget::spinBoxValue( const QgsDoubleSpinBox
}

void QgsMeshRendererScalarSettingsWidget::minMaxChanged()
{
const double min = spinBoxValue( mScalarMinSpinBox );
const double max = spinBoxValue( mScalarMaxSpinBox );
mScalarColorRampShaderWidget->setMinimumMaximum( min, max );
}

void QgsMeshRendererScalarSettingsWidget::minMaxEdited()
{
const double min = spinBoxValue( mScalarMinSpinBox );
const double max = spinBoxValue( mScalarMaxSpinBox );
@@ -62,7 +62,6 @@ class QgsMeshRendererScalarSettingsWidget : public QWidget, private Ui::QgsMeshR

private slots:
void minMaxChanged();
void minMaxEdited();
void recalculateMinMaxButtonClicked();
void onEdgeStrokeWidthMethodChanged();

0 comments on commit 1600e25

Please sign in to comment.