Skip to content

Commit

Permalink
update preview when transform curve state toggled (fix #24961)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy authored and lbartoletti committed Jan 25, 2024
1 parent add57f1 commit c31b0a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/gui/qgspropertyassistantwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ QgsPropertyAssistantWidget::QgsPropertyAssistantWidget( QWidget *parent,
connect( minValueSpinBox, static_cast < void ( QgsDoubleSpinBox::* )( double ) > ( &QgsDoubleSpinBox::valueChanged ), this, &QgsPropertyAssistantWidget::widgetChanged );
connect( maxValueSpinBox, static_cast < void ( QgsDoubleSpinBox::* )( double ) > ( &QgsDoubleSpinBox::valueChanged ), this, &QgsPropertyAssistantWidget::widgetChanged );
connect( mExpressionWidget, static_cast < void ( QgsFieldExpressionWidget::* )( const QString & ) > ( &QgsFieldExpressionWidget::fieldChanged ), this, &QgsPropertyAssistantWidget::widgetChanged );
connect( mTransformCurveCheckBox, &QgsCollapsibleGroupBox::toggled, this, &QgsPropertyAssistantWidget::widgetChanged );
connect( mCurveEditor, &QgsCurveEditorWidget::changed, this, &QgsPropertyAssistantWidget::widgetChanged );
connect( this, &QgsPropertyAssistantWidget::widgetChanged, this, &QgsPropertyAssistantWidget::updatePreview );
updatePreview();
Expand Down
2 changes: 0 additions & 2 deletions src/gui/qgspropertyassistantwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ class GUI_EXPORT QgsPropertyAssistantWidget : public QgsPanelWidget, private Ui:
void computeValuesFromLayer();
void updatePreview();


private:

QgsPropertyDefinition mDefinition;
Expand All @@ -170,7 +169,6 @@ class GUI_EXPORT QgsPropertyAssistantWidget : public QgsPanelWidget, private Ui:

bool computeValuesFromExpression( const QString &expression, double &minValue, double &maxValue ) const;
bool computeValuesFromField( const QString &fieldName, double &minValue, double &maxValue ) const;

};

#ifndef SIP_RUN
Expand Down

0 comments on commit c31b0a9

Please sign in to comment.