Skip to content
Permalink
Browse files

Fix spelling

  • Loading branch information
wonder-sk committed Sep 26, 2018
1 parent 8831f19 commit a1d130ac97f294ac000a03ebbfc44dbb09a159ec
@@ -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
@@ -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 );

0 comments on commit a1d130a

Please sign in to comment.
You can’t perform that action at this time.