[ui] Move layer_property() function from General to Map Layers group for ease of discoverability

This commit is contained in:
nirvn 2021-03-10 14:14:49 +07:00 committed by Nyall Dawson
parent c1a2904cce
commit 6c6fd067b0
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "layer_property",
"type": "function",
"groups": ["General"],
"groups": ["Map Layers"],
"description": "Returns a matching layer property or metadata value.",
"arguments": [
{"arg":"layer", "description":"a string, representing either a layer name or layer ID"},

View File

@ -7146,7 +7146,7 @@ const QList<QgsExpressionFunction *> &QgsExpression::Functions()
functions
<< new QgsStaticExpressionFunction( QStringLiteral( "layer_property" ), QgsExpressionFunction::ParameterList() << QgsExpressionFunction::Parameter( QStringLiteral( "layer" ) )
<< QgsExpressionFunction::Parameter( QStringLiteral( "property" ) ),
fcnGetLayerProperty, QStringLiteral( "General" ) )
fcnGetLayerProperty, QStringLiteral( "Map Layers" ) )
<< new QgsStaticExpressionFunction( QStringLiteral( "decode_uri" ),
QgsExpressionFunction::ParameterList()
<< QgsExpressionFunction::Parameter( QStringLiteral( "layer" ) )