mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-18 00:14:20 -05:00
give better names to some methods
git-svn-id: http://svn.osgeo.org/qgis/trunk@9440 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
1599ecb553
commit
ade1226b07
@ -173,7 +173,7 @@ QgsMapRenderer* QgsMapCanvas::mapRenderer()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QgsMapLayer* QgsMapCanvas::getZpos( int index )
|
QgsMapLayer* QgsMapCanvas::layer( int index )
|
||||||
{
|
{
|
||||||
QStringList& layers = mMapRenderer->layerSet();
|
QStringList& layers = mMapRenderer->layerSet();
|
||||||
if ( index >= 0 && index < ( int ) layers.size() )
|
if ( index >= 0 && index < ( int ) layers.size() )
|
||||||
@ -253,7 +253,7 @@ void QgsMapCanvas::setLayerSet( QList<QgsMapCanvasLayer>& layers )
|
|||||||
{
|
{
|
||||||
// Add check if vector layer when disconnecting from selectionChanged slot
|
// Add check if vector layer when disconnecting from selectionChanged slot
|
||||||
// Ticket #811 - racicot
|
// Ticket #811 - racicot
|
||||||
QgsMapLayer *currentLayer = getZpos( i );
|
QgsMapLayer *currentLayer = layer( i );
|
||||||
disconnect( currentLayer, SIGNAL( repaintRequested() ), this, SLOT( refresh() ) );
|
disconnect( currentLayer, SIGNAL( repaintRequested() ), this, SLOT( refresh() ) );
|
||||||
disconnect( currentLayer, SIGNAL( screenUpdateRequested() ), this, SLOT( updateMap() ) );
|
disconnect( currentLayer, SIGNAL( screenUpdateRequested() ), this, SLOT( updateMap() ) );
|
||||||
QgsVectorLayer *isVectLyr = dynamic_cast < QgsVectorLayer * >( currentLayer );
|
QgsVectorLayer *isVectLyr = dynamic_cast < QgsVectorLayer * >( currentLayer );
|
||||||
@ -269,7 +269,7 @@ void QgsMapCanvas::setLayerSet( QList<QgsMapCanvasLayer>& layers )
|
|||||||
{
|
{
|
||||||
// Add check if vector layer when connecting to selectionChanged slot
|
// Add check if vector layer when connecting to selectionChanged slot
|
||||||
// Ticket #811 - racicot
|
// Ticket #811 - racicot
|
||||||
QgsMapLayer *currentLayer = getZpos( i );
|
QgsMapLayer *currentLayer = layer( i );
|
||||||
connect( currentLayer, SIGNAL( repaintRequested() ), this, SLOT( refresh() ) );
|
connect( currentLayer, SIGNAL( repaintRequested() ), this, SLOT( refresh() ) );
|
||||||
connect( currentLayer, SIGNAL( screenUpdateRequested() ), this, SLOT( updateMap() ) );
|
connect( currentLayer, SIGNAL( screenUpdateRequested() ), this, SLOT( updateMap() ) );
|
||||||
QgsVectorLayer *isVectLyr = dynamic_cast < QgsVectorLayer * >( currentLayer );
|
QgsVectorLayer *isVectLyr = dynamic_cast < QgsVectorLayer * >( currentLayer );
|
||||||
|
|||||||
@ -172,7 +172,7 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
|
|||||||
void updateFullExtent();
|
void updateFullExtent();
|
||||||
|
|
||||||
//! return the map layer at position index in the layer stack
|
//! 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
|
//! return number of layers on the map
|
||||||
int layerCount() const;
|
int layerCount() const;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user