aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2024-12-16 16:02:57 +0100
committerFriedemann Kleint <[email protected]>2024-12-17 09:33:59 +0100
commitc0ed95b9f61b481af32d7b4beea1c89d364cad93 (patch)
treef364dca6af0320efbd0a6d9cc02cf8991161a89c
parentcab304e70cce68bbdaa70d7f7b2bf6e95e85e6d2 (diff)
shiboken/Documentation: Remove more C++ -specific sections from the WebXML module descriptions
Complements 9bd0967d9b3f38ea7959fb00aa28a5ee1a1d0932. Task-number: PYSIDE-1106 Pick-to: 6.8 Change-Id: I414d4bf672a61f4e54720ea7ef6f6706a4e09329 Reviewed-by: Shyamnath Premnadh <[email protected]>
-rw-r--r--sources/shiboken6/ApiExtractor/classdocumentation.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/sources/shiboken6/ApiExtractor/classdocumentation.cpp b/sources/shiboken6/ApiExtractor/classdocumentation.cpp
index 941d25f06..54f721315 100644
--- a/sources/shiboken6/ApiExtractor/classdocumentation.cpp
+++ b/sources/shiboken6/ApiExtractor/classdocumentation.cpp
@@ -300,10 +300,13 @@ QString webXmlModuleDescription(const QString &fileName, QString *errorMessage)
QByteArray text = file.readAll();
file.close();
- removeSection("building-with-cmake"_ba, &text);
- removeSection("building-with-qmake"_ba, &text);
- removeSection("reference"_ba, &text);
- removeSection("using-the-module"_ba, &text);
+ static const QByteArrayList cppSectionIds{
+ "api-reference"_ba, "building-with-cmake"_ba, "building-with-qmake"_ba,
+ "c-api"_ba, "c-classes"_ba, "examples"_ba, "qml-api"_ba, "reference"_ba,
+ "reference-and-examples"_ba, "using-the-module"_ba
+ };
+ for (const auto &cppSectionId : cppSectionIds)
+ removeSection(cppSectionId, &text);
QBuffer buffer(&text);
buffer.open(QIODevice::ReadOnly);