Skip to content

Commit ebc8e6c

Browse files
committed
indentation update
1 parent 8cf9f7b commit ebc8e6c

File tree

13 files changed

+32
-35
lines changed

13 files changed

+32
-35
lines changed

python/plugins/db_manager/dlg_sql_window.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ def __init__(self, iface, db, parent=None):
8181
def showEvent(self, event):
8282
QDialog.showEvent(self, event)
8383
self.updatePresetsCombobox()
84-
85-
8684

8785
def updatePresetsCombobox(self):
8886
entries = QgsProject.instance().subkeyList('DBManager','savedQueries')
@@ -108,7 +106,7 @@ def storePreset(self):
108106
self.presetCombo.setCurrentIndex(self.presetCombo.count()-1)
109107
else:
110108
self.presetCombo.setCurrentIndex(index)
111-
109+
112110
def deletePreset(self):
113111
name = self.presetCombo.currentText()
114112
QgsProject.instance().removeEntry('DBManager','savedQueries/q'+str(name.__hash__()) )

scripts/spelling.dat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,3 +465,4 @@ specifed:specified
465465
widht:width
466466
heigth:height
467467
heigh:height
468+
delimted:delimited

src/app/legend/qgslegend.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,12 +1985,12 @@ bool QgsLegend::readXML( QDomNode& legendnode )
19851985

19861986
mUpdateDrawingOrder = true;
19871987

1988-
if( !readXML( 0, legendnode ) )
1988+
if ( !readXML( 0, legendnode ) )
19891989
return false;
19901990

1991-
if( legendnode.toElement().attribute( "updateDrawingOrder", "true" ) != "true" )
1991+
if ( legendnode.toElement().attribute( "updateDrawingOrder", "true" ) != "true" )
19921992
{
1993-
if( !verifyDrawingOrder() )
1993+
if ( !verifyDrawingOrder() )
19941994
QgsMessageLog::logMessage( tr( "Not fully defined drawing order set to legend order." ), tr( "Legend" ), QgsMessageLog::WARNING );
19951995

19961996
mUpdateDrawingOrder = false;
@@ -2985,7 +2985,7 @@ bool QgsLegend::verifyDrawingOrder()
29852985
hasUndefinedOrder |= ll && ll->drawingOrder() < 0;
29862986
}
29872987

2988-
if( !hasUndefinedOrder )
2988+
if ( !hasUndefinedOrder )
29892989
return true;
29902990

29912991
int i = 0;

src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5281,7 +5281,7 @@ void QgisApp::deselectAll()
52815281
void QgisApp::selectByExpression()
52825282
{
52835283
QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( mMapCanvas->currentLayer() );
5284-
if( !vlayer )
5284+
if ( !vlayer )
52855285
{
52865286
messageBar()->pushMessage(
52875287
tr( "No active vector layer" ),

src/core/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
#############################################################
42
# sources
53

src/core/qgsofflineediting.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extern "C"
5151

5252
QgsOfflineEditing::QgsOfflineEditing()
5353
{
54-
connect( QgsMapLayerRegistry::instance(), SIGNAL( layerWasAdded( QgsMapLayer* ) ), this, SLOT( layerAdded( QgsMapLayer* ) ) );
54+
connect( QgsMapLayerRegistry::instance(), SIGNAL( layerWasAdded( QgsMapLayer* ) ), this, SLOT( layerAdded( QgsMapLayer* ) ) );
5555
}
5656

5757
QgsOfflineEditing::~QgsOfflineEditing()
@@ -524,7 +524,7 @@ void QgsOfflineEditing::copyVectorLayer( QgsVectorLayer* layer, sqlite3* db, con
524524
// fill gap in QgsAttributeMap if geometry column is not last (WORKAROUND)
525525
int column = 0;
526526
QgsAttributes attrs = f.attributes();
527-
QgsAttributes newAttrs(attrs.count());
527+
QgsAttributes newAttrs( attrs.count() );
528528
for ( int it = 0; it < attrs.count(); ++it )
529529
{
530530
newAttrs[column++] = attrs[it];
@@ -555,7 +555,7 @@ void QgsOfflineEditing::copyVectorLayer( QgsVectorLayer* layer, sqlite3* db, con
555555
int remoteCount = remoteFeatureIds.size();
556556
for ( int i = 0; i < remoteCount; i++ )
557557
{
558-
addFidLookup( db, layerId, offlineFeatureIds.at( i ), remoteFeatureIds.at( remoteCount - (i+1) ) );
558+
addFidLookup( db, layerId, offlineFeatureIds.at( i ), remoteFeatureIds.at( remoteCount - ( i + 1 ) ) );
559559
emit progressUpdated( featureCount++ );
560560
}
561561
sqlExec( db, "COMMIT" );
@@ -1208,15 +1208,15 @@ void QgsOfflineEditing::stopListenFeatureChanges()
12081208
QgsVectorLayer* vLayer = qobject_cast<QgsVectorLayer *>( sender() );
12091209
// disable logging
12101210
disconnect( vLayer->editBuffer(), SIGNAL( committedAttributesAdded( const QString&, const QList<QgsField>& ) ),
1211-
this, SLOT( committedAttributesAdded( const QString&, const QList<QgsField>& ) ) );
1211+
this, SLOT( committedAttributesAdded( const QString&, const QList<QgsField>& ) ) );
12121212
disconnect( vLayer, SIGNAL( committedFeaturesAdded( const QString&, const QgsFeatureList& ) ),
1213-
this, SLOT( committedFeaturesAdded( const QString&, const QgsFeatureList& ) ) );
1213+
this, SLOT( committedFeaturesAdded( const QString&, const QgsFeatureList& ) ) );
12141214
disconnect( vLayer, SIGNAL( committedFeaturesRemoved( const QString&, const QgsFeatureIds& ) ),
1215-
this, SLOT( committedFeaturesRemoved( const QString&, const QgsFeatureIds& ) ) );
1215+
this, SLOT( committedFeaturesRemoved( const QString&, const QgsFeatureIds& ) ) );
12161216
disconnect( vLayer->editBuffer(), SIGNAL( committedAttributeValuesChanges( const QString&, const QgsChangedAttributesMap& ) ),
1217-
this, SLOT( committedAttributeValuesChanges( const QString&, const QgsChangedAttributesMap& ) ) );
1217+
this, SLOT( committedAttributeValuesChanges( const QString&, const QgsChangedAttributesMap& ) ) );
12181218
disconnect( vLayer->editBuffer(), SIGNAL( committedGeometriesChanges( const QString&, const QgsGeometryMap& ) ),
1219-
this, SLOT( committedGeometriesChanges( const QString&, const QgsGeometryMap& ) ) );
1219+
this, SLOT( committedGeometriesChanges( const QString&, const QgsGeometryMap& ) ) );
12201220
}
12211221

12221222
void QgsOfflineEditing::layerAdded( QgsMapLayer* layer )

src/core/qgspallabeling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ void QgsPalLayerSettings::calculateLabelSize( const QFontMetricsF* fm, QString t
14061406

14071407
if ( wrapchr.isEmpty() )
14081408
{
1409-
wrapchr = QString( "\n" ); // default to new line delimeter
1409+
wrapchr = QString( "\n" ); // default to new line delimiter
14101410
}
14111411

14121412
//consider the space needed for the direction symbol

src/core/qgsvectorlayer.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -814,19 +814,19 @@ void QgsVectorLayer::invertSelection()
814814

815815
void QgsVectorLayer::selectAll()
816816
{
817-
QgsFeatureIterator fit = getFeatures( QgsFeatureRequest()
818-
.setFlags( QgsFeatureRequest::NoGeometry )
819-
.setSubsetOfAttributes( QgsAttributeList() ) );
817+
QgsFeatureIterator fit = getFeatures( QgsFeatureRequest()
818+
.setFlags( QgsFeatureRequest::NoGeometry )
819+
.setSubsetOfAttributes( QgsAttributeList() ) );
820820

821-
QgsFeatureIds ids;
821+
QgsFeatureIds ids;
822822

823-
QgsFeature fet;
824-
while ( fit.nextFeature( fet ) )
825-
{
826-
ids << fet.id();
827-
}
823+
QgsFeature fet;
824+
while ( fit.nextFeature( fet ) )
825+
{
826+
ids << fet.id();
827+
}
828828

829-
setSelectedFeatures( ids );
829+
setSelectedFeatures( ids );
830830
}
831831

832832
void QgsVectorLayer::invertSelectionInRectangle( QgsRectangle & rect )

src/core/raster/qgsrasterprojector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ void QgsRasterProjector::calcSrcExtent()
262262
// align extent to src resolution to avoid jumping of reprojected pixels
263263
// when shifting resampled grid.
264264
// Important especially if we are over mMaxSrcXRes, mMaxSrcYRes limits
265-
// Note however, that preceeding filters (like resampler) may read data
265+
// Note however, that preceding filters (like resampler) may read data
266266
// on different resolution.
267267

268268
QgsDebugMsg( "mSrcExtent = " + mSrcExtent.toString() );

src/gui/qgsexpressionbuilderwidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
5858
registerItem( "Operators", "-", " -" , tr( "Subtraction operator" ) );
5959
registerItem( "Operators", "*", " * ", tr( "Multiplication operator" ) );
6060
registerItem( "Operators", "/", " / ", tr( "Division operator" ) );
61-
registerItem( "Operators", "%", " % ", tr( "Modulo operator" ) );
61+
registerItem( "Operators", "%", " % ", tr( "Modulo operator" ) );
6262
registerItem( "Operators", "^", " ^ ", tr( "Power operator" ) );
63-
registerItem( "Operators", "=", " = ", tr( "Equal operator" ) );
63+
registerItem( "Operators", "=", " = ", tr( "Equal operator" ) );
6464
registerItem( "Operators", ">", " > ", tr( "Greater as operator" ) );
6565
registerItem( "Operators", "<", " < ", tr( "Less than operator" ) );
6666
registerItem( "Operators", "<>", " <> ", tr( "Unequal operator" ) );

0 commit comments

Comments
 (0)