Skip to content

Commit

Permalink
Bug 774118 - EXTERNAL_GROUPS lose hierarchy
Browse files Browse the repository at this point in the history
Created relations between groups as specified in the tag file
  • Loading branch information
albert-github committed Nov 28, 2018
1 parent 8c7b135 commit 730b782
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/tagreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include "filedef.h"
#include "filename.h"
#include "section.h"
#include "groupdef.h"

/** Information about an linkable anchor */
class TagAnchorInfo
Expand Down Expand Up @@ -1469,6 +1470,22 @@ void TagFileParser::buildLists(Entry *root)
root->addSubEntry(ge);
}

// set subgroup relations bug_774118
for (git.toFirst();(tgi=git.current());++git)
{
QCStringList::Iterator it;
for ( it = tgi->subgroupList.begin(); it != tgi->subgroupList.end(); ++it )
{
QListIterator<Entry> eli(*(root->children()));
Entry *childNode;
for (eli.toFirst();(childNode=eli.current());++eli)
{
if (childNode->name == (*it)) break;
}
childNode->groups->append(new Grouping(tgi->name,Grouping::GROUPING_INGROUP));
}
}

// build page list
QListIterator<TagPageInfo> pgit(m_tagFilePages);
TagPageInfo *tpi;
Expand Down

0 comments on commit 730b782

Please sign in to comment.