diff options
| author | Martin Smith <martin.smith@nokia.com> | 2012-08-21 15:43:51 +0200 |
|---|---|---|
| committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-21 16:15:21 +0200 |
| commit | 5f4d793d816b35776e59744732f8b0010a20a4d6 (patch) | |
| tree | 784d3963ec2b9517800a0729cd8778a261d8938a /src/tools/qdoc/codeparser.cpp | |
| parent | 6276acb59a800e3cc3251f218b285f988a9128b5 (diff) | |
doc: Replaced FakeNode with DocNode
The name FakeNode was a bad choice. It was used
to represent something that wasn't derived from
a C++ declaration in a .h file. Any generic page
or QML item or any special kind of qdoc construct
was stored in a FakeNode. The name was unfortunate
because the constructs stored in FakeNodes were
just as real as C++ constructs.
So FakeNode has been renamed to DocNode, which
just refers to a documentation node. The node
type Fake has been replaced with node type
Document.
Change-Id: Ida9de8288b7b8915bf9273fd890ca84aaf05e182
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src/tools/qdoc/codeparser.cpp')
| -rw-r--r-- | src/tools/qdoc/codeparser.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/tools/qdoc/codeparser.cpp b/src/tools/qdoc/codeparser.cpp index e8111201683..dbbb20ccfe0 100644 --- a/src/tools/qdoc/codeparser.cpp +++ b/src/tools/qdoc/codeparser.cpp @@ -251,7 +251,7 @@ void CodeParser::processCommonMetaCommand(const Location& location, } else if (command == COMMAND_INQMLMODULE) { node->setQmlModule(arg); - FakeNode* fn = FakeNode::lookupQmlModuleNode(tree, arg); + DocNode* fn = DocNode::lookupQmlModuleNode(tree, arg); fn->addQmlModuleMember(node); QString qmid = node->qmlModuleIdentifier(); QmlClassNode* qcn = static_cast<QmlClassNode*>(node); @@ -297,9 +297,9 @@ void CodeParser::processCommonMetaCommand(const Location& location, node->addPageKeywords(arg.first); } else if (command == COMMAND_SUBTITLE) { - if (node->type() == Node::Fake) { - FakeNode *fake = static_cast<FakeNode *>(node); - fake->setSubTitle(arg.first); + if (node->type() == Node::Document) { + DocNode *dn = static_cast<DocNode *>(node); + dn->setSubTitle(arg.first); } else location.warning(tr("Ignored '\\%1'").arg(COMMAND_SUBTITLE)); @@ -308,13 +308,13 @@ void CodeParser::processCommonMetaCommand(const Location& location, node->setThreadSafeness(Node::ThreadSafe); } else if (command == COMMAND_TITLE) { - if (node->type() == Node::Fake) { - FakeNode *fake = static_cast<FakeNode *>(node); - fake->setTitle(arg.first); - if (fake->subType() == Node::Example) { - ExampleNode::exampleNodeMap.insert(fake->title(),static_cast<ExampleNode*>(fake)); + if (node->type() == Node::Document) { + DocNode *dn = static_cast<DocNode *>(node); + dn->setTitle(arg.first); + if (dn->subType() == Node::Example) { + ExampleNode::exampleNodeMap.insert(dn->title(),static_cast<ExampleNode*>(dn)); } - nameToTitle.insert(fake->name(),arg.first); + nameToTitle.insert(dn->name(),arg.first); } else location.warning(tr("Ignored '\\%1'").arg(COMMAND_TITLE)); |
