Now things that are marked internal oe whose parent
is marked internal won't appear in annotated lists.
Task-number: QTBUG-28274
Change-Id: I14ea96e223640cad45e7e4249a3e1fc0642bd9c3
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
{
if (nodes.isEmpty())
return;
+ bool allInternal = true;
+ foreach (const Node* node, nodes) {
+ if (!node->isInternal() && node->status() != Node::Obsolete) {
+ allInternal = false;
+ }
+ }
+ if (allInternal)
+ return;
+
writeStartTag(DT_table);
xmlWriter().writeAttribute("outputclass","annotated");
writeStartTag(DT_tgroup);
writeStartTag(DT_tbody);
foreach (const Node* node, nodes) {
- if (node->status() == Node::Obsolete)
+ if (node->isInternal() || node->status() == Node::Obsolete)
continue;
writeStartTag(DT_row);
CodeMarker *marker,
const NodeList& nodes)
{
+ bool allInternal = true;
+ foreach (const Node* node, nodes) {
+ if (!node->isInternal() && node->status() != Node::Obsolete) {
+ allInternal = false;
+ }
+ }
+ if (allInternal)
+ return;
out() << "<table class=\"annotated\">\n";
int row = 0;
foreach (const Node* node, nodes) {
- if (node->status() == Node::Obsolete)
+ if (node->isInternal() || node->status() == Node::Obsolete)
continue;
if (++row % 2 == 1)