Skip to content
Permalink
Browse files

Fix spelling (#37849)

fix the spelling errors
  • Loading branch information
PeterPetrik committed Jul 21, 2020
1 parent 9fedd2c commit d9f18ccb9c8041187d4f70442f305670a6ff3699
Showing with 75 additions and 72 deletions.
  1. +1 −1 images/images.qrc
  2. 0 images/themes/default/{mIconFavourites.svg → mIconFavorites.svg}
  3. +1 −1 python/core/auto_generated/layertree/qgslayertreefilterproxymodel.sip.in
  4. +1 −1 python/core/auto_generated/mesh/qgsmeshdataprovidertemporalcapabilities.sip.in
  5. +4 −4 python/core/auto_generated/mesh/qgsmeshdataset.sip.in
  6. +4 −4 python/core/auto_generated/qgsbrowserproxymodel.sip.in
  7. +2 −2 python/core/auto_generated/qgssnappingconfig.sip.in
  8. +1 −1 python/core/auto_generated/qgssnappingutils.sip.in
  9. +2 −2 python/core/auto_generated/qgstemporalutils.sip.in
  10. +1 −1 python/core/auto_generated/qgsvectorlayer.sip.in
  11. +1 −1 python/gui/auto_additions/qgsprocessingaggregatewidgets.py
  12. +2 −2 python/gui/auto_generated/qgsbrowserdockwidget.sip.in
  13. +1 −1 python/plugins/processing/algs/qgis/Relief.py
  14. +2 −0 scripts/spell_check/spelling.dat
  15. +1 −1 src/app/browser/qgsinbuiltdataitemproviders.cpp
  16. +1 −1 src/core/geometry/qgsgeometryutils.cpp
  17. +1 −1 src/core/layertree/qgslayertreefilterproxymodel.h
  18. +1 −1 src/core/layout/qgslayoutexporter.h
  19. +1 −1 src/core/mesh/qgsmeshdataprovidertemporalcapabilities.h
  20. +5 −5 src/core/mesh/qgsmeshdataset.h
  21. +6 −6 src/core/mesh/qgsmeshdatasetgroupstore.h
  22. +2 −2 src/core/providers/gdal/qgsgdalprovider.cpp
  23. +1 −1 src/core/providers/ogr/qgsogrdataitems.cpp
  24. +4 −4 src/core/providers/ogr/qgsogrprovider.cpp
  25. +1 −1 src/core/qgsattributeeditorelement.h
  26. +1 −1 src/core/qgsbrowsermodel.cpp
  27. +1 −1 src/core/qgsbrowsermodel.h
  28. +4 −4 src/core/qgsbrowserproxymodel.h
  29. +3 −2 src/core/qgsdataitem.cpp
  30. +1 −1 src/core/qgsmaprendererjob.cpp
  31. +2 −2 src/core/qgssnappingconfig.h
  32. +1 −1 src/core/qgssnappingutils.cpp
  33. +2 −2 src/core/qgssnappingutils.h
  34. +1 −1 src/core/qgssqliteutils.cpp
  35. +2 −2 src/core/qgstemporalutils.h
  36. +1 −1 src/core/qgsvectorlayer.h
  37. +1 −1 src/core/vectortile/qgsvectortilemvtencoder.cpp
  38. +1 −1 src/gui/processing/qgsprocessingaggregatewidgets.h
  39. +2 −2 src/gui/qgsbrowserdockwidget.h
  40. +1 −1 src/gui/qgsmaptoolcapture.h
  41. +1 −1 src/providers/db2/qgsdb2dataitems.cpp
  42. +1 −1 tests/src/3d/testqgstessellator.cpp
  43. +1 −1 tests/src/analysis/testqgsprocessing.cpp
  44. +1 −1 tests/src/python/providertestbase.py
@@ -488,7 +488,7 @@
<file>themes/default/mIconExpressionFilter.svg</file>
<file>themes/default/mIconExpressionPreview.svg</file>
<file>themes/default/mIconExpressionSelect.svg</file>
<file>themes/default/mIconFavourites.svg</file>
<file>themes/default/mIconFavorites.svg</file>
<file>themes/default/mIconFieldDate.svg</file>
<file>themes/default/mIconFieldDateTime.svg</file>
<file>themes/default/mIconFieldFloat.svg</file>
File renamed without changes.
@@ -16,7 +16,7 @@ class QgsLayerTreeFilterProxyModel : QSortFilterProxyModel
QgsLayerTreeFilterProxyModel is a sort filter proxy model to easily reproduce the legend/layer tree in a tree view.
Layers are checkable by default.
Symbology nodes will not be shown.
Layers can be fitlered by their type.
Layers can be filtered by their type.

For more complex use-cases, the model can be re-implemented to allow a different interaction or to add more columns.

@@ -36,7 +36,7 @@ Constructor for QgsMeshDataProviderTemporalCapabilities

QgsMeshDatasetIndex datasetIndexClosestBeforeRelativeTime( int group, qint64 timeSinceGlobalReference ) const;
%Docstring
Returns the last dataset whith time less than or equal to ``timeSinceGlobalReference``
Returns the last dataset with time less than or equal to ``timeSinceGlobalReference``

Returns invalid dataset index if ``timeSinceGlobalReference`` is outside the time extent of the dataset group

@@ -613,7 +613,7 @@ Constructor

QgsMeshDatasetGroupTreeItem( const QDomElement &itemElement, const QgsReadWriteContext &context );
%Docstring
Constructor from a DOM element, contruct also the children
Constructor from a DOM element, constructs also the children

:param itemElement: the DOM element
:param context: writing context (e.g. for conversion between relative and absolute paths)
@@ -658,7 +658,7 @@ Returns a child

:param row: the position of the child

:return: the item at the positon ``row``
:return: the item at the position ``row``
%End

QgsMeshDatasetGroupTreeItem *childFromDatasetGroupIndex( int index );
@@ -702,7 +702,7 @@ Returns the position of the item in the parent
QString name() const;
%Docstring
Returns the name of the item
This mame is the default name if the name has not been overrided (:py:func:`setName`)
This name is the default name if the name has not been overridden (:py:func:`setName`)

:return: the name to display
%End
@@ -711,7 +711,7 @@ This mame is the default name if the name has not been overrided (:py:func:`setN
%Docstring
Overrides the default name with the name to display.
The default name is still stored in the item
but will not be displayed anymore except if the empty string is setted.
but will not be displayed anymore except if the empty string is set.

:param name: to display
%End
@@ -135,10 +135,10 @@ Sets the layer ``type`` to filter the model by. This is only used if

void setHiddenDataItemProviderKeyFilter( const QStringList &hiddenItemsFilter );
%Docstring
Sets a filter to hide data items based on on item's data item provider key.
Sets a filter to hide data items based on :py:func:`QgsDataItem.providerKey()` associated with the item.

By default browser model shows all items from all available data item providers and few special
items (e.g. Favourites).
items (e.g. Favorites).
To customize the behavior, set the filter to not load certain data items.
The items that are not based on data item providers have prefix "special:", for example
"special:Favorites", "special:Home", "PostGIS", "MSSQL"
@@ -153,10 +153,10 @@ This filter is always evaluated.

void setShownDataItemProviderKeyFilter( const QStringList &shownItemsFilter );
%Docstring
Sets a filter to show data items based on on item's data item provider key.
Sets a filter to show data items based on :py:func:`QgsDataItem.providerKey()` associated with the item.

By default browser model shows all items from all available data item providers and few special
items (e.g. Favourites).
items (e.g. Favorites).
To customize the behavior, set the filter to load only certain data items.
The items that are not based on data item providers have prefix "special:", for example
"special:Favorites", "special:Home", "PostGIS", "MSSQL"
@@ -347,14 +347,14 @@ Sets if the snapping on intersection is enabled

bool selfSnapping() const;
%Docstring
Returns if self snapping (snapping to the currently digitised feature) is enabled
Returns if self snapping (snapping to the currently digitized feature) is enabled

.. versionadded:: 3.14
%End

void setSelfSnapping( bool enabled );
%Docstring
Sets if self snapping (snapping to the currently digitised feature) is enabled
Sets if self snapping (snapping to the currently digitized feature) is enabled

.. versionadded:: 3.14
%End
@@ -171,7 +171,7 @@ Set if invisible features must be snapped or not.
void addExtraSnapLayer( QgsVectorLayer *vl );
%Docstring
Supply an extra snapping layer (typically a memory layer).
This can be used by map tools to provide additionnal
This can be used by map tools to provide additional
snappings points.

.. seealso:: :py:func:`removeExtraSnapLayer`
@@ -53,12 +53,12 @@ The ``mapSettings`` argument dictates the overall map settings such as extent
and size, while animation and export specific settings are specified via the ``settings``
argument.

An optional ``feedback`` argument can be used to provide progress reports and cancelation
An optional ``feedback`` argument can be used to provide progress reports and cancellation
support.

:param mapSettings: settings controlling the map render
:param settings: animation and export settings
:param feedback: optional feedback object for progress reports and cancelation checks
:param feedback: optional feedback object for progress reports and cancellation checks

:return: - ``True`` if the export was successful.
- error: will be set to a descriptive error message if the export fails
@@ -2676,7 +2676,7 @@ Emitted before changes are rolled back.

void afterCommitChanges();
%Docstring
Emitted after changes are commited to the data provider.
Emitted after changes are committed to the data provider.

.. versionadded:: 3.16
%End
@@ -2,7 +2,7 @@
# monkey patching scoped based enum
QgsAggregateMappingModel.ColumnDataIndex.SourceExpression.__doc__ = "Expression"
QgsAggregateMappingModel.ColumnDataIndex.Aggregate.__doc__ = "Aggregate name"
QgsAggregateMappingModel.ColumnDataIndex.Delimiter.__doc__ = "Delimeter"
QgsAggregateMappingModel.ColumnDataIndex.Delimiter.__doc__ = "Delimiter"
QgsAggregateMappingModel.ColumnDataIndex.DestinationName.__doc__ = "Destination field name"
QgsAggregateMappingModel.ColumnDataIndex.DestinationType.__doc__ = "Destination field QVariant::Type casted to (int)"
QgsAggregateMappingModel.ColumnDataIndex.DestinationLength.__doc__ = "Destination field length"
@@ -65,8 +65,8 @@ Returns the message bar associated with the dock.
Sets the customization for data items based on item's data provider key

By default browser model shows all items from all available data items provider and few special
items (e.g. Favourites). To customize the behavior, set the filter to not load certain data items.
The items that are not based on data item providers (e.g. Favourites, Home) have
items (e.g. Favorites). To customize the behavior, set the filter to not load certain data items.
The items that are not based on data item providers (e.g. Favorites, Home) have
prefix "special:"

Used in the proxy browser model to hide items
@@ -170,6 +170,6 @@ def processAlgorithm(self, parameters, context, feedback):
elif res == 6:
raise QgsProcessingException(self.tr('Output raster size is too small (at least 3 rows needed).'))
elif res == 7:
feedback.pushInfo(self.tr('Cancelled.'))
feedback.pushInfo(self.tr('Canceled.'))

return {self.OUTPUT: outputFile, self.FREQUENCY_DISTRIBUTION: frequencyDistribution}
@@ -3035,6 +3035,7 @@ fatc:fact
fatser:faster
fature:feature
faught:fought
favourite:favorite*
favoutrable:favourable
feasable:feasible
featre:feature
@@ -4393,6 +4394,7 @@ malicously:maliciously
malplace:misplace:*
malplaced:misplaced
maltesian:Maltese
mame:name
mamal:mammal
mamalian:mammalian
mamory:memory
@@ -141,7 +141,7 @@ void QgsAppDirectoryItemGuiProvider::populateContextMenu( QgsDataItem *item, QMe
{
// only non-root directories can be added as favorites
QAction *addAsFavorite = new QAction( tr( "Add as a Favorite" ), menu );
addAsFavorite->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mIconFavourites.svg" ) ) );
addAsFavorite->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mIconFavorites.svg" ) ) );
menu->addAction( addAsFavorite );
connect( addAsFavorite, &QAction::triggered, this, [ = ]
{
@@ -915,7 +915,7 @@ bool QgsGeometryUtils::pointContinuesArc( const QgsPoint &a1, const QgsPoint &a2
double angle2 = arcAngle( a2, a3, b );

// Is the sweep angle similar to the previous one?
// We only consider a segment replacable by an arc if the points within
// We only consider a segment replaceable by an arc if the points within
// it are regularly spaced
diff = std::fabs( angle1 - angle2 );
if ( diff > pointSpacingAngleTolerance )
@@ -31,7 +31,7 @@ class QgsLayerTreeNode;
* QgsLayerTreeFilterProxyModel is a sort filter proxy model to easily reproduce the legend/layer tree in a tree view.
* Layers are checkable by default.
* Symbology nodes will not be shown.
* Layers can be fitlered by their type.
* Layers can be filtered by their type.
*
* For more complex use-cases, the model can be re-implemented to allow a different interaction or to add more columns.
*
@@ -336,7 +336,7 @@ class CORE_EXPORT QgsLayoutExporter
*
* \since QGIS 3.14
*/
bool exportLayersAsSeperateFiles = false;
bool exportLayersAsSeperateFiles = false; // TODO QGIS 4 fix typo

/**
* TRUE if ISO3200 extension format georeferencing should be used.
@@ -50,7 +50,7 @@ class CORE_EXPORT QgsMeshDataProviderTemporalCapabilities: public QgsDataProvide
QgsMeshDataProviderTemporalCapabilities();

/**
* Returns the last dataset whith time less than or equal to \a timeSinceGlobalReference
* Returns the last dataset with time less than or equal to \a timeSinceGlobalReference
*
* Returns invalid dataset index if \a timeSinceGlobalReference is outside the time extent of the dataset group
*
@@ -587,15 +587,15 @@ class CORE_EXPORT QgsMeshDatasetGroupTreeItem
int index );

/**
* Constructor from a DOM element, contruct also the children
* Constructor from a DOM element, constructs also the children
*
* \param itemElement the DOM element
* \param context writing context (e.g. for conversion between relative and absolute paths)
*/
QgsMeshDatasetGroupTreeItem( const QDomElement &itemElement, const QgsReadWriteContext &context );

/**
* Destructor, destructs also the chilren
* Destructor, destructs also the children
*
*/
~QgsMeshDatasetGroupTreeItem();
@@ -628,7 +628,7 @@ class CORE_EXPORT QgsMeshDatasetGroupTreeItem
/**
* Returns a child
* \param row the position of the child
* \return the item at the positon \a row
* \return the item at the position \a row
*/
QgsMeshDatasetGroupTreeItem *child( int row ) const;

@@ -667,15 +667,15 @@ class CORE_EXPORT QgsMeshDatasetGroupTreeItem

/**
* Returns the name of the item
* This mame is the default name if the name has not been overrided (\see setName())
* This name is the default name if the name has not been overridden (\see setName())
* \return the name to display
*/
QString name() const;

/**
* Overrides the default name with the name to display.
* The default name is still stored in the item
* but will not be displayed anymore except if the empty string is setted.
* but will not be displayed anymore except if the empty string is set.
* \param name to display
*/
void setName( const QString &name );
@@ -44,7 +44,7 @@ class QgsMeshExtraDatasetStore: public QgsMeshDatasetSourceInterface
//! Returns whether if the dataset groups have temporal capabilities (a least one dataset group with more than one dataset)
bool hasTemporalCapabilities() const;

//! Returns the relative times of the dataset index with \a index, returned value in miliseconds
//! Returns the relative times of the dataset index with \a index, returned value in milliseconds
quint64 datasetRelativeTime( QgsMeshDatasetIndex index );

int datasetGroupCount() const override;
@@ -96,10 +96,10 @@ class QgsMeshExtraDatasetStore: public QgsMeshDatasetSourceInterface
* This storing class has the repsonsability to assign this unique grlobal dataset group index and to link this dataset group index with the dataset group
*
* All dataset values or information needed can be retrieved from a QgsMeshDatasetIndex with the group index corresponding to the global group index.
* The native group index is not exposed and global index can be obtained with datasetGroupIndexes() that returns the list of gloabl index available.
* The native group index is not exposed and global index can be obtained with datasetGroupIndexes() that returns the list of global index available.
* The dataset index is the same than in the native source (data provider or other dataset source)
*
* This class as also the responsability to handle the dataset group tree item that contain information to display the available dataset (\see QgsMeshDatasetGroupTreeItem)
* This class as also the responsibility to handle the dataset group tree item that contain information to display the available dataset (\see QgsMeshDatasetGroupTreeItem)
*
* \since QGIS 3.16
*/
@@ -181,7 +181,7 @@ class QgsMeshDatasetGroupStore: public QObject
//! Returns the relative time of the dataset from the persistent provider reference time
quint64 datasetRelativeTime( const QgsMeshDatasetIndex &index ) const;

//! Returns wether at lea&st one of stored dataset group is temporal
//! Returns whether at lea&st one of stored dataset group is temporal
bool hasTemporalCapabilities() const;

//! Writes the store's information in a DOM document
@@ -191,7 +191,7 @@ class QgsMeshDatasetGroupStore: public QObject
void readXml( const QDomElement &storeElem, const QgsReadWriteContext &context );

signals:
//! emited after dataset groups are added
//! Emitted after dataset groups are added
void datasetGroupsAdded( QList<int> indexes );

private slots:
@@ -213,7 +213,7 @@ class QgsMeshDatasetGroupStore: public QObject
int nativeIndexToGroupIndex( QgsMeshDatasetSourceInterface *source, int providerIndex );
void createDatasetGroupTreeItems( const QList<int> &indexes );

//! Erases from the where this is store, not from the store (registry and tree item), for peristent dataset group, do nothing
//! Erases from the where this is store, not from the store (registry and tree item), for persistent dataset group, do nothing
void eraseDatasetGroup( const DatasetGroup &group );

//! Erases from the extra store but not from the main store (e.g. from egistry and from tree item))
@@ -975,7 +975,7 @@ bool QgsGdalProvider::readBlock( int bandNo, QgsRectangle const &reqExtent, int
sExtraArg.eResampleAlg != GRIORA_NearestNeighbour &&
sExtraArg.eResampleAlg != GRIORA_Bilinear )
{
// As time of writing in GDAL up to 3.1, there's a difference of behaviour
// As time of writing in GDAL up to 3.1, there's a difference of behavior
// when using non-nearest resampling on mask bands.
// With bilinear, values are returned in [0,255] range
// whereas with cubic (and other convolution-based methods), there are in [0,1] range.
@@ -1005,7 +1005,7 @@ bool QgsGdalProvider::readBlock( int bandNo, QgsRectangle const &reqExtent, int
}
// Provider resampling was asked but we cannot do it in a performant way
// (too much downsampling compared to the allowed maximum resampling factor),
// so fallback to something replicating QgsRasterResampleFilter behaviour
// so fallback to something replicating QgsRasterResampleFilter behavior
else if ( mProviderResamplingEnabled &&
mZoomedOutResamplingMethod != QgsRasterDataProvider::ResamplingMethod::Nearest &&
resamplingFactor > 1 )
@@ -265,7 +265,7 @@ QList<QgsOgrDbLayerInfo *> QgsOgrLayerItem::subLayers( const QString &path, cons
{
QString errorMessage;
// If it is file based and the file exists, there might be a permission error, let's change
// the message to give the user a hint about this possiblity.
// the message to give the user a hint about this possibility.
if ( QFile::exists( path ) )
{
errorMessage = tr( "The file does not contain any layer or there was an error opening the file.\nCheck file and directory permissions on\n%1" ).arg( QDir::toNativeSeparators( path ) );
@@ -55,7 +55,7 @@ email : sherman at mrcc.com
#include <ogr_srs_api.h>
#include <cpl_string.h>

// Temporary solution until GDAL Unique suppport is available
// Temporary solution until GDAL Unique support is available
#include "qgssqliteutils.h"
#include <sqlite3.h>
// end temporary
@@ -3963,7 +3963,7 @@ QVariant QgsOgrProvider::minimumValue( int index ) const

if ( originalField.type() == QVariant::DateTime )
{
// ensure that we treat times as local time, to match behaviour when iterating features
// ensure that we treat times as local time, to match behavior when iterating features
QDateTime temp = res.toDateTime();
temp.setTimeSpec( Qt::LocalTime );
res = temp;
@@ -4019,7 +4019,7 @@ QVariant QgsOgrProvider::maximumValue( int index ) const

if ( originalField.type() == QVariant::DateTime )
{
// ensure that we treat times as local time, to match behaviour when iterating features
// ensure that we treat times as local time, to match behavior when iterating features
QDateTime temp = res.toDateTime();
temp.setTimeSpec( Qt::LocalTime );
res = temp;
@@ -4098,7 +4098,7 @@ GDALDatasetH QgsOgrProviderUtils::GDALOpenWrapper( const char *pszPath, bool bUp
}
else if ( bIsGpkg )
{
// If WAL isn't set, we explicitely disable it, as it is persistent and it
// If WAL isn't set, we explicitly disable it, as it is persistent and it
// may have been set on a previous connection.
CPLSetThreadLocalConfigOption( "OGR_SQLITE_JOURNAL", "DELETE" );
}
@@ -345,7 +345,7 @@ class CORE_EXPORT QgsAttributeEditorRelation : public QgsAttributeEditorElement
Link = 1 << 1, //!< Link button
Unlink = 1 << 2, //!< Unlink button
SaveChildEdits = 1 << 3, //!< Save child edits button
AddChildFeature = 1 << 4, //!< Add child feature (as in some projects we only want to allow to link/unlink existing features)
AddChildFeature = 1 << 4, //!< Add child feature (as in some projects we only want to allow linking/unlinking existing features)
DuplicateChildFeature = 1 << 5, //!< Duplicate child feature
DeleteChildFeature = 1 << 6, //!< Delete child feature button
ZoomToChildFeature = 1 << 7, //!< Zoom to child feature

0 comments on commit d9f18cc

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