indentation update

This commit is contained in:
Juergen E. Fischer 2015-10-13 20:29:33 +02:00
parent 0c0293e9b8
commit e225385aaa
11 changed files with 35 additions and 34 deletions

View File

@ -102,7 +102,7 @@ class CORE_EXPORT QgsNetworkAccessManager : public QNetworkAccessManager
void requestAboutToBeCreated( QNetworkAccessManager::Operation, const QNetworkRequest &, QIODevice * );
void requestCreated( QNetworkReply * );
void requestTimedOut( QNetworkReply * );
/** Emited when request was sent by request()
/** Emitted when request was sent by request()
* @param reply request reply
* @param sender the object which called request() slot.
*/

View File

@ -300,8 +300,8 @@ QgsGrassModuleStandardOptions::QgsGrassModuleStandardOptions(
if ( mParams.size() == 0 )
{
QLabel *label = new QLabel(this);
label->setText( tr("This module has no options") );
QLabel *label = new QLabel( this );
label->setText( tr( "This module has no options" ) );
mypSimpleLayout->addWidget( label );
}

View File

@ -53,6 +53,7 @@ except ImportError:
except:
raise Exception("Cannot find 'grass' Python module. Python is supported by GRASS from version >= 6.4")
def main():
# see https://grasswiki.osgeo.org/wiki/Convert_all_GRASS_6_vector_maps_to_GRASS_7
grass.message('Building topology')

View File

@ -398,7 +398,7 @@ class GRASS_LIB_EXPORT QgsGrassProvider : public QgsVectorDataProvider
signals:
// TODO: move to QGIS core?
// Emited when a fields was added/deleted so that other layers sharing the same layer
// Emitted when a fields was added/deleted so that other layers sharing the same layer
// may be updated
void fieldsChanged();

View File

@ -149,7 +149,7 @@ class GRASS_LIB_EXPORT QgsGrassVectorMap : public QObject
/** Close all iterators. Connected to iterators in different threads with Qt::BlockingQueuedConnection */
void closeIterators();
/** Emited when data were reloaded */
/** Emitted when data were reloaded */
void dataChanged();
private:

View File

@ -994,8 +994,8 @@ bool QgsGrassVectorMapLayer::recordExists( int cat, QString &error )
// DBF driver in GRASS does not support count(*)
dbValue value;
int nValues = db_select_value(mDriver, mFieldInfo->table, mFieldInfo->key, cat, mFieldInfo->key, &value);
if ( nValues == -1)
int nValues = db_select_value( mDriver, mFieldInfo->table, mFieldInfo->key, cat, mFieldInfo->key, &value );
if ( nValues == -1 )
{
error = tr( "Cannot select record from table" );
return false;

View File

@ -447,7 +447,7 @@ void TestQgsSymbolV2::symbolProperties()
QgsSymbolLayerV2Utils::symbolProperties( fillSymbol2 ) );
//modify one of the symbols
fillSymbol2->symbolLayer(0)->setColor( QColor( 235, 135, 35 ) );
fillSymbol2->symbolLayer( 0 )->setColor( QColor( 235, 135, 35 ) );
QVERIFY( QgsSymbolLayerV2Utils::symbolProperties( fillSymbol ) !=
QgsSymbolLayerV2Utils::symbolProperties( fillSymbol2 ) );

View File

@ -1257,7 +1257,7 @@ bool TestQgsGrassProvider::compare( QList<QgsFeature> features, QList<QgsFeature
bool TestQgsGrassProvider::compare( QString uri, QgsGrassObject mapObject, QgsVectorLayer *expectedLayer, bool& ok )
{
Q_UNUSED(mapObject)
Q_UNUSED( mapObject )
QList<QgsFeature> expectedFeatures = getFeatures( expectedLayer );
// read the map using another layer/provider
@ -1296,7 +1296,7 @@ bool TestQgsGrassProvider::compare( QString uri, QgsGrassObject mapObject, QgsVe
int result = Vect_open_old( map, mapObject.name().toUtf8().data(), mapObject.mapset().toUtf8().data() );
if ( result == -1 )
{
{
QgsGrass::vectDestroyMapStruct( map );
throw QgsGrass::Exception( "Cannot open map " + mapObject.name() );
}