summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tools/qdoc/qdocindexfiles.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/qdoc/qdocindexfiles.cpp b/src/tools/qdoc/qdocindexfiles.cpp
index 74b0b143478..c7ff8c8288e 100644
--- a/src/tools/qdoc/qdocindexfiles.cpp
+++ b/src/tools/qdoc/qdocindexfiles.cpp
@@ -1190,9 +1190,13 @@ bool QDocIndexFiles::generateIndexSection(QXmlStreamWriter& writer,
writer.writeAttribute("relates", functionNode->relates()->name());
}
if (functionNode->hasAssociatedProperties()) {
+ QString associatedProperties;
foreach (PropertyNode* pn, functionNode->associatedProperties()) {
- writer.writeAttribute("associated-property", pn->name());
+ if (!associatedProperties.isEmpty())
+ associatedProperties += QLatin1String(", ");
+ associatedProperties += pn->name();
}
+ writer.writeAttribute("associated-property", associatedProperties);
}
writer.writeAttribute("type", functionNode->returnType());
if (!brief.isEmpty())