Skip to content
Permalink
Browse files

fix #39571 , mesh 3d widgets ui fix

  • Loading branch information
PeterPetrik authored and nyalldawson committed Feb 11, 2021
1 parent f432f64 commit f495d45f35c3c3b882432a87d16340bea08f1cda
Showing with 11 additions and 0 deletions.
  1. +10 −0 src/app/3d/qgsmesh3dsymbolwidget.cpp
  2. +1 −0 src/app/3d/qgsmesh3dsymbolwidget.h
@@ -70,6 +70,8 @@ QgsMesh3dSymbolWidget::QgsMesh3dSymbolWidget( QgsMeshLayer *meshLayer, QWidget *
this, &QgsMesh3dSymbolWidget::changed );

connect( mArrowsFixedSizeCheckBox, &QCheckBox::clicked, this, &QgsMesh3dSymbolWidget::changed );

connect( mGroupBoxTextureSettings, &QgsCollapsibleGroupBox::collapsedStateChanged, this, &QgsMesh3dSymbolWidget::onTextureSettingsCollapseStateChanged );
}

void QgsMesh3dSymbolWidget::setSymbol( const QgsMesh3DSymbol *symbol )
@@ -242,6 +244,14 @@ void QgsMesh3dSymbolWidget::onColoringTypeChanged()
mMeshSingleColorWidget->setVisible( mComboBoxTextureType->currentData() == QgsMesh3DSymbol::SingleColor );
}

void QgsMesh3dSymbolWidget::onTextureSettingsCollapseStateChanged( bool collapsed )
{
if ( !collapsed )
{
onColoringTypeChanged();
}
}

void QgsMesh3dSymbolWidget::setColorRampMinMax( double min, double max )
{
whileBlocking( mColorRampShaderMinEdit )->setText( QString::number( min ) );
@@ -53,6 +53,7 @@ class QgsMesh3dSymbolWidget : public QWidget, private Ui::QgsMesh3dPropsWidget

void onColorRampShaderMinMaxChanged();
void onColoringTypeChanged();
void onTextureSettingsCollapseStateChanged( bool collapsed );

private:
double lineEditValue( const QLineEdit *lineEdit ) const;

0 comments on commit f495d45

Please sign in to comment.