Skip to content

Commit

Permalink
Show field type icons in field mapping widget
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 31, 2022
1 parent 0e20e6a commit 7bcd935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsfieldmappingwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ QWidget *QgsFieldMappingWidget::TypeDelegate::createEditor( QWidget *parent, con
const QList<QgsVectorDataProvider::NativeType> typeList = QgsFieldMappingModel::supportedDataTypes();
for ( int i = 0; i < typeList.size(); i++ )
{
editor->addItem( typeList[i].mTypeDesc );
editor->addItem( QgsFields::iconForFieldType( typeList[i].mType, typeList[i].mSubType ), typeList[i].mTypeDesc );
editor->setItemData( i, typeList[i].mTypeName, Qt::UserRole );
}

Expand Down

0 comments on commit 7bcd935

Please sign in to comment.