From b9290065131ae60c9b92c850f0bb6121fbb618c1 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Tue, 7 Apr 2015 10:27:08 +0200 Subject: [PATCH] qdoc: Use the title instead of plain name when listing groups When listing group nodes, for example, with \annotatedlist command, QDoc created a link with the plain name (the string that was passed to \group command as parameter) as the link text. This change makes QDoc use the group \title, if one exists. Change-Id: I30b7f9eefc60c12f67b1e579bbc4c5cebe84474b Task-number: QTBUG-45420 Reviewed-by: Martin Smith --- src/tools/qdoc/node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/qdoc/node.cpp b/src/tools/qdoc/node.cpp index 8e094f38c4..24c64538c3 100644 --- a/src/tools/qdoc/node.cpp +++ b/src/tools/qdoc/node.cpp @@ -149,7 +149,7 @@ QString Node::plainFullName(const Node* relative) const */ QString Node::fullName(const Node* relative) const { - if (isDocumentNode()) + if ((isDocumentNode() || isGroup()) && !title().isEmpty()) return title(); return plainFullName(relative); }