summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@digia.com>2015-04-07 10:27:08 +0200
committerTopi Reiniƶ <topi.reinio@digia.com>2015-04-07 11:49:13 +0000
commitb9290065131ae60c9b92c850f0bb6121fbb618c1 (patch)
tree6b172a2092b45801ecce8a34c4855752265c0342 /src/tools
parent6cd32e218d1c33fbb9aa89ab3ef554959eedcf9d (diff)
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 <martin.smith@digia.com>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/qdoc/node.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}