summaryrefslogtreecommitdiffstats
path: root/src/qhp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qhp.cpp')
-rw-r--r--src/qhp.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/qhp.cpp b/src/qhp.cpp
index 00e870b..e72db55 100644
--- a/src/qhp.cpp
+++ b/src/qhp.cpp
@@ -124,9 +124,10 @@ void Qhp::initialize()
// Add extra root node
QCString fullProjectname = getFullProjectName();
+ QCString indexFile = "index"+Doxygen::htmlFileExtension;
const char * const attributes[] =
{ "title", fullProjectname,
- "ref", QCString("index")+Doxygen::htmlFileExtension,
+ "ref", indexFile,
NULL
};
m_toc.open("section", attributes);
@@ -211,7 +212,7 @@ void Qhp::addContentsItem(bool /*isDir*/, const char * name,
}
void Qhp::addIndexItem(Definition *context,MemberDef *md,
- const char *word)
+ const char *sectionAnchor,const char *word)
{
(void)word;
//printf("addIndexItem(%s %s %s\n",
@@ -235,7 +236,7 @@ void Qhp::addIndexItem(Definition *context,MemberDef *md,
QCString level1 = context->name();
QCString level2 = word ? QCString(word) : md->name();
QCString contRef = separateMemberPages ? cfname : cfiname;
- QCString anchor = md->anchor();
+ QCString anchor = sectionAnchor ? QCString(sectionAnchor) : md->anchor();
QCString ref;
@@ -256,7 +257,7 @@ void Qhp::addIndexItem(Definition *context,MemberDef *md,
// <keyword name="Foo" id="Foo" ref="doc.html"/>
QCString contRef = context->getOutputFileBase();
QCString level1 = word ? QCString(word) : context->name();
- QCString ref = makeFileName(contRef);
+ QCString ref = makeRef(contRef,sectionAnchor);
const char * attributes[] =
{
"name", level1,