Skip to content
Permalink
Browse files

Fix clear values for 3d spin boxes

  • Loading branch information
nyalldawson committed Nov 9, 2017
1 parent df7a1d0 commit c13dadf7ad858c277aca34d5b270f166528c8268
@@ -23,6 +23,10 @@ QgsLine3DSymbolWidget::QgsLine3DSymbolWidget( QWidget *parent )
{
setupUi( this );

spinHeight->setClearValue( 0.0 );
spinWidth->setClearValue( 0.0 );
spinExtrusion->setClearValue( 0.0 );

setSymbol( QgsLine3DSymbol() );

connect( spinWidth, static_cast<void ( QDoubleSpinBox::* )( double )>( &QDoubleSpinBox::valueChanged ), this, &QgsLine3DSymbolWidget::changed );
@@ -25,6 +25,16 @@ QgsPoint3DSymbolWidget::QgsPoint3DSymbolWidget( QWidget *parent )
{
setupUi( this );

spinTX->setClearValue( 0.0 );
spinTY->setClearValue( 0.0 );
spinTZ->setClearValue( 0.0 );
spinSX->setClearValue( 1.0 );
spinSY->setClearValue( 1.0 );
spinSZ->setClearValue( 1.0 );
spinRX->setClearValue( 0.0 );
spinRY->setClearValue( 0.0 );
spinRZ->setClearValue( 0.0 );

cboShape->addItem( tr( "Sphere" ), QgsPoint3DSymbol::Sphere );
cboShape->addItem( tr( "Cylinder" ), QgsPoint3DSymbol::Cylinder );
cboShape->addItem( tr( "Cube" ), QgsPoint3DSymbol::Cube );
@@ -22,6 +22,8 @@ QgsPolygon3DSymbolWidget::QgsPolygon3DSymbolWidget( QWidget *parent )
: QWidget( parent )
{
setupUi( this );
spinHeight->setClearValue( 0.0 );
spinExtrusion->setClearValue( 0.0 );

setSymbol( QgsPolygon3DSymbol(), nullptr );

0 comments on commit c13dadf

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