Skip to content

Commit

Permalink
give better names to some methods
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9440 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Oct 6, 2008
1 parent 2d3163f commit 5b75b12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -173,7 +173,7 @@ QgsMapRenderer* QgsMapCanvas::mapRenderer()
}


QgsMapLayer* QgsMapCanvas::getZpos( int index )
QgsMapLayer* QgsMapCanvas::layer( int index )
{
QStringList& layers = mMapRenderer->layerSet();
if ( index >= 0 && index < ( int ) layers.size() )
Expand Down Expand Up @@ -253,7 +253,7 @@ void QgsMapCanvas::setLayerSet( QList<QgsMapCanvasLayer>& layers )
{
// Add check if vector layer when disconnecting from selectionChanged slot
// Ticket #811 - racicot
QgsMapLayer *currentLayer = getZpos( i );
QgsMapLayer *currentLayer = layer( i );
disconnect( currentLayer, SIGNAL( repaintRequested() ), this, SLOT( refresh() ) );
disconnect( currentLayer, SIGNAL( screenUpdateRequested() ), this, SLOT( updateMap() ) );
QgsVectorLayer *isVectLyr = dynamic_cast < QgsVectorLayer * >( currentLayer );
Expand All @@ -269,7 +269,7 @@ void QgsMapCanvas::setLayerSet( QList<QgsMapCanvasLayer>& layers )
{
// Add check if vector layer when connecting to selectionChanged slot
// Ticket #811 - racicot
QgsMapLayer *currentLayer = getZpos( i );
QgsMapLayer *currentLayer = layer( i );
connect( currentLayer, SIGNAL( repaintRequested() ), this, SLOT( refresh() ) );
connect( currentLayer, SIGNAL( screenUpdateRequested() ), this, SLOT( updateMap() ) );
QgsVectorLayer *isVectLyr = dynamic_cast < QgsVectorLayer * >( currentLayer );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.h
Expand Up @@ -172,7 +172,7 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
void updateFullExtent();

//! return the map layer at position index in the layer stack
QgsMapLayer *getZpos( int index );
QgsMapLayer *layer( int index );

//! return number of layers on the map
int layerCount() const;
Expand Down

0 comments on commit 5b75b12

Please sign in to comment.