[QGIS Commit] r15568 - in trunk/qgis/src: app app/legend gui plugins/spatialquery

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Mar 22 19:29:15 EDT 2011


Author: jef
Date: 2011-03-22 16:29:15 -0700 (Tue, 22 Mar 2011)
New Revision: 15568

Modified:
   trunk/qgis/src/app/legend/qgslegendlayer.cpp
   trunk/qgis/src/app/qgisapp.cpp
   trunk/qgis/src/app/qgstipfactory.cpp
   trunk/qgis/src/gui/qgsprojectbadlayerguihandler.cpp
   trunk/qgis/src/gui/qgsprojectbadlayerguihandler.h
   trunk/qgis/src/plugins/spatialquery/qgsspatialquerydialog.cpp
Log:
automatic indentation update (r15302-r15567)

Modified: trunk/qgis/src/app/legend/qgslegendlayer.cpp
===================================================================
--- trunk/qgis/src/app/legend/qgslegendlayer.cpp	2011-03-22 23:20:27 UTC (rev 15567)
+++ trunk/qgis/src/app/legend/qgslegendlayer.cpp	2011-03-22 23:29:15 UTC (rev 15568)
@@ -433,7 +433,7 @@
 
   // set layer crs
   theMenu.addAction( QgisApp::getThemeIcon( "/mActionSetCRS.png" ), tr( "&Set layer CRS" ), QgisApp::instance(), SLOT( setLayerCRS() ) );
-  
+
   // assign layer crs to project
   theMenu.addAction( QgisApp::getThemeIcon( "/mActionSetProjectCRS.png" ), tr( "Set &project CRS from layer" ), QgisApp::instance(), SLOT( setProjectCRSFromLayer() ) );
 

Modified: trunk/qgis/src/app/qgisapp.cpp
===================================================================
--- trunk/qgis/src/app/qgisapp.cpp	2011-03-22 23:20:27 UTC (rev 15567)
+++ trunk/qgis/src/app/qgisapp.cpp	2011-03-22 23:29:15 UTC (rev 15568)
@@ -1950,104 +1950,104 @@
     whatsNew +=  tr( "This release includes over 277 bug fixes and many new features and enhancements. Once again it is impossible to document everything here that has changed so we will just provide a bullet list of key new features here." );
     whatsNew += "</p>";
 
-    whatsNew += "<h3>" + tr("Symbology labels and diagrams") + "</h3>";
+    whatsNew += "<h3>" + tr( "Symbology labels and diagrams" ) + "</h3>";
     whatsNew += "<ul>";
-    whatsNew += "<li>" + tr("New symbology now used by default!") + "</li>";
-    whatsNew += "<li>" + tr("Diagram system that uses the same smart placement system as labeling-ng") + "</li>";
-    whatsNew += "<li>" + tr("Export and import of styles (symbology-ng).") + "</li>";
-    whatsNew += "<li>" + tr("Labels for rules in rule-based renderers.") + "</li>";
-    whatsNew += "<li>" + tr("Ability to set label distance in map units.") + "</li>";
-    whatsNew += "<li>" + tr("Rotation for svg fills.") + "</li>";
-    whatsNew += "<li>" + tr("Font marker can have an X,Y offset.") + "</li>";
-    whatsNew += "<li>" + tr("Allow the line symbol layers to be used for outline of polygon (fill) symbols.") + "</li>";
-    whatsNew += "<li>" + tr("Option to put marker on the central point of a line.") + "</li>";
-    whatsNew += "<li>" + tr("Option to put marker only on first/last vertex of a line.") + "</li>";
-    whatsNew += "<li>" + tr("Added \"centroid fill\" symbol layer which draws a marker on polygon's centroid.") + "</li>";
-    whatsNew += "<li>" + tr("Allow the marker line symbol layer to draw markers on each vertex.") + "</li>";
-    whatsNew += "<li>" + tr("Move/rotate/change label edit tools to interactively change data defined label properties.") + "</li>";
+    whatsNew += "<li>" + tr( "New symbology now used by default!" ) + "</li>";
+    whatsNew += "<li>" + tr( "Diagram system that uses the same smart placement system as labeling-ng" ) + "</li>";
+    whatsNew += "<li>" + tr( "Export and import of styles (symbology-ng)." ) + "</li>";
+    whatsNew += "<li>" + tr( "Labels for rules in rule-based renderers." ) + "</li>";
+    whatsNew += "<li>" + tr( "Ability to set label distance in map units." ) + "</li>";
+    whatsNew += "<li>" + tr( "Rotation for svg fills." ) + "</li>";
+    whatsNew += "<li>" + tr( "Font marker can have an X,Y offset." ) + "</li>";
+    whatsNew += "<li>" + tr( "Allow the line symbol layers to be used for outline of polygon (fill) symbols." ) + "</li>";
+    whatsNew += "<li>" + tr( "Option to put marker on the central point of a line." ) + "</li>";
+    whatsNew += "<li>" + tr( "Option to put marker only on first/last vertex of a line." ) + "</li>";
+    whatsNew += "<li>" + tr( "Added \"centroid fill\" symbol layer which draws a marker on polygon's centroid." ) + "</li>";
+    whatsNew += "<li>" + tr( "Allow the marker line symbol layer to draw markers on each vertex." ) + "</li>";
+    whatsNew += "<li>" + tr( "Move/rotate/change label edit tools to interactively change data defined label properties." ) + "</li>";
     whatsNew += "</ul>";
-    whatsNew += "<h3>" + tr("New Tools") + "</h3>";
+    whatsNew += "<h3>" + tr( "New Tools" ) + "</h3>";
     whatsNew += "<ul>";
-    whatsNew += "<li>" + tr("Added GUI for gdaldem.") + "</li>";
-    whatsNew += "<li>" + tr("Added 'Lines to polygons' tool to vector menu.") + "</li>";
-    whatsNew += "<li>" + tr("Added field calculator with functions like $x, $y and $perimeter.") + "</li>";
-    whatsNew += "<li>" + tr("Added voronoi polygon tool to Vector menu.") + "</li>";
+    whatsNew += "<li>" + tr( "Added GUI for gdaldem." ) + "</li>";
+    whatsNew += "<li>" + tr( "Added 'Lines to polygons' tool to vector menu." ) + "</li>";
+    whatsNew += "<li>" + tr( "Added field calculator with functions like $x, $y and $perimeter." ) + "</li>";
+    whatsNew += "<li>" + tr( "Added voronoi polygon tool to Vector menu." ) + "</li>";
     whatsNew += "</ul>";
-    whatsNew += "<h3>" + tr("User interface updates") + "</h3>";
+    whatsNew += "<h3>" + tr( "User interface updates" ) + "</h3>";
     whatsNew += "<ul>";
-    whatsNew += "<li>" + tr("Allow managing missing layers in a list.") + "</li>";
-    whatsNew += "<li>" + tr("Zoom to group of layers.") + "</li>";
-    whatsNew += "<li>" + tr("'Tip of the day' on startup. You can en/disable tips in the options panel.") + "</li>";
-    whatsNew += "<li>" + tr("Better organisation of menus, separate database menu added.") + "</li>";
-    whatsNew += "<li>" + tr("Add ability to show number of features in "
-                "legend classes. Accessible via right-click legend menu.") + "</li>";
-    whatsNew += "<li>" + tr("General clean-ups and usability improvements.") + "</li>";
+    whatsNew += "<li>" + tr( "Allow managing missing layers in a list." ) + "</li>";
+    whatsNew += "<li>" + tr( "Zoom to group of layers." ) + "</li>";
+    whatsNew += "<li>" + tr( "'Tip of the day' on startup. You can en/disable tips in the options panel." ) + "</li>";
+    whatsNew += "<li>" + tr( "Better organisation of menus, separate database menu added." ) + "</li>";
+    whatsNew += "<li>" + tr( "Add ability to show number of features in "
+                             "legend classes. Accessible via right-click legend menu." ) + "</li>";
+    whatsNew += "<li>" + tr( "General clean-ups and usability improvements." ) + "</li>";
     whatsNew += "</ul>";
-    whatsNew += "<h3>" + tr("CRS Handling") + "</h3>";
+    whatsNew += "<h3>" + tr( "CRS Handling" ) + "</h3>";
     whatsNew += "<ul>";
-    whatsNew += "<li>" + tr("Show active crs in status bar.") + "</li>";
-    whatsNew += "<li>" + tr("Assign layer CRS to project (in the legend context menu).") + "</li>";
-    whatsNew += "<li>" + tr("Select default CRS for new projects.") + "</li>";
-    whatsNew += "<li>" + tr("Allow setting CRS for multiple layers at once.") + "</li>";
-    whatsNew += "<li>" + tr("Default to last selection when prompting for CRS.") + "</li>";
+    whatsNew += "<li>" + tr( "Show active crs in status bar." ) + "</li>";
+    whatsNew += "<li>" + tr( "Assign layer CRS to project (in the legend context menu)." ) + "</li>";
+    whatsNew += "<li>" + tr( "Select default CRS for new projects." ) + "</li>";
+    whatsNew += "<li>" + tr( "Allow setting CRS for multiple layers at once." ) + "</li>";
+    whatsNew += "<li>" + tr( "Default to last selection when prompting for CRS." ) + "</li>";
     whatsNew += "</ul>";
-    whatsNew += "<h3>" + tr("Rasters") + "</h3>";
+    whatsNew += "<h3>" + tr( "Rasters" ) + "</h3>";
     whatsNew += "<ul>";
-    whatsNew += "<li>" + tr("Added AND and OR operator for raster calculator") + "</li>";
-    whatsNew += "<li>" + tr("On-the-fly reprojection of rasters added!") + "</li>";
-    whatsNew += "<li>" + tr("Proper implementation of raster providers.") + "</li>";
-    whatsNew += "<li>" + tr("Added raster toolbar with histogram stretch functions.") + "</li>";
+    whatsNew += "<li>" + tr( "Added AND and OR operator for raster calculator" ) + "</li>";
+    whatsNew += "<li>" + tr( "On-the-fly reprojection of rasters added!" ) + "</li>";
+    whatsNew += "<li>" + tr( "Proper implementation of raster providers." ) + "</li>";
+    whatsNew += "<li>" + tr( "Added raster toolbar with histogram stretch functions." ) + "</li>";
     whatsNew += "</ul>";
-    whatsNew += "<h3>" + tr("Providers and Data Handling") + "</h3>";
+    whatsNew += "<h3>" + tr( "Providers and Data Handling" ) + "</h3>";
     whatsNew += "<ul>";
-    whatsNew += "<li>" + tr("New SQLAnywhere vector provider.") + "</li>";
-    whatsNew += "<li>" + tr("Table join support.") + "</li>";
-    whatsNew += "<li>" + tr("Feature form updates") ;
+    whatsNew += "<li>" + tr( "New SQLAnywhere vector provider." ) + "</li>";
+    whatsNew += "<li>" + tr( "Table join support." ) + "</li>";
+    whatsNew += "<li>" + tr( "Feature form updates" ) ;
     whatsNew += "<ul>";
-    whatsNew += "<li>" + tr("Make NULL value string representation configurable.") + "</li>";
-    whatsNew += "<li>" + tr("Fix feature updates in feature form from attribute table.") + "</li>";
-    whatsNew += "<li>" + tr("Add support for NULL values in value maps (comboboxes).") + "</li>";
-    whatsNew += "<li>" + tr("Use layer names instead of ids in drop down list when loading value maps from layers.") + "</li>";
-    whatsNew += "<li>" + tr("Support feature form expression fields: line edits on the form which name prefix \"expr_\" are evaluated. Their value is interpreted as field calculator string and replaced with the calculated value.") + "</li></ul></li>";
-    whatsNew += "<li>" + tr("Support searching for NULL in attribute table.") + "</li>";
-    whatsNew += "<li>" + tr("Attribute editing improvements");
+    whatsNew += "<li>" + tr( "Make NULL value string representation configurable." ) + "</li>";
+    whatsNew += "<li>" + tr( "Fix feature updates in feature form from attribute table." ) + "</li>";
+    whatsNew += "<li>" + tr( "Add support for NULL values in value maps (comboboxes)." ) + "</li>";
+    whatsNew += "<li>" + tr( "Use layer names instead of ids in drop down list when loading value maps from layers." ) + "</li>";
+    whatsNew += "<li>" + tr( "Support feature form expression fields: line edits on the form which name prefix \"expr_\" are evaluated. Their value is interpreted as field calculator string and replaced with the calculated value." ) + "</li></ul></li>";
+    whatsNew += "<li>" + tr( "Support searching for NULL in attribute table." ) + "</li>";
+    whatsNew += "<li>" + tr( "Attribute editing improvements" );
     whatsNew += "<ul>";
-    whatsNew += "<li>" + tr("Improved interactive attribute editing in table (adding/deleting features, attribute update).") + "</li>";
-    whatsNew += "<li>" + tr("Allow adding of geometryless features.") + "</li>";
-    whatsNew += "<li>" + tr("Fixed attribute undo/redo.") + "</li></ul></li>";
-    whatsNew += "<li>" + tr("Improved attribute handling.");
+    whatsNew += "<li>" + tr( "Improved interactive attribute editing in table (adding/deleting features, attribute update)." ) + "</li>";
+    whatsNew += "<li>" + tr( "Allow adding of geometryless features." ) + "</li>";
+    whatsNew += "<li>" + tr( "Fixed attribute undo/redo." ) + "</li></ul></li>";
+    whatsNew += "<li>" + tr( "Improved attribute handling." );
     whatsNew += "<ul>";
-    whatsNew += "<li>" + tr("Optionally re-use entered attribute values for next digitized feature.") + "</li>";
-    whatsNew += "<li>" + tr("Allow merging/assigning attribute values to a set of features.") + "</li></ul></li>";
-    whatsNew += "<li>" + tr("Allow OGR 'save as' without attributes (for eg. DGN/DXF).") + "</li>";
+    whatsNew += "<li>" + tr( "Optionally re-use entered attribute values for next digitized feature." ) + "</li>";
+    whatsNew += "<li>" + tr( "Allow merging/assigning attribute values to a set of features." ) + "</li></ul></li>";
+    whatsNew += "<li>" + tr( "Allow OGR 'save as' without attributes (for eg. DGN/DXF)." ) + "</li>";
     whatsNew += "</ul>";
-    whatsNew += "<h3>" + tr("Api and Developer Centric") + "</h3>";
+    whatsNew += "<h3>" + tr( "Api and Developer Centric" ) + "</h3>";
     whatsNew += "<ul>";
-    whatsNew += "<li>" + tr("Refactored attribute dialog calls to QgsFeatureAttribute.") + "</li>";
-    whatsNew += "<li>" + tr("Added QgsVectorLayer::featureAdded signal.") + "</li>";
-    whatsNew += "<li>" + tr("Layer menu function added.") + "</li>";
-    whatsNew += "<li>" + tr("Added option to load c++ plugins from user "
-                             " specified directories. Requires application restart to activate.") +
-                             "</li>";
-    whatsNew += "<li>" + tr("Completely new geometry checking tool for fTools. Significantly faster, "
-        "more relevant error messages, and now supports zooming to errors. "
-        "See the new QgsGeometry.validateGeometry function") + "</li>";
+    whatsNew += "<li>" + tr( "Refactored attribute dialog calls to QgsFeatureAttribute." ) + "</li>";
+    whatsNew += "<li>" + tr( "Added QgsVectorLayer::featureAdded signal." ) + "</li>";
+    whatsNew += "<li>" + tr( "Layer menu function added." ) + "</li>";
+    whatsNew += "<li>" + tr( "Added option to load c++ plugins from user "
+                             " specified directories. Requires application restart to activate." ) +
+                "</li>";
+    whatsNew += "<li>" + tr( "Completely new geometry checking tool for fTools. Significantly faster, "
+                             "more relevant error messages, and now supports zooming to errors. "
+                             "See the new QgsGeometry.validateGeometry function" ) + "</li>";
     whatsNew += "</ul>";
-    whatsNew += "<h3>" + tr("QGIS Mapserver") + "</h3>";
+    whatsNew += "<h3>" + tr( "QGIS Mapserver" ) + "</h3>";
     whatsNew += "<ul>";
-    whatsNew += "<li>" + tr("Ability to specify wms service capabilities in the properties "
-        "section of the project file (instead of wms_metadata.xml file).") + "</li>";
-    whatsNew += "<li>" + tr("Support for wms printing with GetPrint-Request.") + "</li>";
+    whatsNew += "<li>" + tr( "Ability to specify wms service capabilities in the properties "
+                             "section of the project file (instead of wms_metadata.xml file)." ) + "</li>";
+    whatsNew += "<li>" + tr( "Support for wms printing with GetPrint-Request." ) + "</li>";
     whatsNew += "</ul>";
-    whatsNew += "<h3>" + tr("Plugins") + "</h3>";
+    whatsNew += "<h3>" + tr( "Plugins" ) + "</h3>";
     whatsNew += "<ul>";
-    whatsNew += "<li>" + tr("Support for icons of plugins in the plugin manager dialog.") + "</li>";
-    whatsNew += "<li>" + tr("Removed quickprint plugin - use easyprint plugin rather from plugin repo.") + "</li>";
-    whatsNew += "<li>" + tr("Removed ogr convertor plugin - use 'save as' context menu rather.") + "</li>";
+    whatsNew += "<li>" + tr( "Support for icons of plugins in the plugin manager dialog." ) + "</li>";
+    whatsNew += "<li>" + tr( "Removed quickprint plugin - use easyprint plugin rather from plugin repo." ) + "</li>";
+    whatsNew += "<li>" + tr( "Removed ogr convertor plugin - use 'save as' context menu rather." ) + "</li>";
     whatsNew += "</ul>";
-    whatsNew += "<h3>" + tr("Printing") + "</h3>";
+    whatsNew += "<h3>" + tr( "Printing" ) + "</h3>";
     whatsNew += "<ul>";
-    whatsNew += "<li>" + tr("Undo/Redo support for the print composer") + "</li>";
+    whatsNew += "<li>" + tr( "Undo/Redo support for the print composer" ) + "</li>";
     whatsNew += "</ul>";
     whatsNew += "</body></html>";
 

Modified: trunk/qgis/src/app/qgstipfactory.cpp
===================================================================
--- trunk/qgis/src/app/qgstipfactory.cpp	2011-03-22 23:20:27 UTC (rev 15567)
+++ trunk/qgis/src/app/qgstipfactory.cpp	2011-03-22 23:29:15 UTC (rev 15568)
@@ -163,33 +163,33 @@
                       ) );
   addGuiTip( myTip );
   // Tip contributed by Alister Hood
-  myTip.setTitle(tr("Join intersected polylines when rendering"));
-  myTip.setContent(tr("When applying layered styles to a polyline layer, you can join"
-                      " intersecting lines together simply by enabling symbol levels."
-                      " The image below shows a before (left) and after (right) view of"
-                      " an intersection when symbol levels are enabled.") +
-                      QString("<p><center><img src=\":/images/tips/symbol_levels.png\"/></center></p>")
-        );
-  addGuiTip(myTip);
+  myTip.setTitle( tr( "Join intersected polylines when rendering" ) );
+  myTip.setContent( tr( "When applying layered styles to a polyline layer, you can join"
+                        " intersecting lines together simply by enabling symbol levels."
+                        " The image below shows a before (left) and after (right) view of"
+                        " an intersection when symbol levels are enabled." ) +
+                    QString( "<p><center><img src=\":/images/tips/symbol_levels.png\"/></center></p>" )
+                  );
+  addGuiTip( myTip );
   // by Tim
-  myTip.setTitle(tr("Auto-enable on the fly projection"));
-  myTip.setContent(tr("In the options dialog, under the CRS tab, you can set QGIS so that"
-                      " whenever you create a new project, 'on the fly projection' is enabled"
-                      " automatically and a pre-selected Coordinate Reference System of your"
-                      " choice is used."
-        ));
-  addGuiTip(myTip);
+  myTip.setTitle( tr( "Auto-enable on the fly projection" ) );
+  myTip.setContent( tr( "In the options dialog, under the CRS tab, you can set QGIS so that"
+                        " whenever you create a new project, 'on the fly projection' is enabled"
+                        " automatically and a pre-selected Coordinate Reference System of your"
+                        " choice is used."
+                      ) );
+  addGuiTip( myTip );
   // by Tim
-  myTip.setTitle(tr("Sponsor QGIS"));
-  myTip.setContent(tr("If QGIS is saving you money or you like our work and"
-        " have the financial ability to help, please consider sponsoring the"
-        " development of Quantum GIS. We use money from sponsors to pay for"
-        " travel and costs related to our bi-annual hackfests, and to generally"
-        " support the goals of our project.  Please see the <a"
-        " href=\"http://qgis.org/en/sponsorship.html\">QGIS Sponsorship Web"
-        " Page</a> for more details." 
-        ));
-  addGenericTip(myTip);
+  myTip.setTitle( tr( "Sponsor QGIS" ) );
+  myTip.setContent( tr( "If QGIS is saving you money or you like our work and"
+                        " have the financial ability to help, please consider sponsoring the"
+                        " development of Quantum GIS. We use money from sponsors to pay for"
+                        " travel and costs related to our bi-annual hackfests, and to generally"
+                        " support the goals of our project.  Please see the <a"
+                        " href=\"http://qgis.org/en/sponsorship.html\">QGIS Sponsorship Web"
+                        " Page</a> for more details."
+                      ) );
+  addGenericTip( myTip );
 
   /* Template for adding more tips
   myTip.setTitle(tr(""));

Modified: trunk/qgis/src/gui/qgsprojectbadlayerguihandler.cpp
===================================================================
--- trunk/qgis/src/gui/qgsprojectbadlayerguihandler.cpp	2011-03-22 23:20:27 UTC (rev 15567)
+++ trunk/qgis/src/gui/qgsprojectbadlayerguihandler.cpp	2011-03-22 23:29:15 UTC (rev 15568)
@@ -4,7 +4,7 @@
 #include <QDomDocument>
 #include <QFileInfo>
 #include <QMessageBox>
-#include <QtGui/QPushButton> 
+#include <QPushButton>
 
 #include "qgslogger.h"
 #include "qgisgui.h"
@@ -22,45 +22,45 @@
 
   // make sure we have arrow cursor (and not a wait cursor)
   QApplication::setOverrideCursor( Qt::ArrowCursor );
-  
+
   QMessageBox messageBox;
-      
-  QAbstractButton *ignoreButton = 
-     messageBox.addButton(tr("Ignore"),QMessageBox::ActionRole);  
-    
+
+  QAbstractButton *ignoreButton =
+    messageBox.addButton( tr( "Ignore" ), QMessageBox::ActionRole );
+
   QAbstractButton *okButton = messageBox.addButton( QMessageBox :: Ok );
-  
+
   messageBox.addButton( QMessageBox :: Cancel );
-    
-  messageBox.setWindowTitle(tr("QGIS Project Read Error"));
-  messageBox.setText(tr("Unable to open one or more project layers.\nChoose "
-        "ignore to continue loading without the missing layers. Choose cancel to "
-        "return to your pre-project load state. Choose OK to try to find the "
-        "missing layers."));
-  messageBox.setIcon(QMessageBox::Critical);
+
+  messageBox.setWindowTitle( tr( "QGIS Project Read Error" ) );
+  messageBox.setText( tr( "Unable to open one or more project layers.\nChoose "
+                          "ignore to continue loading without the missing layers. Choose cancel to "
+                          "return to your pre-project load state. Choose OK to try to find the "
+                          "missing layers." ) );
+  messageBox.setIcon( QMessageBox::Critical );
   messageBox.exec();
-  
+
   QgsProjectBadLayerGuiHandler::mIgnore = false;
-  
-  if(messageBox.clickedButton() == okButton)
+
+  if ( messageBox.clickedButton() == okButton )
   {
     QgsDebugMsg( "want to find missing layers is true" );
-      
+
     // attempt to find the new locations for missing layers
     // XXX vector file hard-coded -- but what if it's raster?
 
     QString filter = QgsProviderRegistry::instance()->fileVectorFilters();
     findLayers( filter, layers );
-  }       
-  else if (messageBox.clickedButton() == ignoreButton)
+  }
+  else if ( messageBox.clickedButton() == ignoreButton )
   {
-    QgsProjectBadLayerGuiHandler::mIgnore = true;   
-  } 
+    QgsProjectBadLayerGuiHandler::mIgnore = true;
+  }
   else
   {
     // Do nothing
-  }  
- 
+  }
+
   QApplication::restoreOverrideCursor();
 }
 

Modified: trunk/qgis/src/gui/qgsprojectbadlayerguihandler.h
===================================================================
--- trunk/qgis/src/gui/qgsprojectbadlayerguihandler.h	2011-03-22 23:20:27 UTC (rev 15567)
+++ trunk/qgis/src/gui/qgsprojectbadlayerguihandler.h	2011-03-22 23:29:15 UTC (rev 15568)
@@ -19,7 +19,7 @@
 
     /** implementation of the handler */
     virtual void handleBadLayers( QList<QDomNode> layers, QDomDocument projectDom );
-    
+
     /** Flag to store the Ignore button press of MessageBox used by QgsLegend */
     static bool mIgnore;
 

Modified: trunk/qgis/src/plugins/spatialquery/qgsspatialquerydialog.cpp
===================================================================
--- trunk/qgis/src/plugins/spatialquery/qgsspatialquerydialog.cpp	2011-03-22 23:20:27 UTC (rev 15567)
+++ trunk/qgis/src/plugins/spatialquery/qgsspatialquerydialog.cpp	2011-03-22 23:29:15 UTC (rev 15568)
@@ -15,7 +15,7 @@
  *   (at your option) any later version.                                   *
  *                                                                         *
  ***************************************************************************/
-/*  $Id: qgsspatialquerydialog.cpp 15448 2011-03-12 10:17:05Z jef $ */
+/*  $Id$ */
 
 #include <QMessageBox>
 #include <QDateTime>
@@ -81,11 +81,13 @@
     totalVector++;
   }
   // check is possible query
-  if( totalVector < 2 ) {
+  if ( totalVector < 2 )
+  {
     msg = tr( "The spatial query requires at least two vector layers" );
     return false;
   }
-  else {
+  else
+  {
     return true;
   }
 



More information about the QGIS-commit mailing list