From d859d37ad104ab7e6264c634aff11696196e1bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Fri, 2 Sep 2022 08:09:57 +0200 Subject: qdoc: Do not add 'doc' as example tag to manifest files Some demos are in the qtdoc module; avoid having 'doc' as tag there. Change-Id: I81f27f06f424ed887b53aea8c9fe79b1757a6995 Reviewed-by: Luca Di Sera (cherry picked from commit cb4dabb6b5532302359721237fa64df681082c64) Reviewed-by: Qt Cherry-pick Bot --- src/qdoc/manifestwriter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qdoc/manifestwriter.cpp b/src/qdoc/manifestwriter.cpp index ab1ddaaae..f4d3a77c7 100644 --- a/src/qdoc/manifestwriter.cpp +++ b/src/qdoc/manifestwriter.cpp @@ -288,6 +288,9 @@ void ManifestWriter::addModuleNameAsTag() QString moduleName = m_project; if (moduleName.startsWith("Qt")) moduleName = moduleName.mid(2); + // Some examples are in QtDoc module, but 'doc' as tag makes little sense + if (moduleName == "Doc") + return; m_tags << moduleName.toLower(); } -- cgit v1.2.1