Skip to content

Commit ade1226

Browse files
author
timlinux
committedOct 6, 2008
give better names to some methods
git-svn-id: http://svn.osgeo.org/qgis/trunk@9440 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 1599ecb commit ade1226

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/gui/qgsmapcanvas.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ QgsMapRenderer* QgsMapCanvas::mapRenderer()
173173
}
174174

175175

176-
QgsMapLayer* QgsMapCanvas::getZpos( int index )
176+
QgsMapLayer* QgsMapCanvas::layer( int index )
177177
{
178178
QStringList& layers = mMapRenderer->layerSet();
179179
if ( index >= 0 && index < ( int ) layers.size() )
@@ -253,7 +253,7 @@ void QgsMapCanvas::setLayerSet( QList<QgsMapCanvasLayer>& layers )
253253
{
254254
// Add check if vector layer when disconnecting from selectionChanged slot
255255
// Ticket #811 - racicot
256-
QgsMapLayer *currentLayer = getZpos( i );
256+
QgsMapLayer *currentLayer = layer( i );
257257
disconnect( currentLayer, SIGNAL( repaintRequested() ), this, SLOT( refresh() ) );
258258
disconnect( currentLayer, SIGNAL( screenUpdateRequested() ), this, SLOT( updateMap() ) );
259259
QgsVectorLayer *isVectLyr = dynamic_cast < QgsVectorLayer * >( currentLayer );
@@ -269,7 +269,7 @@ void QgsMapCanvas::setLayerSet( QList<QgsMapCanvasLayer>& layers )
269269
{
270270
// Add check if vector layer when connecting to selectionChanged slot
271271
// Ticket #811 - racicot
272-
QgsMapLayer *currentLayer = getZpos( i );
272+
QgsMapLayer *currentLayer = layer( i );
273273
connect( currentLayer, SIGNAL( repaintRequested() ), this, SLOT( refresh() ) );
274274
connect( currentLayer, SIGNAL( screenUpdateRequested() ), this, SLOT( updateMap() ) );
275275
QgsVectorLayer *isVectLyr = dynamic_cast < QgsVectorLayer * >( currentLayer );

‎src/gui/qgsmapcanvas.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
172172
void updateFullExtent();
173173

174174
//! return the map layer at position index in the layer stack
175-
QgsMapLayer *getZpos( int index );
175+
QgsMapLayer *layer( int index );
176176

177177
//! return number of layers on the map
178178
int layerCount() const;

0 commit comments

Comments
 (0)
Please sign in to comment.