qdoc: also allow \page index as head of ditamap.

QDoc previously only supported having \page index.html as root of the
ditamap, this is hard to understand.

Change-Id: I9f99bf53440aad372bb72b59e7bfa1a0427cb652
Reviewed-by: Martin Smith <martin.smith@nokia.com>
This commit is contained in:
Casper van Donderen 2012-03-27 11:51:42 +02:00 committed by Qt by Nokia
parent 89be197b92
commit 3198247ccf

View File

@ -5737,7 +5737,7 @@ Node* DitaXmlGenerator::collectNodesByTypeAndSubtype(const InnerNode* parent)
if (!child || child->isInternal() || child->doc().isEmpty())
continue;
if (child->name() == "index.html") {
if (child->name() == "index.html" || child->name() == "index") {
rootPageNode = child;
}