summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2010-08-19 08:04:58 (GMT)
committerMartin Smith <martin.smith@nokia.com>2010-08-19 08:04:58 (GMT)
commit91f47532111927c7b8d5cd9981ded7bc0c203d88 (patch)
treeee936421d776623fd5023a1b570e7823d0fe8700 /tools/qdoc3
parent4d1f74c9c8f26e978f4c3487f2bd8a9af219167f (diff)
downloadQt-91f47532111927c7b8d5cd9981ded7bc0c203d88.zip
Qt-91f47532111927c7b8d5cd9981ded7bc0c203d88.tar.gz
Qt-91f47532111927c7b8d5cd9981ded7bc0c203d88.tar.bz2
qdoc3: Added more pagewords & elements to the search index.
Task-nr: QTBUG-11113
Diffstat (limited to 'tools/qdoc3')
-rw-r--r--tools/qdoc3/htmlgenerator.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp
index 8215ddc..6fbc2a9 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -4502,6 +4502,12 @@ bool HtmlGenerator::generatePageElement(QXmlStreamWriter& writer,
pageWords << title;
break;
}
+
+ Node* parent = node->parent();
+ if (parent && ((parent->type() == Node::Class) ||
+ (parent->type() == Node::Namespace))) {
+ pageWords << parent->name();
+ }
}
writer.writeAttribute("id",t);