Skip to content
Permalink
Browse files

Use field icon for vector field symbol layer combo boxes

  • Loading branch information
nyalldawson committed Jun 26, 2016
1 parent e6034e9 commit 9c16a958e18c2284a0883786cf88a10f8ab6db2d
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/gui/symbology-ng/qgsvectorfieldsymbollayerwidget.cpp
@@ -26,11 +26,13 @@ QgsVectorFieldSymbolLayerWidget::QgsVectorFieldSymbolLayerWidget( const QgsVecto
{
mXAttributeComboBox->addItem( "" );
mYAttributeComboBox->addItem( "" );
int i = 0;
Q_FOREACH ( const QgsField& f, mVectorLayer->fields() )
{
QString fieldName = f.name();
mXAttributeComboBox->addItem( fieldName );
mYAttributeComboBox->addItem( fieldName );
mXAttributeComboBox->addItem( mVectorLayer->fields().iconForField( i ), fieldName );
mYAttributeComboBox->addItem( mVectorLayer->fields().iconForField( i ), fieldName );
i++;
}
}
}

0 comments on commit 9c16a95

Please sign in to comment.
You can’t perform that action at this time.