Permalink
Browse files

Added last and first attributes to index tree node

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Apr 12, 2014
1 parent 1bb3672 commit ff5ec803a39b225e03edcd1bf2df3198dafcc16e
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/template.cpp
View
@@ -2075,7 +2075,14 @@ void TemplateContextImpl::addIndexEntry(const QCString &indexName,const QValueLi
{
entry->set((*it).key,(*it).value);
}
if (list->count()>0)
{
TemplateStruct *lastEntry = dynamic_cast<TemplateStruct*>(list->at(list->count()-1).toStruct());
lastEntry->set("last",false);
}
entry->set("is_leaf_node",true);
entry->set("first",list->count()==0);
entry->set("last",true);
stack->push(new TemplateVariant(entry));
list->append(entry);
}

0 comments on commit ff5ec80

Please sign in to comment.