diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-02-21 15:41:07 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-03-03 10:46:36 +0100 |
| commit | 934e4db8ea95843f1585c81b28613c97eca7e2ce (patch) | |
| tree | 3168199e229490336fff1e30319e60630cc54623 /sources/pyside6/PySide6 | |
| parent | 2c3c5c0db5f1dbaafd23befc07633382b86e890d (diff) | |
shiboken6: Add a way of removing redundant overloads that differ in one parameter
When retrieving the function groups, check if there overloads that
differ in one parameter and remove them based on rules specified in
the type system. For example, when QByteArray::number(qint64) and
QByteArray::number(int) exist, it does not make sense to generate an
overload for int with parameter checking.
[ChangeLog][shiboken6] It is now possible to specify rules
to remove redundant overloads that differ in one parameter.
Task-number: PYSIDE-2701
Change-Id: I8e1ccbccfe7b5ad76486dc197e8d9c36f1809fbe
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6')
| -rw-r--r-- | sources/pyside6/PySide6/QtCore/typesystem_core_common.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml index 0e5d8a1a1..ed981f8f7 100644 --- a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml +++ b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml @@ -21,6 +21,16 @@ <include file-name="qtcorehelper.h" location="local"/> </extra-includes> + <overload-removal type="QString" replaces="QStringView"/> + <overload-removal type="double" replaces="float"/> + <overload-removal type="unsigned int" replaces="unsigned short"/> <!-- Order is important here --> + <overload-removal type="unsigned long" replaces="unsigned short"/> + <overload-removal type="unsigned" replaces="unsigned short"/> + <overload-removal type="unsigned long long" replaces="unsigned;unsigned int;unsigned long"/> + <overload-removal type="int" replaces="short;std::chrono::milliseconds"/> + <overload-removal type="long" replaces="short"/> + <overload-removal type="long long" replaces="long;int"/> + <function signature="qFastCos(qreal)" since="4.6"/> <function signature="qFastSin(qreal)" since="4.6"/> <function signature="qFuzzyCompare(double,double)"/> |
