diff options
Diffstat (limited to 'src/qdoc/cppcodeparser.cpp')
-rw-r--r-- | src/qdoc/cppcodeparser.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qdoc/cppcodeparser.cpp b/src/qdoc/cppcodeparser.cpp index a7db13a94..14e4fa7ba 100644 --- a/src/qdoc/cppcodeparser.cpp +++ b/src/qdoc/cppcodeparser.cpp @@ -1558,6 +1558,13 @@ bool CppCodeParser::hasTooManyTopics(const Doc &doc) const { QSet<QString> topicCommandsUsed = topicCommands() & doc.metaCommandsUsed(); if (topicCommandsUsed.count() > 1) { + bool ok = true; + for (const auto &t : topicCommandsUsed) { + if (!t.startsWith(QLatin1String("qml")) && !t.startsWith(QLatin1String("js"))) + ok = false; + } + if (ok) + return false; QString topicList; for (const auto &t : topicCommandsUsed) topicList += QLatin1String(" \\") + t + QLatin1Char(','); |