diff options
author | Topi Reinio <topi.reinio@qt.io> | 2020-01-22 14:45:15 +0100 |
---|---|---|
committer | Topi Reinio <topi.reinio@qt.io> | 2020-01-24 11:33:10 +0100 |
commit | 4f8bb92f9654efd6cc5dc7c6b08979fe3106b3ea (patch) | |
tree | 8025942dea9fdd7609cc5621acf83c9eb91cced2 /src/qdoc/cppcodeparser.cpp | |
parent | b693122a4e08e5745d1b288ef7e1525b085c1ebd (diff) | |
download | qttools-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.cpp | 3 |
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(); } } } |