Skip to content
Permalink
Browse files

multilayer identify: also report layer name

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11583 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Sep 7, 2009
1 parent b34c58c commit e804b633be26ad43b3b3172c09e612e94f75ea58
Showing with 5 additions and 0 deletions.
  1. +4 −0 src/app/qgsmaptoolidentify.cpp
  2. +1 −0 src/app/qgsmaptoolidentify.h
@@ -100,6 +100,7 @@ void QgsMapToolIdentify::canvasReleaseEvent( QMouseEvent * e )
else
{
connect( this, SIGNAL( identifyProgress( int, int ) ), QgisApp::instance(), SLOT( showProgress( int, int ) ) );
connect( this, SIGNAL( identifyMessage( QString ) ), QgisApp::instance(), SLOT( showStatusMessage( QString ) ) );

QApplication::setOverrideCursor( Qt::WaitCursor );

@@ -110,6 +111,7 @@ void QgsMapToolIdentify::canvasReleaseEvent( QMouseEvent * e )
QgsMapLayer *layer = mCanvas->layer( i );

emit identifyProgress( i, mCanvas->layerCount() );
emit identifyMessage( tr("Identifying on %1...").arg( layer->name() ) );

if ( noIdentifyLayerIdList.contains( layer->getLayerID() ) )
continue;
@@ -123,8 +125,10 @@ void QgsMapToolIdentify::canvasReleaseEvent( QMouseEvent * e )
}

emit identifyProgress( mCanvas->layerCount(), mCanvas->layerCount() );
emit identifyMessage( tr("Identifying done.") );

disconnect( this, SIGNAL( identifyProgress( int, int ) ), QgisApp::instance(), SLOT( showProgress( int, int ) ) );
disconnect( this, SIGNAL( identifyMessage( QString ) ), QgisApp::instance(), SLOT( showStatusMessage( QString ) ) );

QApplication::restoreOverrideCursor();
}
@@ -63,6 +63,7 @@ class QgsMapToolIdentify : public QgsMapTool

signals:
void identifyProgress( int, int );
void identifyMessage( QString );

private:
bool identifyLayer( QgsMapLayer *layer, int x, int y );

0 comments on commit e804b63

Please sign in to comment.
You can’t perform that action at this time.