Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix spelling (#37849)
fix the spelling errors
  • Loading branch information
PeterPetrik committed Jul 21, 2020
1 parent 9fedd2c commit d9f18cc
Show file tree
Hide file tree
Showing 44 changed files with 75 additions and 72 deletions.
2 changes: 1 addition & 1 deletion images/images.qrc
Expand Up @@ -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>
Expand Down
File renamed without changes
Expand Up @@ -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.

Expand Down
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions python/core/auto_generated/mesh/qgsmeshdataset.sip.in
Expand Up @@ -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)
Expand Down Expand Up @@ -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 );
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions python/core/auto_generated/qgsbrowserproxymodel.sip.in
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions python/core/auto_generated/qgssnappingconfig.sip.in
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgssnappingutils.sip.in
Expand Up @@ -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`
Expand Down
4 changes: 2 additions & 2 deletions python/core/auto_generated/qgstemporalutils.sip.in
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsvectorlayer.sip.in
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python/gui/auto_additions/qgsprocessingaggregatewidgets.py
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions python/gui/auto_generated/qgsbrowserdockwidget.sip.in
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/Relief.py
Expand Up @@ -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}
2 changes: 2 additions & 0 deletions scripts/spell_check/spelling.dat
Expand Up @@ -3035,6 +3035,7 @@ fatc:fact
fatser:faster
fature:feature
faught:fought
favourite:favorite*
favoutrable:favourable
feasable:feasible
featre:feature
Expand Down Expand Up @@ -4393,6 +4394,7 @@ malicously:maliciously
malplace:misplace:*
malplaced:misplaced
maltesian:Maltese
mame:name
mamal:mammal
mamalian:mammalian
mamory:memory
Expand Down
2 changes: 1 addition & 1 deletion src/app/browser/qgsinbuiltdataitemproviders.cpp
Expand Up @@ -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, [ = ]
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometryutils.cpp
Expand Up @@ -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 )
Expand Down
2 changes: 1 addition & 1 deletion src/core/layertree/qgslayertreefilterproxymodel.h
Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutexporter.h
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/core/mesh/qgsmeshdataprovidertemporalcapabilities.h
Expand Up @@ -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
*
Expand Down
10 changes: 5 additions & 5 deletions src/core/mesh/qgsmeshdataset.h
Expand Up @@ -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();
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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 );
Expand Down
12 changes: 6 additions & 6 deletions src/core/mesh/qgsmeshdatasetgroupstore.h
Expand Up @@ -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;
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions src/core/providers/gdal/qgsgdalprovider.cpp
Expand Up @@ -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.
Expand Down Expand Up @@ -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 )
Expand Down
2 changes: 1 addition & 1 deletion src/core/providers/ogr/qgsogrdataitems.cpp
Expand Up @@ -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 ) );
Expand Down
8 changes: 4 additions & 4 deletions src/core/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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" );
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsattributeeditorelement.h
Expand Up @@ -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
Expand Down

0 comments on commit d9f18cc

Please sign in to comment.