Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-05-24 13:53:24 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-05-24 18:05:40 +0200
commitb48d101a53a486a968dd9eff4f1a40a3be528816 (patch)
tree82ce2519a24212a190b0338093e7265ae584bc65 /sources/pyside6/plugins
parente4a9790b57d74352c1bc44cf1bda60b40007c95f (diff)
Qt Designer plugin: Fix a build issue observed in 6.5 with Python 3.10
Add QT_NO_KEYWORDS to avoid clashes with variables named slots in CPython headers. Pick-to: 6.7 6.5 6.2 Change-Id: I64a63d816b24f8bd5b3b58375fab26ddc2f6c76a Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Diffstat (limited to 'sources/pyside6/plugins')
-rw-r--r--sources/pyside6/plugins/designer/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside6/plugins/designer/CMakeLists.txt b/sources/pyside6/plugins/designer/CMakeLists.txt
index c86d328cf..717652314 100644
--- a/sources/pyside6/plugins/designer/CMakeLists.txt
+++ b/sources/pyside6/plugins/designer/CMakeLists.txt
@@ -19,6 +19,9 @@ target_sources(PySidePlugin PRIVATE
)
# See libshiboken/CMakeLists.txt
+
+target_compile_definitions(PySidePlugin PRIVATE -DQT_NO_KEYWORDS=1)
+
if(PYTHON_LIMITED_API)
target_compile_definitions(PySidePlugin PRIVATE "-DPy_LIMITED_API=0x03050000")
endif()