Skip to content

Commit 98c601d

Browse files
committed
fix typos
1 parent 6a6b3b4 commit 98c601d

File tree

11 files changed

+16
-16
lines changed

11 files changed

+16
-16
lines changed

python/core/qgis.sip

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class QGis
135135
static double fromUnitToUnitFactor( QGis::UnitType fromUnit, QGis::UnitType toUnit );
136136

137137
/** Converts a string to a double in a permissive way, eg allowing for incorrect
138-
* numbers of digits between thousand seperators
138+
* numbers of digits between thousand separators
139139
* @param string string to convert
140140
* @param ok will be set to true if conversion was successful
141141
* @returns string converted to double if possible
@@ -145,7 +145,7 @@ class QGis
145145
static double permissiveToDouble( QString string, bool& ok );
146146

147147
/** Converts a string to an integer in a permissive way, eg allowing for incorrect
148-
* numbers of digits between thousand seperators
148+
* numbers of digits between thousand separators
149149
* @param string string to convert
150150
* @param ok will be set to true if conversion was successful
151151
* @returns string converted to int if possible

src/core/effects/qgseffectstack.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class CORE_EXPORT QgsEffectStack : public QgsPaintEffect
9090
*/
9191
bool insertEffect( const int index, QgsPaintEffect* effect );
9292

93-
/** Replaces the effect at a speficied position within the stack.
93+
/** Replaces the effect at a specified position within the stack.
9494
* @param index position of effect to replace
9595
* @param effect QgsPaintEffect to replace with. Ownership of the effect will be
9696
* transferred to the stack object.

src/core/qgis.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ double QGis::fromUnitToUnitFactor( QGis::UnitType fromUnit, QGis::UnitType toUni
187187

188188
double QGis::permissiveToDouble( QString string, bool &ok )
189189
{
190-
//remove any thousands seperators
190+
//remove any thousands separators
191191
string.remove( QLocale::system().groupSeparator() );
192192
return QLocale::system().toDouble( string, &ok );
193193
}
194194

195195
int QGis::permissiveToInt( QString string, bool &ok )
196196
{
197-
//remove any thousands seperators
197+
//remove any thousands separators
198198
string.remove( QLocale::system().groupSeparator() );
199199
return QLocale::system().toInt( string, &ok );
200200
}

src/core/qgis.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class CORE_EXPORT QGis
252252
static double fromUnitToUnitFactor( QGis::UnitType fromUnit, QGis::UnitType toUnit );
253253

254254
/** Converts a string to a double in a permissive way, eg allowing for incorrect
255-
* numbers of digits between thousand seperators
255+
* numbers of digits between thousand separators
256256
* @param string string to convert
257257
* @param ok will be set to true if conversion was successful
258258
* @returns string converted to double if possible
@@ -262,7 +262,7 @@ class CORE_EXPORT QGis
262262
static double permissiveToDouble( QString string, bool& ok );
263263

264264
/** Converts a string to an integer in a permissive way, eg allowing for incorrect
265-
* numbers of digits between thousand seperators
265+
* numbers of digits between thousand separators
266266
* @param string string to convert
267267
* @param ok will be set to true if conversion was successful
268268
* @returns string converted to int if possible

src/core/qgspallabeling.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ class CORE_EXPORT QgsPalLabeling : public QgsLabelingEngineInterface
834834
*/
835835
static bool geometryRequiresPreparation( const QgsGeometry *geometry, const QgsRenderContext &context, const QgsCoordinateTransform *ct, QgsGeometry *clipGeometry = 0 );
836836

837-
/** Splits a text string to a list of seperate lines, using a specified wrap character.
837+
/** Splits a text string to a list of separate lines, using a specified wrap character.
838838
* The text string will be split on either newline characters or the wrap character.
839839
* @param text text string to split
840840
* @param wrapCharacter additional character to wrap on

src/gui/qgsblendmodecombobox.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class GUI_EXPORT QgsBlendModeComboBox : public QComboBox
3737
//! Function to set the selected blend mode from QPainter::CompositionMode
3838
void setBlendMode( QPainter::CompositionMode blendMode );
3939
private:
40-
//! Returns a list of grouped blend modes (with seperators)
40+
//! Returns a list of grouped blend modes (with separators)
4141
QStringList blendModesList() const;
4242

4343
//! Used to map blend modes across to their corresponding

src/gui/qgshistogramwidget.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ class GUI_EXPORT QgsHistogramWidget : public QWidget, private Ui::QgsHistogramWi
104104
*/
105105
QBrush brush() const { return mBrush; }
106106

107-
/** Sets the graduated ranges associated with the histogram. If set, the ranges will be used to colour the histogram
107+
/** Sets the graduated ranges associated with the histogram. If set, the ranges will be used to color the histogram
108108
* bars and for showing vertical dividers at the histogram breaks.
109109
* @param ranges graduated range list
110110
* @see graduatedRanges
111111
*/
112112
void setGraduatedRanges( const QgsRangeList& ranges );
113113

114-
/** Returns the graduated ranges associated with the histogram. If set, the ranges will be used to colour the histogram
114+
/** Returns the graduated ranges associated with the histogram. If set, the ranges will be used to color the histogram
115115
* bars and for showing vertical dividers at the histogram breaks.
116116
* @returns graduated range list
117117
* @see setGraduatedRanges

src/plugins/dxf2shp_converter/dxflib/src/dl_dxf.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ void DL_Dxf::addTextStyle(DL_CreationInterface* creationInterface) {
928928
name,
929929
// flags
930930
getIntValue(70, 0),
931-
// fixed text heigth:
931+
// fixed text height:
932932
getRealValue(40, 0.0),
933933
// width factor:
934934
getRealValue(41, 0.0),

src/providers/postgres/qgspostgresfeatureiterator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ QString QgsPostgresFeatureIterator::whereClauseRect()
301301
.arg( mConn->majorVersion() < 2 ? "intersects" : "st_intersects" )
302302
.arg( mConn->majorVersion() < 2 ? "curvetoline" : "st_curvetoline" )
303303
.arg( QgsPostgresConn::quotedIdentifier( mSource->mGeometryColumn ) )
304-
.arg( castToPatch ? "::geometry" : "" )
304+
.arg( castToGeometry ? "::geometry" : "" )
305305
.arg( qBox );
306306
}
307307

tests/src/core/testqgis.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void TestQGis::permissiveToDouble()
8484
result = QGis::permissiveToDouble( QString( "a" ), ok );
8585
QVERIFY( !ok );
8686

87-
//messy input (invalid thousand seperator position), should still be converted
87+
//messy input (invalid thousand separator position), should still be converted
8888
ok = false;
8989
result = QGis::permissiveToDouble( QString( "10%0100" ).arg( QLocale::system().groupSeparator() ), ok );
9090
QVERIFY( ok );
@@ -112,7 +112,7 @@ void TestQGis::permissiveToInt()
112112
result = QGis::permissiveToInt( QString( "a" ), ok );
113113
QVERIFY( !ok );
114114

115-
//messy input (invalid thousand seperator position), should still be converted
115+
//messy input (invalid thousand separator position), should still be converted
116116
ok = false;
117117
result = QGis::permissiveToInt( QString( "10%0100" ).arg( QLocale::system().groupSeparator() ), ok );
118118
QVERIFY( ok );

tests/src/gui/testqgsscalecombobox.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void TestQgsScaleComboBox::basic()
9696
QCOMPARE( s->scaleString(), QString( "1:%1" ).arg( str ) );
9797
QCOMPARE( s->scale(), ( double ) 1.0 / ( double ) 1000000.0 );
9898

99-
// Testing conversion from number to "1:x,000" with wonky seperators
99+
// Testing conversion from number to "1:x,000" with wonky separators
100100
//(eg four digits between thousands, which should be fixed automatically)
101101
l->setText( "" );
102102
str = QString( "1%010000%01000" ).arg( QLocale::system().groupSeparator() );

0 commit comments

Comments
 (0)