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 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.
@@ -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.