Skip to content

Commit

Permalink
[ui] Move layer_property() function from General to Map Layers group …
Browse files Browse the repository at this point in the history
…for ease of discoverability
  • Loading branch information
nirvn authored and nyalldawson committed Mar 12, 2021
1 parent c1a2904 commit 6c6fd06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/function_help/json/layer_property
@@ -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"},
Expand Down
2 changes: 1 addition & 1 deletion src/core/expression/qgsexpressionfunction.cpp
Expand Up @@ -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" ) )
Expand Down

0 comments on commit 6c6fd06

Please sign in to comment.