diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2009-06-22 20:14:03 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2009-06-22 20:14:03 (GMT) |
commit | b70a5b4f9325ec703db37394feeaa9ebc11228b4 (patch) | |
tree | 2f918f7da3205101b2a8a300ee9afefe247b3f24 /src/qhp.cpp | |
parent | 8375a55083e5232e65493e73cb594c9c5e9552ab (diff) | |
download | Doxygen-b70a5b4f9325ec703db37394feeaa9ebc11228b4.zip Doxygen-b70a5b4f9325ec703db37394feeaa9ebc11228b4.tar.gz Doxygen-b70a5b4f9325ec703db37394feeaa9ebc11228b4.tar.bz2 |
Release-1.5.9-20090622
Diffstat (limited to 'src/qhp.cpp')
-rw-r--r-- | src/qhp.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/qhp.cpp b/src/qhp.cpp index ba7983d..15ecdab 100644 --- a/src/qhp.cpp +++ b/src/qhp.cpp @@ -188,10 +188,25 @@ void Qhp::addIndexItem(const char * level1, const char * level2, const char * contRef, const char * /*memRef*/, const char * anchor, const MemberDef * /*md*/) { + QCString ref; + if ((m_prevIdName!=level1) || (m_prevIdRef!=contRef)) + { + m_prevIdName = level1; + m_prevIdRef = contRef; + + ref = makeFileName(contRef); + const char * attributes[] = + { "name", level1, + "id", level1, + "ref", ref, + 0 + }; + m_index.openClose("keyword", attributes); + } /* <keyword name="foo" id="MyApplication::foo" ref="doc.html#foo"/> */ - QCString ref = makeRef(contRef, anchor); + ref = makeRef(contRef, anchor); QCString id(level1); id += "::"; id += level2; |