28 mAzimuthSpinBox->setClearValue( 315.0 );
29 mAltitudeSpinBox->setClearValue( 45.0 );
31 connect( mAzimuthSpinBox, qOverload<double>( &QDoubleSpinBox::valueChanged ),
this, [
this](
double value )
33 whileBlocking( mDialAzimuth )->setValue(
static_cast<int>( value * 10 + 1800 ) % 3600 );
37 connect( mDialAzimuth, &QDial::valueChanged,
this, [
this](
int value )
39 whileBlocking( mAzimuthSpinBox )->setValue( std::fmod( value / 10.0 + 180, 360.0 ) );
43 connect( mAltitudeSpinBox, qOverload<double>( &QDoubleSpinBox::valueChanged ),
this, [
this](
double value )
45 whileBlocking( mAltitudeSlider )->setValue(
static_cast<int>( value * 10 ) );
49 connect( mAltitudeSlider, &QSlider::valueChanged,
this, [
this](
int value )