diff options
-rw-r--r-- | sources/shiboken6/ApiExtractor/classdocumentation.cpp | 11 |
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); |