Skip to content

Commit

Permalink
Misc. typos
Browse files Browse the repository at this point in the history
Found via `codespell -q 3 -I ../qgis-word-whitelist.txt --skip="*.ts,*.po,./scripts/spell_check"`
  • Loading branch information
luzpaz authored and jef-n committed Sep 6, 2018
1 parent d6b2537 commit 0908daa
Show file tree
Hide file tree
Showing 38 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion scripts/context_help_id.py
Expand Up @@ -33,7 +33,7 @@
"""
import hashlib
import sys
# check to see if a class name was specified and if so, craete the context id
# check to see if a class name was specified and if so, create the context id
if len(sys.argv) > 1:
hash = hashlib.sha1()
# set the hash to the name passed on the command line
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/interpolation/DualEdgeTriangulation.cpp
Expand Up @@ -1579,7 +1579,7 @@ void DualEdgeTriangulation::eliminateHorizontalTriangles()
el2 = mPointVector[p2]->z();
el3 = mPointVector[p3]->z();

if ( el1 == el2 && el2 == el3 )//we found a horizonal triangle
if ( el1 == el2 && el2 == el3 )//we found a horizontal triangle
{
//swap edges if it is possible, if it would remove the horizontal triangle and if the minimum angle generated by the swap is high enough
if ( swapPossible( ( uint )e1 ) && mPointVector[mHalfEdge[mHalfEdge[mHalfEdge[e1]->getDual()]->getNext()]->getPoint()]->z() != el1 && swapMinAngle( e1 ) > minangle )
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgstriangle.h
Expand Up @@ -211,7 +211,7 @@ class CORE_EXPORT QgsTriangle : public QgsPolygon
bool isRight( double angleTolerance = 0.0001 ) const;

/**
* Is the triangle scalene (all sides have differen lengths)?
* Is the triangle scalene (all sides have different lengths)?
* \param lengthTolerance The tolerance to use
* \returns True or False. Always false for empty triangle.
* * Example:
Expand Down
2 changes: 1 addition & 1 deletion src/core/pal/pointset.cpp
Expand Up @@ -499,7 +499,7 @@ void PointSet::splitPolygons( QLinkedList<PointSet *> &shapes_toProcess,
if ( shape->parent )
delete shape;
}
// check for useless spliting
// check for useless splitting
else if ( imax == imin || nbPtSh1 <= 2 || nbPtSh2 <= 2 || nbPtSh1 == nbp || nbPtSh2 == nbp )
{
shapes_final.append( shape );
Expand Down
4 changes: 2 additions & 2 deletions src/core/processing/models/qgsprocessingmodelalgorithm.cpp
Expand Up @@ -865,7 +865,7 @@ bool QgsProcessingModelAlgorithm::loadVariant( const QVariant &model )
for ( ; childIt != childMap.constEnd(); ++childIt )
{
QgsProcessingModelChildAlgorithm child;
// we be leniant here - even if we couldn't load a parameter, don't interrupt the model loading
// we be lenient here - even if we couldn't load a parameter, don't interrupt the model loading
// otherwise models may become unusable (e.g. due to removed plugins providing algs/parameters)
// with no way for users to repair them
if ( !child.loadVariant( childIt.value() ) )
Expand Down Expand Up @@ -893,7 +893,7 @@ bool QgsProcessingModelAlgorithm::loadVariant( const QVariant &model )
for ( ; paramDefIt != paramDefMap.constEnd(); ++paramDefIt )
{
std::unique_ptr< QgsProcessingParameterDefinition > param( QgsProcessingParameters::parameterFromVariantMap( paramDefIt.value().toMap() ) );
// we be leniant here - even if we couldn't load a parameter, don't interrupt the model loading
// we be lenient here - even if we couldn't load a parameter, don't interrupt the model loading
// otherwise models may become unusable (e.g. due to removed plugins providing algs/parameters)
// with no way for users to repair them
if ( param )
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsdataitem.h
Expand Up @@ -326,7 +326,7 @@ class CORE_EXPORT QgsDataItem : public QObject
QVector<QgsDataItem *> mChildren; // easier to have it always
State mState;
QString mName;
// Path is slash ('/') separated chain of item identifiers which are usually item names, but may be differen if it is
// Path is slash ('/') separated chain of item identifiers which are usually item names, but may be different if it is
// necessary to distinguish paths of two providers to the same source (e.g GRASS location and standard directory have the same
// name but different paths). Identifiers in path must not contain '/' characters.
// The path is used to identify item in tree.
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsgmlschema.h
Expand Up @@ -116,7 +116,7 @@ class CORE_EXPORT QgsGmlSchema : public QObject
BoundingBox,
FeatureMembers, // gml:featureMembers
FeatureMember, // gml:featureMember
Feature, // feature element containint attrs and geo (inside gml:featureMember)
Feature, // feature element containing attrs and geo (inside gml:featureMember)
Attribute,
Geometry
};
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgslegendsettings.cpp
Expand Up @@ -38,7 +38,7 @@ QgsLegendSettings::QgsLegendSettings()
QStringList QgsLegendSettings::splitStringForWrapping( const QString &stringToSplt ) const
{
QStringList list;
// If the string contains nothing then just return the string without spliting.
// If the string contains nothing then just return the string without splitting.
if ( wrapChar().count() == 0 )
list << stringToSplt;
else
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgstestutils.cpp
Expand Up @@ -40,7 +40,7 @@ bool QgsTestUtils::testProviderIteratorThreadSafety( QgsVectorDataProvider *prov
jobs.append( qMakePair( provider, request ) );
}

//freaking hammmer the provider with a ton of concurrent requests.
//freaking hammer the provider with a ton of concurrent requests.
//thread unsafe providers... you better be ready!!!!
QtConcurrent::blockingMap( jobs, getFeaturesForProvider );

Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.h
Expand Up @@ -2258,7 +2258,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
void editCommandEnded();

/**
* Signal emitted, whan an edit command is destroyed
* Signal emitted, when an edit command is destroyed
* \note This is not a rollback, it is only related to the current edit command.
* See beforeRollBack()
*/
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayerdiagramprovider.h
Expand Up @@ -100,7 +100,7 @@ class CORE_EXPORT QgsVectorLayerDiagramProvider : public QgsAbstractLabelProvide
protected:
//! initialization method - called from constructors
void init();
//! helper method to register one diagram feautre
//! helper method to register one diagram feature
QgsLabelFeature *registerDiagram( QgsFeature &feat, QgsRenderContext &context, const QgsGeometry &obstacleGeometry = QgsGeometry() );

protected:
Expand Down
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterpipe.h
Expand Up @@ -116,7 +116,7 @@ class CORE_EXPORT QgsRasterPipe
* Returns true on success */
bool setOn( int idx, bool on );

//! Test if interface at index may be swithed on/off
//! Test if interface at index may be switched on/off
bool canSetOn( int idx, bool on );

// Getters for special types of interfaces
Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology/qgsstyle.h
Expand Up @@ -49,7 +49,7 @@ typedef QMap<int, QString> QgsSymbolGroupMap;
*
* The supported constraints are:
* tag -> symbol has the tag matching the parameter
* !tag -> symbol doesnot have the tag matching the parameter
* !tag -> symbol doesn't have the tag matching the parameter
* name -> symbol has a part of its name matching the parameter
* !name -> symbol doesn't have any part of the name matching the parameter
*
Expand Down
2 changes: 1 addition & 1 deletion src/gui/auth/qgsauthsslconfigwidget.h
Expand Up @@ -68,7 +68,7 @@ class GUI_EXPORT QgsAuthSslConfigWidget : public QWidget, private Ui::QgsAuthSsl
//! Gets the host:port to associate with the server certificate
const QString sslHost();

//! Gets the SSL protocl used for connections
//! Gets the SSL protocol used for connections
QSsl::SslProtocol sslProtocol();

//! Gets list of the SSL errors (as enums) to be ignored for connections
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsattributedialog.h
Expand Up @@ -88,7 +88,7 @@ class GUI_EXPORT QgsAttributeDialog : public QDialog
void setEditCommandMessage( const QString &message ) { mAttributeForm->setEditCommandMessage( message ); }

/**
* Intercept window activate/deactive events to show/hide the highlighted feature.
* Intercept window activate/deactivate events to show/hide the highlighted feature.
*
* \param e The event
*
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsattributetypeloaddialog.h
Expand Up @@ -54,7 +54,7 @@ class GUI_EXPORT QgsAttributeTypeLoadDialog: public QDialog, private Ui::QgsAttr
/**
* Returns the value map which is currently active.
*
* \returns value map of vlues selected from layer
* \returns value map of values selected from layer
*/
QMap<QString, QVariant> &valueMap();

Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsrasterformatsaveoptionswidget.h
Expand Up @@ -100,7 +100,7 @@ class GUI_EXPORT QgsRasterFormatSaveOptionsWidget: public QWidget, private Ui::Q
void apply();

/**
* Opens window with options desctiption for given provider
* Opens window with options description for given provider
* and output format
*/
void helpOptions();
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgsrasterlayersaveasdialog.cpp
Expand Up @@ -703,12 +703,12 @@ void QgsRasterLayerSaveAsDialog::mTileModeCheckBox_toggled( bool toggled )

// Disabled (Radim), auto enabling of pyramids was making impression that
// we (programmers) know better what you (user) want to do,
// certainly auto expaning was bad experience
// certainly auto expanding was a bad experience

//if ( ! mPyramidsGroupBox->isChecked() )
// mPyramidsGroupBox->setChecked( true );

// Auto expanding mPyramidsGroupBox is bad - it auto crolls content of dialog
// Auto expanding mPyramidsGroupBox is bad - it auto scrolls content of dialog
//if ( mPyramidsGroupBox->isCollapsed() )
// mPyramidsGroupBox->setCollapsed( false );
//mPyramidsOptionsWidget->checkAllLevels( true );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsrelationeditorwidget.cpp
Expand Up @@ -45,7 +45,7 @@ QgsRelationEditorWidget::QgsRelationEditorWidget( QWidget *parent )
// buttons
QHBoxLayout *buttonLayout = new QHBoxLayout();
buttonLayout->setContentsMargins( 0, 0, 0, 0 );
// toogle editing
// toggle editing
mToggleEditingButton = new QToolButton( this );
mToggleEditingButton->setObjectName( QStringLiteral( "mToggleEditingButton" ) );
mToggleEditingButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionToggleEditing.svg" ) ) );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/symbology/qgsrulebasedrendererwidget.h
Expand Up @@ -27,7 +27,7 @@ class QgsSymbolSelectorWidget;

#include <QAbstractItemModel>

/* Features count fro rule */
/* Features count for rule */
struct QgsRuleBasedRendererCount SIP_SKIP
{
int count; // number of features
Expand Down
2 changes: 1 addition & 1 deletion src/providers/grass/qgsgrassgislib.cpp
Expand Up @@ -224,7 +224,7 @@ int GRASS_LIB_EXPORT QgsGrassGisLib::G__gisinit( const char *version, const char
}
mDistanceArea.setSourceCrs( mCrs );

// Read region fron environment variable
// Read region from environment variable
// QGIS_GRASS_REGION=west,south,east,north,cols,rows
#if 0
QString regionStr = getenv( "QGIS_GRASS_REGION" );
Expand Down
2 changes: 1 addition & 1 deletion src/providers/mssql/qgsmssqlsourceselect.cpp
Expand Up @@ -620,7 +620,7 @@ void QgsMssqlSourceSelect::btnConnect_clicked()
else
{
QApplication::restoreOverrideCursor();
// Let user know we couldn't retieve tables from the MSSQL provider
// Let user know we couldn't retrieve tables from the MSSQL provider
QMessageBox::warning( this,
tr( "MSSQL Provider" ), q.lastError().text() );
return;
Expand Down
2 changes: 1 addition & 1 deletion src/providers/wcs/qgswcsprovider.cpp
Expand Up @@ -63,7 +63,7 @@ static QString WCS_DESCRIPTION = QStringLiteral( "OGC Web Coverage Service versi

static QString DEFAULT_LATLON_CRS = QStringLiteral( "CRS:84" );

// TODO: colortable - use comon baseclass with gdal, mapserver does not support http://trac.osgeo.org/mapserver/ticket/1671
// TODO: colortable - use common baseclass with gdal, mapserver does not support http://trac.osgeo.org/mapserver/ticket/1671

QgsWcsProvider::QgsWcsProvider( const QString &uri, const ProviderOptions &options )
: QgsRasterDataProvider( uri, options )
Expand Down
2 changes: 1 addition & 1 deletion src/server/qgsbufferserverresponse.h
Expand Up @@ -66,7 +66,7 @@ class SERVER_EXPORT QgsBufferServerResponse: public QgsServerResponse
QMap<QString, QString> headers() const override { return mHeaders; }

/**
* Returns true if the headers have alredy been sent
* Returns true if the headers have already been sent
*/
bool headersSent() const override;

Expand Down
2 changes: 1 addition & 1 deletion src/server/qgsserverresponse.h
Expand Up @@ -73,7 +73,7 @@ class SERVER_EXPORT QgsServerResponse
virtual QMap<QString, QString> headers() const = 0;

/**
* Returns true if the headers have alredy been sent
* Returns true if the headers have already been sent
*/
virtual bool headersSent() const = 0;

Expand Down
4 changes: 2 additions & 2 deletions src/server/services/wfs/qgswfs.cpp
Expand Up @@ -2,8 +2,8 @@
qgswms.cpp
-------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
(C) 2012 by René-Luc D'Hont ( parts fron qgswmshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
(C) 2012 by René-Luc D'Hont ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
(C) 2016 by David Marteau
email : marco dot hugentobler at karto dot baug dot ethz dot ch
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wfs/qgswfsutils.cpp
Expand Up @@ -2,7 +2,7 @@
qgsfssutils.cpp
-------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
(C) 2012 by René-Luc D'Hont ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
(C) 2017 by David Marteau
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wfs/qgswfsutils.h
Expand Up @@ -4,7 +4,7 @@
Define WFS service utility functions
------------------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswfshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswfshandler)
(C) 2012 by René-Luc D'Hont ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswfshandler)
(C) 2017 by David Marteau
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wms/qgsmediancut.cpp
Expand Up @@ -2,7 +2,7 @@
qgsmediancut.cpp
-------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
(C) 2016 by David Marteau
email : marco dot hugentobler at karto dot baug dot ethz dot ch
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wms/qgsmediancut.h
Expand Up @@ -4,7 +4,7 @@
Median cut color reduction implementation
-----------------------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
(C) 2016 by David Marteau
email : marco dot hugentobler at karto dot baug dot ethz dot ch
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wms/qgswms.cpp
Expand Up @@ -2,7 +2,7 @@
qgswms.cpp
-------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
(C) 2016 by David Marteau
email : marco dot hugentobler at karto dot baug dot ethz dot ch
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wms/qgswmsutils.cpp
Expand Up @@ -2,7 +2,7 @@
qgswmsutils.cpp
-------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
(C) 2016 by David Marteau
email : marco dot hugentobler at karto dot baug dot ethz dot ch
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wms/qgswmsutils.h
Expand Up @@ -4,7 +4,7 @@
Define WMS service utility functions
------------------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
(C) 2016 by David Marteau
email : marco dot hugentobler at karto dot baug dot ethz dot ch
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgslayoutobject.cpp
Expand Up @@ -37,7 +37,7 @@ class TestQgsLayoutObject: public QObject
void context();
void writeReadXml();
void writeRetrieveDDProperty(); //test writing and retrieving dd properties from xml
void writeRetrieveCustomProperties(); //test writing/retreiving custom properties from xml
void writeRetrieveCustomProperties(); //test writing/retrieving custom properties from xml


private:
Expand Down
4 changes: 2 additions & 2 deletions tests/src/core/testqgslayoutshapes.cpp
Expand Up @@ -43,10 +43,10 @@ class TestQgsLayoutShapes : public QObject
void init();// will be called before each testfunction is executed.
void cleanup();// will be called after every testfunction.
void rectangle(); //test if rectangle shape is functioning
void triangle(); //test if triange shape is functioning
void triangle(); //test if triangle shape is functioning
void ellipse(); //test if ellipse shape is functioning
void roundedRectangle(); //test if rounded rectangle shape is functioning
void symbol(); //test is styling shapes via symbol is working
void symbol(); //test if styling shapes via symbol is working
void readWriteXml();
void bounds();
void shapeRotation();
Expand Down
10 changes: 5 additions & 5 deletions tests/src/core/testqgslayoututils.cpp
Expand Up @@ -440,7 +440,7 @@ void TestQgsLayoutUtils::scaledFontPixelSize()
void TestQgsLayoutUtils::fontAscentMM()
{
mTestFont.setPointSize( 12 );
//platform specific font rendering differences mean these tests need to be very leniant
//platform specific font rendering differences mean these tests need to be very lenient
QGSCOMPARENEAR( QgsLayoutUtils::fontAscentMM( mTestFont ), 3.9, 0.5 );
}

Expand All @@ -453,14 +453,14 @@ void TestQgsLayoutUtils::fontDescentMM()
void TestQgsLayoutUtils::fontHeightMM()
{
mTestFont.setPointSize( 12 );
//platform specific font rendering differences mean these tests need to be very leniant
//platform specific font rendering differences mean these tests need to be very lenient
QGSCOMPARENEAR( QgsLayoutUtils::fontHeightMM( mTestFont ), 4.9, 0.5 );
}

void TestQgsLayoutUtils::fontHeightCharacterMM()
{
mTestFont.setPointSize( 12 );
//platform specific font rendering differences mean these tests need to be very leniant
//platform specific font rendering differences mean these tests need to be very lenient
QGSCOMPARENEAR( QgsLayoutUtils::fontHeightCharacterMM( mTestFont, QChar( 'a' ) ), 2.4, 0.15 );
QGSCOMPARENEAR( QgsLayoutUtils::fontHeightCharacterMM( mTestFont, QChar( 'l' ) ), 3.15, 0.16 );
QGSCOMPARENEAR( QgsLayoutUtils::fontHeightCharacterMM( mTestFont, QChar( 'g' ) ), 3.2, 0.11 );
Expand All @@ -469,15 +469,15 @@ void TestQgsLayoutUtils::fontHeightCharacterMM()

void TestQgsLayoutUtils::textWidthMM()
{
//platform specific font rendering differences mean this test needs to be very leniant
//platform specific font rendering differences mean this test needs to be very lenient
mTestFont.setPointSize( 12 );
QGSCOMPARENEAR( QgsLayoutUtils::textWidthMM( mTestFont, QString( "test string" ) ), 20, 2 );

}

void TestQgsLayoutUtils::textHeightMM()
{
//platform specific font rendering differences mean this test needs to be very leniant
//platform specific font rendering differences mean this test needs to be very lenient
mTestFont.setPointSize( 12 );
QGSCOMPARENEAR( QgsLayoutUtils::textHeightMM( mTestFont, QString( "test string" ) ), 3.9, 0.2 );
QGSCOMPARENEAR( QgsLayoutUtils::textHeightMM( mTestFont, QString( "test\nstring" ) ), 8.7, 0.2 );
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgslayoutexporter.py
Expand Up @@ -56,7 +56,7 @@
# look for Poppler w/ Cairo, then muPDF
# * Poppler w/ Cairo renders correctly
# * Poppler w/o Cairo does not always correctly render vectors in PDF to image
# * muPDF renders correctly, but sightly shifts colors
# * muPDF renders correctly, but slightly shifts colors
for util in [
'pdftocairo',
# 'mudraw',
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgspallabeling_layout.py
Expand Up @@ -55,7 +55,7 @@
# look for Poppler w/ Cairo, then muPDF
# * Poppler w/ Cairo renders correctly
# * Poppler w/o Cairo does not always correctly render vectors in PDF to image
# * muPDF renders correctly, but sightly shifts colors
# * muPDF renders correctly, but slightly shifts colors
for util in [
'pdftocairo',
# 'mudraw',
Expand Down

0 comments on commit 0908daa

Please sign in to comment.