Skip to content
Permalink
Browse files

QgsFieldModel use attributeDisplayName (fix #10451)

  • Loading branch information
3nids committed Jun 5, 2014
1 parent 2e477b1 commit 9019805b446661d41db270c5a86a41ae6474b51e
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/gui/qgsfieldmodel.cpp
@@ -232,10 +232,7 @@ QVariant QgsFieldModel::data( const QModelIndex &index, int role ) const
{
return mExpression[exprIdx];
}
QgsField field = mFields[index.internalId()];
const QMap< QString, QString > aliases = mLayer->attributeAliases();
QString alias = aliases.value( field.name(), field.name() );
return alias;
return mLayer->attributeDisplayName( index.internalId() );
}

case Qt::ForegroundRole:

0 comments on commit 9019805

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