Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 committed Sep 7, 2009
1 parent 9419284 commit 49ddddd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgsmaptoolidentify.cpp
Expand Up @@ -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 );

Expand All @@ -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;
Expand All @@ -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();
}
Expand Down
1 change: 1 addition & 0 deletions src/app/qgsmaptoolidentify.h
Expand Up @@ -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 );
Expand Down

0 comments on commit 49ddddd

Please sign in to comment.