Skip to content

Commit

Permalink
enhancement #810 added
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@7407 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 14, 2007
1 parent 608b183 commit 0fcb250
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/qgsmaptoolidentify.cpp
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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++;
Expand Down

0 comments on commit 0fcb250

Please sign in to comment.