[QGIS Commit] r11923 - trunk/qgis/src/app/legend
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Fri Nov 6 03:52:07 EST 2009
Author: timlinux
Date: 2009-11-06 03:52:05 -0500 (Fri, 06 Nov 2009)
New Revision: 11923
Modified:
trunk/qgis/src/app/legend/qgslegend.cpp
trunk/qgis/src/app/legend/qgslegendlayer.cpp
Log:
Simple naming and formatting change only
Modified: trunk/qgis/src/app/legend/qgslegend.cpp
===================================================================
--- trunk/qgis/src/app/legend/qgslegend.cpp 2009-11-04 20:55:03 UTC (rev 11922)
+++ trunk/qgis/src/app/legend/qgslegend.cpp 2009-11-06 08:52:05 UTC (rev 11923)
@@ -60,7 +60,13 @@
set mItemBeingMoved pointer to 0 to prevent SuSE 9.0 crash
*/
QgsLegend::QgsLegend( QWidget * parent, const char *name )
- : QTreeWidget( parent ), mMousePressedFlag( false ), mItemBeingMoved( 0 ), mShowLegendLayerFiles( false ), mToggleEditingAction( 0 ), mMapCanvas( 0 ), mMinimumIconSize( 20, 20 )
+ : QTreeWidget( parent ),
+ mMousePressedFlag( false ),
+ mItemBeingMoved( 0 ),
+ mShowLegendLayerFiles( false ),
+ mToggleEditingAction( 0 ),
+ mMapCanvas( 0 ),
+ mMinimumIconSize( 20, 20 )
{
connect( this, SIGNAL( itemChanged( QTreeWidgetItem*, int ) ),
this, SLOT( handleItemChange( QTreeWidgetItem*, int ) ) );
Modified: trunk/qgis/src/app/legend/qgslegendlayer.cpp
===================================================================
--- trunk/qgis/src/app/legend/qgslegendlayer.cpp 2009-11-04 20:55:03 UTC (rev 11922)
+++ trunk/qgis/src/app/legend/qgslegendlayer.cpp 2009-11-06 08:52:05 UTC (rev 11923)
@@ -514,15 +514,15 @@
theMenu.addAction( toggleEditingAction );
}
- QgsVectorLayer* theVectorLayer = qobject_cast<QgsVectorLayer *>( firstLayer );
+ QgsVectorLayer* mypVectorLayer = qobject_cast<QgsVectorLayer *>( firstLayer );
if ( files.size() != 1 )
{
toggleEditingAction->setEnabled( false );
}
- if ( theVectorLayer )
+ if ( mypVectorLayer )
{
- toggleEditingAction->setChecked( theVectorLayer->isEditable() );
+ toggleEditingAction->setChecked( mypVectorLayer->isEditable() );
}
// save as shapefile
@@ -534,7 +534,7 @@
// save selection as shapefile
QAction* saveSelectionAction = theMenu.addAction( tr( "Save selection as shapefile..." ), this, SLOT( saveSelectionAsShapefile() ) );
- if ( files.size() != 1 || theVectorLayer->selectedFeatureCount() == 0 )
+ if ( files.size() != 1 || mypVectorLayer->selectedFeatureCount() == 0 )
{
saveSelectionAction->setEnabled( false );
}
More information about the QGIS-commit
mailing list