Skip to content

Commit

Permalink
Integrate the setLayers docs
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and github-actions[bot] committed Jun 9, 2021
1 parent d10331e commit 8675174
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions python/core/auto_generated/layout/qgslayoutitemmap.sip.in
Expand Up @@ -508,12 +508,15 @@ be used instead.

void setLayers( const QList<QgsMapLayer *> &layers );
%Docstring
Sets the stored ``layers`` set. If empty, the current project layers will
be used instead.
Sets the stored ``layers`` set. If empty, the current project layers or the
layer specified in the map theme (if the follow visibility preset flag is set)
will be used instead.

.. seealso:: :py:func:`layers`

.. seealso:: :py:func:`keepLayerSet`

.. seealso:: :py:func:`followVisibilityPreset`
%End

bool keepLayerStyles() const;
Expand Down
6 changes: 4 additions & 2 deletions src/core/layout/qgslayoutitemmap.h
Expand Up @@ -513,10 +513,12 @@ class CORE_EXPORT QgsLayoutItemMap : public QgsLayoutItem, public QgsTemporalRan
QList<QgsMapLayer *> layers() const;

/**
* Sets the stored \a layers set. If empty, the current project layers will
* be used instead.
* Sets the stored \a layers set. If empty, the current project layers or the
* layer specified in the map theme (if the follow visibility preset flag is set)
* will be used instead.
* \see layers()
* \see keepLayerSet()
* \see followVisibilityPreset()
*/
void setLayers( const QList<QgsMapLayer *> &layers );

Expand Down

0 comments on commit 8675174

Please sign in to comment.