Skip to content

Commit

Permalink
Add Symbol Legend expression (qgis#4188)
Browse files Browse the repository at this point in the history
  • Loading branch information
roya0045 authored and DelazJ committed Sep 14, 2019
1 parent 7eb37fe commit 44ba189
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/docs/documentation_guidelines/substitutions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ Icon Substitution Icon
|expression| ``|expression|`` |dataDefineOn| ``|dataDefineOn|``
|dataDefineExpressionOn| ``|dataDefineExpressionOn|`` |dataDefineError| ``|dataDefineError|``
|dataDefineExpressionError| ``|dataDefineExpressionError|``
|addExpression| ``|addExpression|``
|expressionFilter| ``|expressionFilter|`` |filterMap| ``|filterMap|``
============================== ================================== ============================== ==================================

Expand Down Expand Up @@ -482,6 +483,8 @@ Icon Substitution Icon
:width: 1.5em
.. |addDelimitedTextLayer| image:: /static/common/mActionAddDelimitedTextLayer.png
:width: 1.5em
.. |addExpression| image:: /static/common/mActionAddExpression.png
:width: 1.5em
.. |addHtml| image:: /static/common/mActionAddHtml.png
:width: 1.5em
.. |addLayer| image:: /static/common/mActionAddLayer.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ panel provides the following functionalities (see figure_layout_legend_items_):
symbology), you can specify a boolean expression to remove from the legend
tree, styles that have no feature satisfying a condition. Note that the
features are nevertheless kept and shown in the layout map item.
* |addExpression| :sup:`Add symbol expression` allows you to add expressions
to each symbol label of a given layer. The label is represented by
the variable "@symbol_label" in the expression.

While the default behavior of the legend item is to mimic the
:guilabel:`Layers panel` tree, displaying the same groups, layers and classes
Expand Down Expand Up @@ -184,6 +187,8 @@ column or line can be customized through this dialog.
please add it also to the substitutions.txt file in the
source folder.
.. |addExpression| image:: /static/common/mActionAddExpression.png
:width: 1.5em
.. |addGroup| image:: /static/common/mActionAddGroup.png
:width: 1.5em
.. |addLegend| image:: /static/common/mActionAddLegend.png
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions source/substitutions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
:width: 1.5em
.. |addDelimitedTextLayer| image:: /static/common/mActionAddDelimitedTextLayer.png
:width: 1.5em
.. |addExpression| image:: /static/common/mActionAddExpression.png
:width: 1.5em
.. |addGCPPoint| image:: /static/common/mActionAddGCPPoint.png
:width: 1.5em
.. |addGroup| image:: /static/common/mActionAddGroup.png
Expand Down
Binary file added static/common/mActionAddExpression.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 44ba189

Please sign in to comment.