Skip to content

Commit 9019805

Browse files
committedJun 5, 2014
QgsFieldModel use attributeDisplayName (fix #10451)
1 parent 2e477b1 commit 9019805

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎src/gui/qgsfieldmodel.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,7 @@ QVariant QgsFieldModel::data( const QModelIndex &index, int role ) const
232232
{
233233
return mExpression[exprIdx];
234234
}
235-
QgsField field = mFields[index.internalId()];
236-
const QMap< QString, QString > aliases = mLayer->attributeAliases();
237-
QString alias = aliases.value( field.name(), field.name() );
238-
return alias;
235+
return mLayer->attributeDisplayName( index.internalId() );
239236
}
240237

241238
case Qt::ForegroundRole:

0 commit comments

Comments
 (0)