Skip to content

Commit

Permalink
multilayer identify: also report layer name
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11583 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Sep 7, 2009
1 parent b34c58c commit e804b63
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 e804b63

Please sign in to comment.