mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
indentation update
This commit is contained in:
parent
1b0296935d
commit
129bd987d5
@ -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 );
|
||||
|
@ -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 )
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user