Skip to content
Permalink
Browse files

Try fixing tests round1

  • Loading branch information
NEDJIMAbelgacem committed Nov 13, 2020
1 parent 06f4d44 commit 4c005ef177238e9e07b6586e74215361e373c084
@@ -51,7 +51,7 @@ class QgsPointCloud3DSymbol : public QgsAbstract3DSymbol
void setPointSize( float size ) { mPointSize = size; }

private:
bool mEnabled;
bool mEnabled = true;
float mPointSize = 10.0f;
};

@@ -26,13 +26,8 @@ QgsPointCloud3DSymbolWidget::QgsPointCloud3DSymbolWidget( QgsPointCloudLayer *la
delete symbol;
}
}

// connect( mPointSizeSpinBox, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &QgsPointCloud3DSymbolWidget::changed);
connect( mPointSizeSpinBox, QOverload<double>::of( &QDoubleSpinBox::valueChanged ), [&]( double value )
{
qDebug() << "mPointSizeSpinBox->valueChanged()";
emit changed();
} );
connect( mPointSizeSpinBox, qgis::overload<double>::of( &QDoubleSpinBox::valueChanged ), &QgsPointCloud3DSymbolWidget::changed );
}

void QgsPointCloud3DSymbolWidget::setLayer( QgsPointCloudLayer *layer, bool updateSymbol )
@@ -65,7 +65,8 @@ QgsPointCloudLayer3DRenderer *QgsPointCloudLayer3DRendererWidget::renderer()
void QgsPointCloudLayer3DRendererWidget::apply()
{
QgsPointCloudLayer3DRenderer *r = renderer();
r->setSymbol( mWidgetPointCloudSymbol->symbol() );
if ( r )
r->setSymbol( mWidgetPointCloudSymbol->symbol() );
mLayer->setRenderer3D( r ? r->clone() : nullptr );
}

@@ -10,9 +10,6 @@
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QDoubleSpinBox" name="mPointSizeSpinBox">

0 comments on commit 4c005ef

Please sign in to comment.
You can’t perform that action at this time.