Skip to content
Permalink
Browse files
Integrate the setLayers docs
  • Loading branch information
elpaso committed May 26, 2021
1 parent b46ce08 commit cf45b6b23f8fdbc44436bca631b37998fae0ec9f
Showing with 9 additions and 4 deletions.
  1. +5 −2 python/core/auto_generated/layout/qgslayoutitemmap.sip.in
  2. +4 −2 src/core/layout/qgslayoutitemmap.h
@@ -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;
@@ -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 );

0 comments on commit cf45b6b

Please sign in to comment.