22 connect( mScaleSpinBox,
static_cast < void ( QDoubleSpinBox::* )(
double )
> ( &QDoubleSpinBox::valueChanged ),
this, &QgsVectorFieldSymbolLayerWidget::mScaleSpinBox_valueChanged );
23 connect( mXAttributeComboBox,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
this, &QgsVectorFieldSymbolLayerWidget::mXAttributeComboBox_currentIndexChanged );
24 connect( mYAttributeComboBox,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
this, &QgsVectorFieldSymbolLayerWidget::mYAttributeComboBox_currentIndexChanged );
25 connect( mCartesianRadioButton, &QRadioButton::toggled,
this, &QgsVectorFieldSymbolLayerWidget::mCartesianRadioButton_toggled );
26 connect( mPolarRadioButton, &QRadioButton::toggled,
this, &QgsVectorFieldSymbolLayerWidget::mPolarRadioButton_toggled );
27 connect( mHeightRadioButton, &QRadioButton::toggled,
this, &QgsVectorFieldSymbolLayerWidget::mHeightRadioButton_toggled );
28 connect( mDegreesRadioButton, &QRadioButton::toggled,
this, &QgsVectorFieldSymbolLayerWidget::mDegreesRadioButton_toggled );
29 connect( mRadiansRadioButton, &QRadioButton::toggled,
this, &QgsVectorFieldSymbolLayerWidget::mRadiansRadioButton_toggled );
30 connect( mClockwiseFromNorthRadioButton, &QRadioButton::toggled,
this, &QgsVectorFieldSymbolLayerWidget::mClockwiseFromNorthRadioButton_toggled );
31 connect( mCounterclockwiseFromEastRadioButton, &QRadioButton::toggled,
this, &QgsVectorFieldSymbolLayerWidget::mCounterclockwiseFromEastRadioButton_toggled );
39 mXAttributeComboBox->addItem( QString() );
40 mYAttributeComboBox->addItem( QString() );
42 const QgsFields fields = lVectorLayer->fields();
45 const QString fieldName = f.name();
46 mXAttributeComboBox->addItem( lVectorLayer->fields().iconForField( i ), fieldName );
47 mYAttributeComboBox->addItem( lVectorLayer->fields().iconForField( i ), fieldName );
55 if ( layer->
layerType() != QLatin1String(
"VectorField" ) )
65 mXAttributeComboBox->setCurrentIndex( mXAttributeComboBox->findText(
mLayer->
xAttribute() ) );
66 mYAttributeComboBox->setCurrentIndex( mYAttributeComboBox->findText(
mLayer->
yAttribute() ) );
72 mCartesianRadioButton->setChecked(
true );
76 mPolarRadioButton->setChecked(
true );
80 mHeightRadioButton->setChecked(
true );
86 mClockwiseFromNorthRadioButton->setChecked(
true );
90 mCounterclockwiseFromEastRadioButton->setChecked(
true );
96 mDegreesRadioButton->setChecked(
true );
100 mRadiansRadioButton->setChecked(
true );
103 mDistanceUnitWidget->blockSignals(
true );
106 mDistanceUnitWidget->blockSignals(
false );