Commit ff5ec803 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Added last and first attributes to index tree node

parent 1bb36723
...@@ -2075,7 +2075,14 @@ void TemplateContextImpl::addIndexEntry(const QCString &indexName,const QValueLi ...@@ -2075,7 +2075,14 @@ void TemplateContextImpl::addIndexEntry(const QCString &indexName,const QValueLi
{ {
entry->set((*it).key,(*it).value); 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("is_leaf_node",true);
entry->set("first",list->count()==0);
entry->set("last",true);
stack->push(new TemplateVariant(entry)); stack->push(new TemplateVariant(entry));
list->append(entry); list->append(entry);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment