aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-01-02 15:52:42 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-01-05 20:36:16 +0100
commitd5b63f884fce402adb4065cd5f1ab4186d67ce18 (patch)
tree039ac0e462d021872a7f0eccedfc01bf3feb3553 /sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
parent19cf526aaa2f1652e07bfcd61b652fa217529893 (diff)
Documentation: Fix doc modifications for added constructors
Doc modifications for added constructors were not generated at all. Extract a helper function writeFunctionDocumentation() for this and use that from writeFunction() and writeConstructors(). This requires making some methods const. Task-number: PYSIDE-1106 Pick-to: 6.6 Change-Id: I5c13891d51a4a3011c30cfccc5b5a3ea925e6d9d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/QtCore/typesystem_core_common.xml')
-rw-r--r--sources/pyside6/PySide6/QtCore/typesystem_core_common.xml23
1 files changed, 10 insertions, 13 deletions
diff --git a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
index 37f8ca0f1..e7c85fc55 100644
--- a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
+++ b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
@@ -2568,20 +2568,17 @@
<include file-name="pysidecleanup.h" location="global"/>
<include file-name="pysideqapp.h" location="global"/>
</extra-includes>
- <!-- constructor documentation -->
- <inject-documentation format="target" mode="append">
-.. class:: QCoreApplication(args)
-
- Constructs a Qt kernel application. Kernel applications are applications
- without a graphical user interface. These type of applications are used
- at the console or as server processes.
-
- The *args* argument is processed by the application, and made available
- in a more convenient form by the :meth:`~QCoreApplication.arguments()`
- method.
- </inject-documentation>
- <add-function signature="QCoreApplication(QStringList)">
+ <add-function signature="QCoreApplication(QStringList@args@)">
<inject-code file="../glue/qtcore.cpp" snippet="qcoreapplication-1"/>
+ <inject-documentation format="target" mode="append">
+ Constructs a Qt kernel application. Kernel applications are applications
+ without a graphical user interface. These type of applications are used
+ at the console or as server processes.
+
+ The *args* argument is processed by the application, and made available
+ in a more convenient form by the :meth:`~PySide6.QtCore.QCoreApplication.arguments()`
+ method.
+ </inject-documentation>
</add-function>
<add-function signature="QCoreApplication()">
<inject-code file="../glue/qtcore.cpp" snippet="qcoreapplication-2"/>