Skip to content
Permalink
Browse files

multilayer identify: also report layer name

git-svn-id: http://svn.osgeo.org/qgis/trunk@11583 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Sep 7, 2009
1 parent 9419284 commit 49ddddd921fcd8491f950ba0e505c51c93d0297a
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 49ddddd

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