summaryrefslogtreecommitdiff
path: root/src/qdoc/cppcodeparser.cpp
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@qt.io>2020-01-22 14:45:15 +0100
committerTopi Reinio <topi.reinio@qt.io>2020-01-24 11:33:10 +0100
commit4f8bb92f9654efd6cc5dc7c6b08979fe3106b3ea (patch)
tree8025942dea9fdd7609cc5621acf83c9eb91cced2 /src/qdoc/cppcodeparser.cpp
parentb693122a4e08e5745d1b288ef7e1525b085c1ebd (diff)
downloadqttools-4f8bb92f9654efd6cc5dc7c6b08979fe3106b3ea.tar.gz
qdoc: Sort the members of shared comment node collective
Nodes sharing a comment will be listed together as a group, so sort them alphabetically. Fixes: QTBUG-81265 Change-Id: Ia8dcba92d74116bf6757bfc9aaded1c65d7271fd Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
-rw-r--r--src/qdoc/cppcodeparser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp
index 6a5087583..c60957793 100644
--- a/src/qdoc/cppcodeparser.cpp
+++ b/src/qdoc/cppcodeparser.cpp
@@ -455,6 +455,7 @@ void CppCodeParser::processQmlProperties(const Doc &doc, NodeList &nodes, DocLis
docs.append(doc);
for (const auto n : sharedNodes)
scn->append(n);
+ scn->sort();
}
}
@@ -947,6 +948,8 @@ void CppCodeParser::processTopicArgs(const Doc &doc, const QString &topic, NodeL
}
}
}
+ for (auto *scn : sharedCommentNodes)
+ scn->sort();
}
}
}