qdoc: Ensure obsolete members file is written

In the case where the only obsolete members of a class
were actually non-members but just related functions,
the help file writer didn't include a reference to the
obsolete members file. This update fixes that bug.

Task-number: QTBUG-31379
Change-Id: I065da649bc12e3dcc81244939be0162599d54be9
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
This commit is contained in:
Martin Smith 2013-07-30 13:38:21 +02:00 committed by The Qt Project
parent d37db71323
commit 1d2941f978

View File

@ -436,6 +436,9 @@ void HelpProjectWriter::generateSections(HelpProject &project,
// Ensure that we don't visit nodes more than once.
QMap<QString, const Node*> childMap;
foreach (const Node *childNode, inner->childNodes()) {
if (childNode->isIndexNode())
continue;
if (childNode->access() == Node::Private)
continue;
@ -462,6 +465,10 @@ void HelpProjectWriter::generateSections(HelpProject &project,
else {
// Store member status of children
project.memberStatus[node].insert(childNode->status());
if (childNode->relates()) {
project.memberStatus[childNode->relates()].insert(childNode->status());
project.files.insert(gen_->fullDocumentLocation(childNode->relates(),true));
}
if (childNode->type() == Node::Function) {
const FunctionNode *funcNode = static_cast<const FunctionNode *>(childNode);