Skip to content
Permalink
Browse files

[ui] Move layer_property() function from General to Map Layers group …

…for ease of discoverability
  • Loading branch information
nirvn authored and nyalldawson committed Mar 12, 2021
1 parent c1a2904 commit 6c6fd067b01a0c9a122b09a2fa19e5e3cc7edb03
Showing with 2 additions and 2 deletions.
  1. +1 −1 resources/function_help/json/layer_property
  2. +1 −1 src/core/expression/qgsexpressionfunction.cpp
@@ -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"},
@@ -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" ) )

0 comments on commit 6c6fd06

Please sign in to comment.