QDoc: Use \page title with prev/next links in DITAXML.

Change-Id: I260998986752f5c8cc48279c04557c925af1cb14
Reviewed-by: Martin Smith <martin.smith@nokia.com>
This commit is contained in:
Casper van Donderen 2012-06-01 14:11:42 +02:00 committed by Qt by Nokia
parent 6375cbf99a
commit 6c60fe20c2

View File

@ -2414,16 +2414,28 @@ void DitaXmlGenerator::writeRelatedLinks(const FakeNode* node, CodeMarker* marke
if (node->links().contains(Node::PreviousLink)) {
linkPair = node->links()[Node::PreviousLink];
linkNode = findNodeForTarget(linkPair.first, node, marker);
if (linkNode->type() == Node::Fake) {
const FakeNode *fakeNode = static_cast<const FakeNode*>(linkNode);
linkPair.second = fakeNode->title();
}
writeLink(linkNode, linkPair.second, "previous");
}
if (node->links().contains(Node::NextLink)) {
linkPair = node->links()[Node::NextLink];
linkNode = findNodeForTarget(linkPair.first, node, marker);
if (linkNode->type() == Node::Fake) {
const FakeNode *fakeNode = static_cast<const FakeNode*>(linkNode);
linkPair.second = fakeNode->title();
}
writeLink(linkNode, linkPair.second, "next");
}
if (node->links().contains(Node::StartLink)) {
linkPair = node->links()[Node::StartLink];
linkNode = findNodeForTarget(linkPair.first, node, marker);
if (linkNode->type() == Node::Fake) {
const FakeNode *fakeNode = static_cast<const FakeNode*>(linkNode);
linkPair.second = fakeNode->title();
}
writeLink(linkNode, linkPair.second, "parent");
}
writeEndTag(); // </related-links>