From a1d130ac97f294ac000a03ebbfc44dbb09a159ec Mon Sep 17 00:00:00 2001 From: Martin Dobias Date: Wed, 26 Sep 2018 12:08:26 +0200 Subject: [PATCH] Fix spelling --- .../auto_generated/layertree/qgslayertreeutils.sip.in | 8 ++++---- src/core/layertree/qgslayertreeutils.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/python/core/auto_generated/layertree/qgslayertreeutils.sip.in b/python/core/auto_generated/layertree/qgslayertreeutils.sip.in index 0b3c449f3ed0..bb2aeff2fb93 100644 --- a/python/core/auto_generated/layertree/qgslayertreeutils.sip.in +++ b/python/core/auto_generated/layertree/qgslayertreeutils.sip.in @@ -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 diff --git a/src/core/layertree/qgslayertreeutils.h b/src/core/layertree/qgslayertreeutils.h index b2ede9300983..330026121554 100644 --- a/src/core/layertree/qgslayertreeutils.h +++ b/src/core/layertree/qgslayertreeutils.h @@ -96,15 +96,15 @@ class CORE_EXPORT QgsLayerTreeUtils static QSet collectMapLayersRecursive( const QList &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 );