Skip to content

Commit

Permalink
issue #9094: Wrong QHP index structure
Browse files Browse the repository at this point in the history
  • Loading branch information
doxygen committed Feb 20, 2022
1 parent d280c60 commit 427e0a4
Show file tree
Hide file tree
Showing 12 changed files with 233 additions and 467 deletions.
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Expand Up @@ -289,7 +289,6 @@ add_library(doxymain STATIC
plantuml.cpp
qcstring.cpp
qhp.cpp
qhpxmlwriter.cpp
reflist.cpp
regex.cpp
resourcemgr.cpp
Expand Down
1 change: 0 additions & 1 deletion src/docsets.h
Expand Up @@ -48,7 +48,6 @@ class DocSets : public IndexIntf
bool addToNavIndex,
const Definition *def
);
void closeContentsItem() {}
void addIndexItem(const Definition *context,const MemberDef *md,
const QCString &sectionAnchor,const QCString &title);
void addIndexFile(const QCString &name);
Expand Down
2 changes: 1 addition & 1 deletion src/doxygen.cpp
Expand Up @@ -12532,7 +12532,7 @@ void generateOutput()
!Config_getString(QHG_LOCATION).isEmpty())
{
g_s.begin("Running qhelpgenerator...\n");
QCString qhpFileName = Qhp::getQhpFileName();
QCString qhpFileName = "index.qhp";
QCString qchFileName = getQchFileName();

QCString args = QCString().sprintf("%s -o \"%s\"", qPrint(qhpFileName), qPrint(qchFileName));
Expand Down
1 change: 0 additions & 1 deletion src/eclipsehelp.h
Expand Up @@ -51,7 +51,6 @@ class EclipseHelp : public IndexIntf
virtual void addContentsItem(bool isDir, const QCString &name, const QCString &ref,
const QCString &file, const QCString &anchor,bool separateIndex,bool addToNavIndex,
const Definition *def);
virtual void closeContentsItem() {}
virtual void addIndexItem(const Definition *context,const MemberDef *md,
const QCString &sectionAnchor,const QCString &title);
virtual void addIndexFile(const QCString &name);
Expand Down
1 change: 0 additions & 1 deletion src/ftvhelp.h
Expand Up @@ -50,7 +50,6 @@ class FTVHelp : public IndexIntf
bool separateIndex,
bool addToNavIndex,
const Definition *def);
void closeContentsItem() {}
void addIndexItem(const Definition *,const MemberDef *,const QCString &,const QCString &) {}
void addIndexFile(const QCString &) {}
void addImageFile(const QCString &) {}
Expand Down
1 change: 0 additions & 1 deletion src/htmlhelp.h
Expand Up @@ -73,7 +73,6 @@ class HtmlHelp : public IndexIntf
bool separateIndex,
bool addToNavIndex,
const Definition *def);
void closeContentsItem() {}
void addIndexItem(const Definition *context,const MemberDef *md,
const QCString &sectionAnchor, const QCString &title);
void addIndexFile(const QCString &name);
Expand Down
5 changes: 0 additions & 5 deletions src/index.cpp
Expand Up @@ -331,7 +331,6 @@ static void writeMemberToIndex(const Definition *def,const MemberDef *md,bool ad
Doxygen::indexList->decContentsDepth();
}
}
Doxygen::indexList->closeContentsItem();
}

//----------------------------------------------------------------------
Expand Down Expand Up @@ -3846,10 +3845,6 @@ static void writeGroupTreeNode(OutputList &ol, const GroupDef *gd, int level, FT
}
Doxygen::indexList->decContentsDepth();
}
if (md->isVisible() && !md->isAnonymous())
{
Doxygen::indexList->closeContentsItem();
}
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/index.h
Expand Up @@ -40,7 +40,6 @@ class IndexIntf
virtual void addContentsItem(bool isDir, const QCString &name, const QCString &ref,
const QCString &file, const QCString &anchor, bool separateIndex,
bool addToNavIndex,const Definition *def) = 0;
virtual void closeContentsItem() = 0;
virtual void addIndexItem(const Definition *context,const MemberDef *md,
const QCString &sectionAnchor,const QCString &title) = 0;
virtual void addIndexFile(const QCString &name) = 0;
Expand Down Expand Up @@ -99,8 +98,6 @@ class IndexList : public IndexIntf
const QCString &file, const QCString &anchor,bool separateIndex=FALSE,bool addToNavIndex=FALSE,
const Definition *def=0)
{ if (m_enabled) foreach(&IndexIntf::addContentsItem,isDir,name,ref,file,anchor,separateIndex,addToNavIndex,def); }
void closeContentsItem()
{ if (m_enabled) foreach(&IndexIntf::closeContentsItem); }
void addIndexItem(const Definition *context,const MemberDef *md,const QCString &sectionAnchor=QCString(),const QCString &title=QCString())
{ if (m_enabled) foreach(&IndexIntf::addIndexItem,context,md,sectionAnchor,title); }
void addIndexFile(const QCString &name)
Expand Down

0 comments on commit 427e0a4

Please sign in to comment.