From b5415ab695daa49e83587d46641c67b68a2fd4cd Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Fri, 30 Apr 2010 13:06:43 +0200 Subject: qdoc: Added breadcrumbs for namespaces. --- tools/qdoc3/codeparser.cpp | 1 - tools/qdoc3/htmlgenerator.cpp | 9 +++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/qdoc3/codeparser.cpp b/tools/qdoc3/codeparser.cpp index 78804eb..65d9572 100644 --- a/tools/qdoc3/codeparser.cpp +++ b/tools/qdoc3/codeparser.cpp @@ -252,7 +252,6 @@ void CodeParser::processCommonMetaCommand(const Location &location, FakeNode *fake = static_cast(node); fake->setTitle(arg); nameToTitle.insert(fake->name(),arg); - qDebug() << "NAME TO TITLE:" << fake->name() << arg; } else location.warning(tr("Ignored '\\%1'").arg(COMMAND_TITLE)); diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index 9aa8a9a..fb3c3f3 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -1224,7 +1224,7 @@ void HtmlGenerator::generateClassLikeNode(const InnerNode *inner, namespasse = static_cast(inner); rawTitle = marker->plainName(inner); fullTitle = marker->plainFullName(inner); - title = rawTitle + " Namespace Reference"; + title = rawTitle + " Namespace"; } else if (inner->type() == Node::Class) { classe = static_cast(inner); @@ -1726,6 +1726,9 @@ void HtmlGenerator::generateBreadCrumbs(const QString& title, out() << "
  • name() << "\">" << title << "
  • "; } + else if (fn->name() == QString("namespaces.html")) { + out() << "
  • All Namespaces
  • "; + } } else if (node->subType() == Node::QmlClass) { } @@ -1743,10 +1746,12 @@ void HtmlGenerator::generateBreadCrumbs(const QString& title, } else if (node->type() == Node::Namespace) { const NamespaceNode* nsn = static_cast(node); + out() << "
  • All Namespaces
  • "; + out() << "
  • " << title + << "
  • "; } } - void HtmlGenerator::generateHeader(const QString& title, const Node *node, CodeMarker *marker) -- cgit v0.12