mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix spelling
This commit is contained in:
parent
8831f19b79
commit
a1d130ac97
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user