mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix clang tidy warning
This commit is contained in:
parent
91d633fba1
commit
301fa169cf
@ -49,7 +49,7 @@ QgsPercentageWidget::QgsPercentageWidget( QWidget *parent )
|
||||
setFocusProxy( mSpinBox );
|
||||
|
||||
connect( mSlider, &QSlider::valueChanged, this, [ = ]( int value ) { mSpinBox->setValue( value / 10.0 ); } );
|
||||
connect( mSpinBox, static_cast < void ( QgsDoubleSpinBox::* )( double ) > ( &QgsDoubleSpinBox::valueChanged ), this, [ = ]( double value ) { whileBlocking( mSlider )->setValue( std::round< int >( value * 10 ) ); } );
|
||||
connect( mSpinBox, static_cast < void ( QgsDoubleSpinBox::* )( double ) > ( &QgsDoubleSpinBox::valueChanged ), this, [ = ]( double value ) { whileBlocking( mSlider )->setValue( static_cast< int >( std::lround( value * 10 ) ) ); } );
|
||||
connect( mSpinBox, static_cast < void ( QgsDoubleSpinBox::* )( double ) > ( &QgsDoubleSpinBox::valueChanged ), this, &QgsPercentageWidget::spinChanged );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user