mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -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",
|
"name": "layer_property",
|
||||||
"type": "function",
|
"type": "function",
|
||||||
"groups": ["General"],
|
"groups": ["Map Layers"],
|
||||||
"description": "Returns a matching layer property or metadata value.",
|
"description": "Returns a matching layer property or metadata value.",
|
||||||
"arguments": [
|
"arguments": [
|
||||||
{"arg":"layer", "description":"a string, representing either a layer name or layer ID"},
|
{"arg":"layer", "description":"a string, representing either a layer name or layer ID"},
|
||||||
|
@ -7146,7 +7146,7 @@ const QList<QgsExpressionFunction *> &QgsExpression::Functions()
|
|||||||
functions
|
functions
|
||||||
<< new QgsStaticExpressionFunction( QStringLiteral( "layer_property" ), QgsExpressionFunction::ParameterList() << QgsExpressionFunction::Parameter( QStringLiteral( "layer" ) )
|
<< new QgsStaticExpressionFunction( QStringLiteral( "layer_property" ), QgsExpressionFunction::ParameterList() << QgsExpressionFunction::Parameter( QStringLiteral( "layer" ) )
|
||||||
<< QgsExpressionFunction::Parameter( QStringLiteral( "property" ) ),
|
<< QgsExpressionFunction::Parameter( QStringLiteral( "property" ) ),
|
||||||
fcnGetLayerProperty, QStringLiteral( "General" ) )
|
fcnGetLayerProperty, QStringLiteral( "Map Layers" ) )
|
||||||
<< new QgsStaticExpressionFunction( QStringLiteral( "decode_uri" ),
|
<< new QgsStaticExpressionFunction( QStringLiteral( "decode_uri" ),
|
||||||
QgsExpressionFunction::ParameterList()
|
QgsExpressionFunction::ParameterList()
|
||||||
<< QgsExpressionFunction::Parameter( QStringLiteral( "layer" ) )
|
<< QgsExpressionFunction::Parameter( QStringLiteral( "layer" ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user