summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/index.cpp22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/index.cpp b/src/index.cpp
index 8fd476f..7053bb6 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -778,15 +778,27 @@ static void writeDirHierarchy(OutputList &ol, FTVHelp* ftv,bool addToIndex)
{
bool doc,src;
doc = fileVisibleInIndex(fd,src);
+ QCString reference, outputBase;
if (doc)
{
- addMembersToIndex(fd,LayoutDocManager::File,fd->displayName(),QCString(),TRUE);
+ reference = fd->getReference();
+ outputBase = fd->getOutputFileBase();
}
- else if (src)
+ ftv->addContentsItem(FALSE,fd->displayName(),
+ reference, outputBase, 0,
+ FALSE,FALSE,fd);
+ if (addToIndex)
{
- Doxygen::indexList.addContentsItem(
- FALSE, convertToHtml(fd->name(),TRUE), 0,
- fd->getSourceFileBase(), 0, FALSE, TRUE, fd);
+ if (doc)
+ {
+ addMembersToIndex(fd,LayoutDocManager::File,fd->displayName(),QCString(),TRUE);
+ }
+ else if (src)
+ {
+ Doxygen::indexList.addContentsItem(
+ FALSE, convertToHtml(fd->name(),TRUE), 0,
+ fd->getSourceFileBase(), 0, FALSE, TRUE, fd);
+ }
}
}
}