Q_FOREACH use to iterate over fields

This commit is contained in:
Blottiere Paul 2017-06-30 08:22:27 +01:00
parent c6ffd54170
commit 6a1c141f10

View File

@ -1973,9 +1973,8 @@ void QgsAttributeForm::updateJoinedFields( const QgsEditorWidgetWrapper &eww )
}
else
{
for ( int i = 0; i < joinFeature.fields().count(); i++ )
Q_FOREACH ( const QgsField &field, joinFeature.fields() )
{
QgsField field = joinFeature.fields().field( i );
QString prefixedName = info->prefixedFieldName( field );
changeAttribute( prefixedName, joinFeature.attribute( field.name() ) );
}