diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-06-22 20:14:03 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-06-22 20:14:03 (GMT) |
commit | 7c0a46b50fad0925e47b78326f8c2e92e3829fb4 (patch) | |
tree | 2f918f7da3205101b2a8a300ee9afefe247b3f24 /src/qhp.cpp | |
parent | 7a3de4c3c8aac25c38b6e93bb0927de40cd1c650 (diff) | |
download | Doxygen-7c0a46b50fad0925e47b78326f8c2e92e3829fb4.zip Doxygen-7c0a46b50fad0925e47b78326f8c2e92e3829fb4.tar.gz Doxygen-7c0a46b50fad0925e47b78326f8c2e92e3829fb4.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; |