Skip to content

Commit 9c16a95

Browse files
committedJun 26, 2016
Use field icon for vector field symbol layer combo boxes
1 parent e6034e9 commit 9c16a95

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎src/gui/symbology-ng/qgsvectorfieldsymbollayerwidget.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ QgsVectorFieldSymbolLayerWidget::QgsVectorFieldSymbolLayerWidget( const QgsVecto
2626
{
2727
mXAttributeComboBox->addItem( "" );
2828
mYAttributeComboBox->addItem( "" );
29+
int i = 0;
2930
Q_FOREACH ( const QgsField& f, mVectorLayer->fields() )
3031
{
3132
QString fieldName = f.name();
32-
mXAttributeComboBox->addItem( fieldName );
33-
mYAttributeComboBox->addItem( fieldName );
33+
mXAttributeComboBox->addItem( mVectorLayer->fields().iconForField( i ), fieldName );
34+
mYAttributeComboBox->addItem( mVectorLayer->fields().iconForField( i ), fieldName );
35+
i++;
3436
}
3537
}
3638
}

0 commit comments

Comments
 (0)