Skip to content

Commit a1d130a

Browse files
committedSep 26, 2018
Fix spelling
1 parent 8831f19 commit a1d130a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed
 

‎python/core/auto_generated/layertree/qgslayertreeutils.sip.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@ child nodes of groups.
108108

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

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

121121
.. versionadded:: 3.4
122122
%End

‎src/core/layertree/qgslayertreeutils.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ class CORE_EXPORT QgsLayerTreeUtils
9696
static QSet<QgsMapLayer *> collectMapLayersRecursive( const QList<QgsLayerTreeNode *> &nodes );
9797

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

0 commit comments

Comments
 (0)
Please sign in to comment.