QDoc: Fix no-examples option.

This was accidentally removed in the big change regarding searching in
the internal QDoc tree.

Change-Id: I2496d7497d239f1ec5fbd01be6a918c1ef29fc95
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
bb10
Martin Smith 2012-04-11 15:25:59 +02:00 committed by Qt by Nokia
parent b1addf36c1
commit 1ec7843856
1 changed files with 5 additions and 3 deletions

View File

@ -689,9 +689,11 @@ Node* CppCodeParser::processTopicCommand(const Doc& doc,
return node;
}
else if (command == COMMAND_EXAMPLE) {
ExampleNode* en = new ExampleNode(tree_->root(), arg);
createExampleFileNodes(en);
return en;
if (Config::generateExamples) {
ExampleNode* en = new ExampleNode(tree_->root(), arg);
createExampleFileNodes(en);
return en;
}
}
else if (command == COMMAND_EXTERNALPAGE) {
return new FakeNode(tree_->root(), arg, Node::ExternalPage, Node::ArticlePage);