summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2010-07-13 07:43:08 (GMT)
committerMartin Smith <martin.smith@nokia.com>2010-07-13 07:43:08 (GMT)
commit69910bc33dc448a9aa81eb00ed45be6d0488e447 (patch)
tree2494af7467e89b201d58ad400d017bf642baf40f /tools
parent30bd9791c06bba8f70bcf129022808fd99be743d (diff)
downloadQt-69910bc33dc448a9aa81eb00ed45be6d0488e447.zip
Qt-69910bc33dc448a9aa81eb00ed45be6d0488e447.tar.gz
Qt-69910bc33dc448a9aa81eb00ed45be6d0488e447.tar.bz2
qdoc: Fixed breadcrumbs for QML examples.
Task-number: QTBUG-11679
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/htmlgenerator.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp
index fc761e5..f3a9589 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -1702,8 +1702,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>";
@@ -1723,10 +1724,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>";
}
}