indentation update

This commit is contained in:
Juergen E. Fischer 2014-01-09 13:40:12 +01:00
parent 1b0296935d
commit 129bd987d5
12 changed files with 93 additions and 88 deletions

View File

@ -723,7 +723,8 @@ void QgsMapToolNodeTool::keyPressEvent( QKeyEvent* e )
if ( mSelectedFeature && ( e->key() == Qt::Key_Backspace || e->key() == Qt::Key_Delete ) )
{
int firstSelectedIndex = firstSelectedVertex();
if ( firstSelectedIndex == -1 ) return;
if ( firstSelectedIndex == -1 )
return;
mSelectedFeature->deleteSelectedVertexes();
safeSelectVertex( firstSelectedIndex );
@ -732,21 +733,21 @@ void QgsMapToolNodeTool::keyPressEvent( QKeyEvent* e )
// Override default shortcut management in MapCanvas
e->ignore();
}
else
if ( mSelectedFeature && ( e->key() == Qt::Key_Less || e->key() == Qt::Key_Comma ) )
else if ( mSelectedFeature && ( e->key() == Qt::Key_Less || e->key() == Qt::Key_Comma ) )
{
int firstSelectedIndex = firstSelectedVertex();
if ( firstSelectedIndex == -1) return;
if ( firstSelectedIndex == -1 )
return;
mSelectedFeature->deselectAllVertexes();
safeSelectVertex( firstSelectedIndex - 1 );
mCanvas->refresh();
}
else
if ( mSelectedFeature && ( e->key() == Qt::Key_Greater || e->key() == Qt::Key_Period ) )
else if ( mSelectedFeature && ( e->key() == Qt::Key_Greater || e->key() == Qt::Key_Period ) )
{
int firstSelectedIndex = firstSelectedVertex();
if ( firstSelectedIndex == -1) return;
if ( firstSelectedIndex == -1 )
return;
mSelectedFeature->deselectAllVertexes();
safeSelectVertex( firstSelectedIndex + 1 );

View File

@ -1058,7 +1058,8 @@ void QgsProjectProperties::on_pbnWMSAddSRS_clicked()
{
QgsGenericProjectionSelector *mySelector = new QgsGenericProjectionSelector( this );
mySelector->setMessage();
if ( mWMSList->count() > 0 ) {
if ( mWMSList->count() > 0 )
{
mySelector->setSelectedAuthId( mWMSList->item( mWMSList->count() - 1 )->text() );
}
if ( mySelector->exec() && mySelector->selectedCrsId() != 0 )

View File

@ -711,9 +711,12 @@ int main( int argc, char * argv[] )
else if ( request.compare( "GetStyles", Qt::CaseInsensitive ) == 0 )
{
// GetStyles is only defined for WMS1.1.1/SLD1.0
if ( version != "1.1.1") {
if ( version != "1.1.1" )
{
theRequestHandler->sendServiceException( QgsMapServiceException( "OperationNotSupported", "GetStyles method is only available in WMS version 1.1.1" ) );
} else {
}
else
{
try
{
QDomDocument doc = theServer->getStyles();