Skip to content
Permalink
Browse files

enhancement #810 added

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7407 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Nov 14, 2007
1 parent 2856666 commit b7a5973d762279fbc97105b628880a2623b4c76a
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/app/qgsmaptoolidentify.cpp
@@ -153,6 +153,8 @@ void QgsMapToolIdentify::identifyRasterLayer(QgsRasterLayer* layer, const QgsPoi
mResults->addAttribute(it->first, it->second);
}

mResults->addAttribute( tr("(clicked coordinate)"), point.stringRep() );

mResults->showAllAttributes();
mResults->show();
}
@@ -212,7 +214,7 @@ void QgsMapToolIdentify::identifyRasterWmsLayer(QgsRasterLayer* layer, const Qgs

QgsMessageViewer* viewer = new QgsMessageViewer();
viewer->setCaption( layer->name() );
viewer->setMessageAsPlainText( text );
viewer->setMessageAsPlainText( QString(tr("WMS identify result for %1\n%2")).arg(point.stringRep()).arg(text) );

viewer->showMessage(); // deletes itself on close
}
@@ -279,6 +281,9 @@ void QgsMapToolIdentify::identifyVectorLayer(QgsVectorLayer* layer, const QgsPoi

int lastFeatureId = 0;

QTreeWidgetItem *click = mResults->addNode(tr("(clicked coordinate)"));
click->setText(1, point.stringRep());

while (dataProvider->getNextFeature(feat))
{
featureCount++;

0 comments on commit b7a5973

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