qdoc: Restore navigation bar title for module pages and groups
Adapt the code that generates the navigation bar to the recent changes in node hierarchy - Module pages, QML module pages and groups are no longer DocNodes. This change will ensure that if a page has a title, it will be visible in the navigation bar regardless of the the page (node) type. Change-Id: I697a12d5904d88f91771764ab7ed607b79e4eab1 Reviewed-by: Martin Smith <martin.smith@digia.com>bb10
parent
f286e0813b
commit
d28e2e225c
|
|
@ -1680,13 +1680,12 @@ void HtmlGenerator::generateNavigationBar(const QString &title,
|
|||
<< Atom(Atom::FormattingRight, ATOM_FORMATTING_LINK)
|
||||
<< Atom(Atom::ListItemRight);
|
||||
}
|
||||
else if (node->isDocNode()) {
|
||||
const DocNode *dn = static_cast<const DocNode *>(node);
|
||||
if (dn && dn->isExampleFile()) {
|
||||
else {
|
||||
if (node->isExampleFile()) {
|
||||
navigationbar << Atom(Atom::ListItemLeft)
|
||||
<< Atom(Atom::Link, dn->parent()->name())
|
||||
<< Atom(Atom::Link, node->parent()->name())
|
||||
<< Atom(Atom::FormattingLeft, ATOM_FORMATTING_LINK)
|
||||
<< Atom(Atom::String, dn->parent()->title())
|
||||
<< Atom(Atom::String, node->parent()->title())
|
||||
<< Atom(Atom::FormattingRight, ATOM_FORMATTING_LINK)
|
||||
<< Atom(Atom::ListItemRight);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue