diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-01-17 13:15:15 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-01-18 16:33:25 +0100 |
commit | 838ba27346f66efabb1b952e9f61a8eff7c99235 (patch) | |
tree | 71f2a4bd3f741b2cdf3a38af2c4971b1e1ca7a0f | |
parent | ef2223f3d712e5f66c4654f7bce2011869ef958a (diff) |
Fix warnings about QOperatingSystemVersionBase
Since QOperatingSystemVersion has static public fields of type
QOperatingSystemVersionBase, since
qtbase/3446313c7a5cd6005089866a7b20c9f28e132a0a, it should be handled
as a value type.
Partially revert d0771feb7d6815ad1f2611c1accaa92e4aad73b5, making
QOperatingSystemVersionBase a value type again, which is now possible
due to the fixed handling of value types with protected constructors.
Fix warning
<frozen importlib._bootstrap>:219: RuntimeWarning: CopyCppToPython(): SbkConverter::copyToPython is null for "PySide6.QtCore.QOperatingSystemVersionBase".
Change-Id: I21970af1a023fc34108435bf8981ba3df3b80139
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
-rw-r--r-- | sources/pyside6/PySide6/QtCore/typesystem_core_common.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml index 43f36952c..12039eba2 100644 --- a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml +++ b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml @@ -2262,9 +2262,9 @@ <inject-code file="../glue/qtcore.cpp" snippet="qcryptographichash-adddata"/> </modify-function> </object-type> - <object-type name="QOperatingSystemVersionBase" since="6.3"> + <value-type name="QOperatingSystemVersionBase" since="6.3"> <enum-type name="OSType"/> - </object-type> + </value-type> <value-type name="QOperatingSystemVersion" since="5.9"> <enum-type name="OSType"/> <modify-function signature="QOperatingSystemVersion(const QOperatingSystemVersionBase&)" remove="all"/> |