mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-10 00:13:55 -04:00
Use a translated list for default display expression field candidates
This commit is contained in:
parent
a8d212b129
commit
65a07a5487
@ -3139,7 +3139,7 @@ QString QgsVectorLayer::displayExpression() const
|
||||
// more "interesting" field names first. As such, name should
|
||||
// be selected before oldname, othername, etc.
|
||||
// This candidates list is a prioritized list of candidates ranked by "interestingness"!
|
||||
static QStringList sCandidates{ QStringLiteral( "name" ), QStringLiteral( "descript" ), QStringLiteral( "street" ), QStringLiteral( "road" ), QStringLiteral( "id" )};
|
||||
static const QStringList sCandidates( tr( "name,desc,street,road,id" ).split( ',' ) );
|
||||
for ( const QString &candidate : sCandidates )
|
||||
{
|
||||
for ( const QgsField &field : mFields )
|
||||
|
Loading…
x
Reference in New Issue
Block a user