24 connect( mScaleSpinBox,
static_cast<void ( QDoubleSpinBox::* )(
double )
>( &QDoubleSpinBox::valueChanged ),
this, &QgsVectorFieldSymbolLayerWidget::mScaleSpinBox_valueChanged );
25 connect( mXAttributeComboBox,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
this, &QgsVectorFieldSymbolLayerWidget::mXAttributeComboBox_currentIndexChanged );
26 connect( mYAttributeComboBox,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
this, &QgsVectorFieldSymbolLayerWidget::mYAttributeComboBox_currentIndexChanged );
27 connect( mCartesianRadioButton, &QRadioButton::toggled,
this, &QgsVectorFieldSymbolLayerWidget::mCartesianRadioButton_toggled );
28 connect( mPolarRadioButton, &QRadioButton::toggled,
this, &QgsVectorFieldSymbolLayerWidget::mPolarRadioButton_toggled );
29 connect( mHeightRadioButton, &QRadioButton::toggled,
this, &QgsVectorFieldSymbolLayerWidget::mHeightRadioButton_toggled );
30 connect( mDegreesRadioButton, &QRadioButton::toggled,
this, &QgsVectorFieldSymbolLayerWidget::mDegreesRadioButton_toggled );
31 connect( mRadiansRadioButton, &QRadioButton::toggled,
this, &QgsVectorFieldSymbolLayerWidget::mRadiansRadioButton_toggled );
32 connect( mClockwiseFromNorthRadioButton, &QRadioButton::toggled,
this, &QgsVectorFieldSymbolLayerWidget::mClockwiseFromNorthRadioButton_toggled );
33 connect( mCounterclockwiseFromEastRadioButton, &QRadioButton::toggled,
this, &QgsVectorFieldSymbolLayerWidget::mCounterclockwiseFromEastRadioButton_toggled );
40 mXAttributeComboBox->addItem( QString() );
41 mYAttributeComboBox->addItem( QString() );
43 const QgsFields fields = lVectorLayer->fields();
46 const QString fieldName = f.name();
47 mXAttributeComboBox->addItem( lVectorLayer->fields().iconForField( i ), fieldName );
48 mYAttributeComboBox->addItem( lVectorLayer->fields().iconForField( i ), fieldName );
56 if ( layer->
layerType() != QLatin1String(
"VectorField" ) )
66 mXAttributeComboBox->setCurrentIndex( mXAttributeComboBox->findText(
mLayer->
xAttribute() ) );
67 mYAttributeComboBox->setCurrentIndex( mYAttributeComboBox->findText(
mLayer->
yAttribute() ) );
73 mCartesianRadioButton->setChecked(
true );
77 mPolarRadioButton->setChecked(
true );
81 mHeightRadioButton->setChecked(
true );
87 mClockwiseFromNorthRadioButton->setChecked(
true );
91 mCounterclockwiseFromEastRadioButton->setChecked(
true );
97 mDegreesRadioButton->setChecked(
true );
101 mRadiansRadioButton->setChecked(
true );
104 mDistanceUnitWidget->blockSignals(
true );
107 mDistanceUnitWidget->blockSignals(
false );