diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-07-13 07:43:08 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-07-16 07:21:52 (GMT) |
commit | da11546e7ec502670e1dda499a68fcc80272b9f6 (patch) | |
tree | 2618fb79100a26cac3788eedfed6ad65a8eadf4e /tools/qdoc3 | |
parent | b2ab0a5912f68730ed6b23f31351d747ca8815cf (diff) | |
download | Qt-da11546e7ec502670e1dda499a68fcc80272b9f6.zip Qt-da11546e7ec502670e1dda499a68fcc80272b9f6.tar.gz Qt-da11546e7ec502670e1dda499a68fcc80272b9f6.tar.bz2 |
qdoc: Fixed breadcrumbs for QML examples.
Task-number: QTBUG-11679
(cherry picked from commit 69910bc33dc448a9aa81eb00ed45be6d0488e447)
Diffstat (limited to 'tools/qdoc3')
-rw-r--r-- | tools/qdoc3/htmlgenerator.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp index 4461b48..7acacff 100644 --- a/tools/qdoc3/htmlgenerator.cpp +++ b/tools/qdoc3/htmlgenerator.cpp @@ -1738,8 +1738,9 @@ void HtmlGenerator::generateBreadCrumbs(const QString& title, } } else if (node->subType() == Node::Page) { - if (fn->name() == QString("examples.html")) { - out() << " <li>Examples</li>"; + if (fn->name() == QString("qdeclarativeexamples.html")) { + out() << " <li><a href=\"all-examples.html\">Examples</a></li>"; + out() << " <li>QML Examples & Demos</li>"; } else if (fn->name().startsWith("examples-")) { out() << " <li><a href=\"all-examples.html\">Examples</a></li>"; @@ -1759,10 +1760,14 @@ void HtmlGenerator::generateBreadCrumbs(const QString& title, else if (node->subType() == Node::Example) { out() << " <li><a href=\"all-examples.html\">Examples</a></li>"; QStringList sl = fn->name().split('/'); - QString name = "examples-" + sl.at(0) + ".html"; - QString t = CodeParser::titleFromName(name); - out() << " <li><a href=\"" << name << "\">" - << t << "</a></li>"; + if (sl.contains("declarative")) + out() << " <li><a href=\"qdeclarativeexamples.html\">QML Examples & Demos</a></li>"; + else { + QString name = "examples-" + sl.at(0) + ".html"; + QString t = CodeParser::titleFromName(name); + out() << " <li><a href=\"" << name << "\">" + << t << "</a></li>"; + } out() << " <li>" << title << "</li>"; } } |