summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-04-12 21:19:02 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-04-20 12:20:55 (GMT)
commitff5ec803a39b225e03edcd1bf2df3198dafcc16e (patch)
treeb987bbde0c3f76ead0b95c89a673de330e27fc3f /src
parent1bb36723a522b371810606c2f6504d0374a7b027 (diff)
downloadDoxygen-ff5ec803a39b225e03edcd1bf2df3198dafcc16e.zip
Doxygen-ff5ec803a39b225e03edcd1bf2df3198dafcc16e.tar.gz
Doxygen-ff5ec803a39b225e03edcd1bf2df3198dafcc16e.tar.bz2
Added last and first attributes to index tree node
Diffstat (limited to 'src')
-rw-r--r--src/template.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/template.cpp b/src/template.cpp
index 2590486..64d3523 100644
--- a/src/template.cpp
+++ b/src/template.cpp
@@ -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);
}