mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
[ui] Move layer_property() function from General to Map Layers group for ease of discoverability
This commit is contained in:
parent
c1a2904cce
commit
6c6fd067b0
@ -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" ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user