summaryrefslogtreecommitdiff
path: root/src/qdoc/generator.cpp
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2020-11-10 23:04:13 +0100
committerTopi Reinio <topi.reinio@qt.io>2020-11-11 09:12:35 +0100
commit1a97130f20e787812684a8f9acd76c5feef59346 (patch)
tree2f98513e09e8a4657b7f73ea5ecf9b06820a4ee7 /src/qdoc/generator.cpp
parent41ff0119b628abea56566b92bc325892b10e19ee (diff)
downloadqttools-1a97130f20e787812684a8f9acd76c5feef59346.tar.gz
qdoc: Fix linking to property groups
Only the members of a property group were written to .index, not the group itself; this made cross-module linking to the group fail. Fixes: QTBUG-88386 Change-Id: I096a2bbdd2b0af00c4d0e9a6974b6dc7dce075a2 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/qdoc/generator.cpp')
-rw-r--r--src/qdoc/generator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qdoc/generator.cpp b/src/qdoc/generator.cpp
index 6be40cce7..123a06291 100644
--- a/src/qdoc/generator.cpp
+++ b/src/qdoc/generator.cpp
@@ -636,6 +636,10 @@ QString Generator::fullDocumentLocation(const Node *node, bool useSubdir)
case Node::Property:
anchorRef = QLatin1Char('#') + node->name() + "-prop";
break;
+ case Node::SharedComment: {
+ if (!node->isPropertyGroup())
+ break;
+ } Q_FALLTHROUGH();
case Node::JsProperty:
case Node::QmlProperty:
if (node->isAttached())