qdoc: Fixed All Functions list

In Qt5, each class has a URL, so the test for an
empty URL fails in findAllFunctions(). The test is
now wrong and is therefore removed.

Task number: QTBUG-27695

Change-Id: If1aa823d4c59b91c67113f77a1a57c04ff7d1a02
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
This commit is contained in:
Martin Smith 2012-10-30 14:08:30 +01:00
parent 1bbcd2ca30
commit 09ebab46b6

View File

@ -372,7 +372,7 @@ void QDocDatabase::findAllFunctions(const InnerNode* node)
NodeList::ConstIterator c = node->childNodes().constBegin(); NodeList::ConstIterator c = node->childNodes().constBegin();
while (c != node->childNodes().constEnd()) { while (c != node->childNodes().constEnd()) {
if ((*c)->access() != Node::Private) { if ((*c)->access() != Node::Private) {
if ((*c)->isInnerNode() && (*c)->url().isEmpty()) { if ((*c)->isInnerNode()) {
findAllFunctions(static_cast<const InnerNode*>(*c)); findAllFunctions(static_cast<const InnerNode*>(*c));
} }
else if ((*c)->type() == Node::Function) { else if ((*c)->type() == Node::Function) {