Skip to content
Permalink
Browse files
Bug fix. The %% thing works again in Actions, and now works with the
actions names too.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9033 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gjm committed Aug 8, 2008
1 parent 455bc86 commit 150a5de950b54449d461c3a8d54f2c9f3174f106
Showing with 29 additions and 14 deletions.
  1. +29 −14 src/app/qgsidentifyresults.cpp
@@ -332,24 +332,39 @@ void QgsIdentifyResults::extractAllItemData(QTreeWidgetItem* item)
// to pick up which child that actually is (the parent in the
// identify results dialog box is just one of the children
// that has been chosen by some method).


int valuesIndex = 0;

for (int j = 0; j < parent->childCount(); ++j)
{
if ( parent->child(j)->text(0) != "action" ) {
// For derived attributes, build up a virtual name
if (parent->child(j)->text(0) == mDerivedLabel ) {
for (int k = 0; k < parent->child(j)->childCount(); ++k)
mValues.push_back(
std::make_pair(mDerivedLabel + "."
+ parent->child(j)->child(k)->text(0),
parent->child(j)->child(k)->text(1)));
// For derived attributes, build up a virtual name
if (parent->child(j)->text(0) == mDerivedLabel ) {
for (int k = 0; k < parent->child(j)->childCount(); ++k)
{
mValues.push_back(
std::make_pair(mDerivedLabel + "."
+ parent->child(j)->child(k)->text(0),
parent->child(j)->child(k)->text(1)));

if (item == parent->child(j)->child(k))
{
mClickedOnValue = valuesIndex;
}

valuesIndex++;
}
}
else // do the actual feature attributes
{
mValues.push_back(std::make_pair(parent->child(j)->text(0),
parent->child(j)->text(1)));

if (item == parent->child(j))
{
mClickedOnValue = valuesIndex;
}
else // do the actual feature attributes
mValues.push_back(std::make_pair(parent->child(j)->text(0),
parent->child(j)->text(1)));

if (parent->child(j)->text(0) == item->text(0))
mClickedOnValue = j;
valuesIndex++;
}
}
}

0 comments on commit 150a5de

Please sign in to comment.