Navigation Menu

Skip to content

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Sep 26, 2018
1 parent 8831f19 commit a1d130a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions python/core/auto_generated/layertree/qgslayertreeutils.sip.in
Expand Up @@ -108,15 +108,15 @@ child nodes of groups.

static int countMapLayerInTree( QgsLayerTreeNode *tree, QgsMapLayer *layer );
%Docstring
Returns how many occurences of a map layer are there in a layer tree.
In normal situations there is at most one occurence, but sometimes there
Returns how many occurrences of a map layer are there in a layer tree.
In normal situations there is at most one occurrence, but sometimes there
may be temporarily more: for example, during drag&drop, upon drop a new layer
node is created while the original dragged node is still in the tree, resulting
in two occurences.
in two occurrences.

This is useful when deciding whether to start or stop listening to a signal
of a map layer within a layer tree and only connecting/disconnecting when
there is only one occurence of that layer.
there is only one occurrence of that layer.

.. versionadded:: 3.4
%End
Expand Down
8 changes: 4 additions & 4 deletions src/core/layertree/qgslayertreeutils.h
Expand Up @@ -96,15 +96,15 @@ class CORE_EXPORT QgsLayerTreeUtils
static QSet<QgsMapLayer *> collectMapLayersRecursive( const QList<QgsLayerTreeNode *> &nodes );

/**
* Returns how many occurences of a map layer are there in a layer tree.
* In normal situations there is at most one occurence, but sometimes there
* Returns how many occurrences of a map layer are there in a layer tree.
* In normal situations there is at most one occurrence, but sometimes there
* may be temporarily more: for example, during drag&drop, upon drop a new layer
* node is created while the original dragged node is still in the tree, resulting
* in two occurences.
* in two occurrences.
*
* This is useful when deciding whether to start or stop listening to a signal
* of a map layer within a layer tree and only connecting/disconnecting when
* there is only one occurence of that layer.
* there is only one occurrence of that layer.
* \since QGIS 3.4
*/
static int countMapLayerInTree( QgsLayerTreeNode *tree, QgsMapLayer *layer );
Expand Down

0 comments on commit a1d130a

Please sign in to comment.