aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-05-28 11:09:01 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-09-18 22:34:21 +0200
commit27156f4d0c0df92a0c71c034b532c4eb72dc2f19 (patch)
tree46847b88518521812587c1af7b410ac0d25f5ce7 /sources/pyside6
parent07dad0d2405893e12a956b6abe14943cf99f241f (diff)
Bump minimum Python version to 3.10
[ChangeLog][PySide6] The minimum supported Python version has been raised to 3.10. Task-number: PYSIDE-2786 Change-Id: Ie93fab6945b4332eb215e9d9079da14f7ce5c78e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6')
-rw-r--r--sources/pyside6/libpyside/class_property.cpp2
-rw-r--r--sources/pyside6/libpyside/class_property.h9
-rw-r--r--sources/pyside6/plugins/designer/CMakeLists.txt2
3 files changed, 1 insertions, 12 deletions
diff --git a/sources/pyside6/libpyside/class_property.cpp b/sources/pyside6/libpyside/class_property.cpp
index 2e1001be2..4f064febc 100644
--- a/sources/pyside6/libpyside/class_property.cpp
+++ b/sources/pyside6/libpyside/class_property.cpp
@@ -106,8 +106,6 @@ static PyTypeObject *createPyClassPropertyType()
PyClassProperty_slots,
};
- if (_PepRuntimeVersion() >= 0x030A00)
- PyClassProperty_spec.basicsize = sizeof(propertyobject310);
return SbkType_FromSpecWithMeta(&PyClassProperty_spec, PyClassPropertyType_TypeF());
}
diff --git a/sources/pyside6/libpyside/class_property.h b/sources/pyside6/libpyside/class_property.h
index f2ed29f1f..78f387fd4 100644
--- a/sources/pyside6/libpyside/class_property.h
+++ b/sources/pyside6/libpyside/class_property.h
@@ -15,15 +15,6 @@ struct propertyobject {
PyObject *prop_set;
PyObject *prop_del;
PyObject *prop_doc;
- int getter_doc;
-};
-
-struct propertyobject310 {
- PyObject_HEAD
- PyObject *prop_get;
- PyObject *prop_set;
- PyObject *prop_del;
- PyObject *prop_doc;
// Note: This is a problem with Limited API: We have no direct access.
// You need to pick it from runtime info.
PyObject *prop_name;
diff --git a/sources/pyside6/plugins/designer/CMakeLists.txt b/sources/pyside6/plugins/designer/CMakeLists.txt
index f886c7f36..2a9e796d5 100644
--- a/sources/pyside6/plugins/designer/CMakeLists.txt
+++ b/sources/pyside6/plugins/designer/CMakeLists.txt
@@ -26,7 +26,7 @@ target_compile_definitions(PySidePlugin PRIVATE -DQT_NO_KEYWORDS=1)
# See ShibokenHelpers.cmake::shiboken_check_if_limited_api() which is called always
# with default FORCE_LIMITED_API set to TRUE for building libshiboken
if(FORCE_LIMITED_API OR WIN32)
- target_compile_definitions(PySidePlugin PRIVATE "-DPy_LIMITED_API=0x03090000")
+ target_compile_definitions(PySidePlugin PRIVATE "-DPy_LIMITED_API=0x030A0000")
endif()
if(CMAKE_BUILD_TYPE STREQUAL "Debug")