aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/PySide2')
-rw-r--r--sources/pyside2/PySide2/CMakeLists.txt108
-rw-r--r--sources/pyside2/PySide2/Qt3DAnimation/CMakeLists.txt57
-rw-r--r--sources/pyside2/PySide2/Qt3DAnimation/typesystem_3danimation.xml83
-rw-r--r--sources/pyside2/PySide2/Qt3DCore/CMakeLists.txt69
-rw-r--r--sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml114
-rw-r--r--sources/pyside2/PySide2/Qt3DExtras/CMakeLists.txt77
-rw-r--r--sources/pyside2/PySide2/Qt3DExtras/typesystem_3dextras.xml86
-rw-r--r--sources/pyside2/PySide2/Qt3DInput/CMakeLists.txt51
-rw-r--r--sources/pyside2/PySide2/Qt3DInput/typesystem_3dinput.xml90
-rw-r--r--sources/pyside2/PySide2/Qt3DLogic/CMakeLists.txt32
-rw-r--r--sources/pyside2/PySide2/Qt3DLogic/typesystem_3dlogic.xml49
-rw-r--r--sources/pyside2/PySide2/Qt3DRender/CMakeLists.txt173
-rw-r--r--sources/pyside2/PySide2/Qt3DRender/typesystem_3drender.xml275
-rw-r--r--sources/pyside2/PySide2/QtAxContainer/CMakeLists.txt41
-rw-r--r--sources/pyside2/PySide2/QtAxContainer/QtAxContainer_global.post.h.in5
-rw-r--r--sources/pyside2/PySide2/QtAxContainer/typesystem_axcontainer.xml63
-rw-r--r--sources/pyside2/PySide2/QtCharts/CMakeLists.txt85
-rw-r--r--sources/pyside2/PySide2/QtCharts/typesystem_charts.xml270
-rw-r--r--sources/pyside2/PySide2/QtConcurrent/CMakeLists.txt27
-rw-r--r--sources/pyside2/PySide2/QtConcurrent/curr_errors.txt21
-rw-r--r--sources/pyside2/PySide2/QtConcurrent/typesystem_concurrent.xml57
-rw-r--r--sources/pyside2/PySide2/QtCore/CMakeLists.txt225
-rw-r--r--sources/pyside2/PySide2/QtCore/glue/qeasingcurve_glue.cpp158
-rw-r--r--sources/pyside2/PySide2/QtCore/glue/qeasingcurve_glue.h66
-rw-r--r--sources/pyside2/PySide2/QtCore/typesystem_core.xml.in45
-rw-r--r--sources/pyside2/PySide2/QtCore/typesystem_core_common.xml3332
-rw-r--r--sources/pyside2/PySide2/QtCore/typesystem_core_mac.xml57
-rw-r--r--sources/pyside2/PySide2/QtCore/typesystem_core_win.xml90
-rw-r--r--sources/pyside2/PySide2/QtCore/typesystem_core_x11.xml61
-rw-r--r--sources/pyside2/PySide2/QtDataVisualization/CMakeLists.txt65
-rw-r--r--sources/pyside2/PySide2/QtDataVisualization/typesystem_datavisualization.xml422
-rw-r--r--sources/pyside2/PySide2/QtGui/CMakeLists.txt264
-rw-r--r--sources/pyside2/PySide2/QtGui/QtGui_global.post.h.in1
-rw-r--r--sources/pyside2/PySide2/QtGui/typesystem_gui.xml.in46
-rw-r--r--sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml3051
-rw-r--r--sources/pyside2/PySide2/QtGui/typesystem_gui_mac.xml50
-rw-r--r--sources/pyside2/PySide2/QtGui/typesystem_gui_win.xml42
-rw-r--r--sources/pyside2/PySide2/QtGui/typesystem_gui_x11.xml42
-rw-r--r--sources/pyside2/PySide2/QtHelp/CMakeLists.txt60
-rw-r--r--sources/pyside2/PySide2/QtHelp/typesystem_help.xml71
-rw-r--r--sources/pyside2/PySide2/QtLocation/CMakeLists.txt75
-rw-r--r--sources/pyside2/PySide2/QtLocation/typesystem_location.xml116
-rw-r--r--sources/pyside2/PySide2/QtMacExtras/CMakeLists.txt33
-rw-r--r--sources/pyside2/PySide2/QtMacExtras/typesystem_macextras.xml55
-rw-r--r--sources/pyside2/PySide2/QtMultimedia/CMakeLists.txt130
-rw-r--r--sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia.xml45
-rw-r--r--sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml372
-rw-r--r--sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_forward_declarations.xml45
-rw-r--r--sources/pyside2/PySide2/QtMultimediaWidgets/CMakeLists.txt42
-rw-r--r--sources/pyside2/PySide2/QtMultimediaWidgets/typesystem_multimediawidgets.xml52
-rw-r--r--sources/pyside2/PySide2/QtNetwork/CMakeLists.txt121
-rw-r--r--sources/pyside2/PySide2/QtNetwork/typesystem_network.xml324
-rw-r--r--sources/pyside2/PySide2/QtOpenGL/CMakeLists.txt42
-rw-r--r--sources/pyside2/PySide2/QtOpenGL/typesystem_opengl.xml716
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/CMakeLists.txt73
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/QtOpenGLFunctions_global.post.h.in61
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions.xml409
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_0.xml51
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_0_compat.xml103
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_1.xml44
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_1_compat.xml44
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_2_compat.xml46
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_3_compat.xml46
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_4.xml47
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_4_compat.xml49
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications2_0.xml49
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications2_0_compat.xml1
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications2_1.xml43
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications3_0.xml46
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications3_3.xml46
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications3_3a.xml57
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_0.xml46
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_1.xml58
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_3.xml43
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_4.xml56
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_4_core.xml43
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_5.xml57
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_5_core.xml41
-rw-r--r--sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications_va.xml43
-rw-r--r--sources/pyside2/PySide2/QtPositioning/CMakeLists.txt50
-rw-r--r--sources/pyside2/PySide2/QtPositioning/typesystem_positioning.xml80
-rw-r--r--sources/pyside2/PySide2/QtPrintSupport/CMakeLists.txt43
-rw-r--r--sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport.xml.in45
-rw-r--r--sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport_common.xml124
-rw-r--r--sources/pyside2/PySide2/QtQml/CMakeLists.txt63
-rw-r--r--sources/pyside2/PySide2/QtQml/pysideqmlregistertype.cpp506
-rw-r--r--sources/pyside2/PySide2/QtQml/pysideqmlregistertype.h85
-rw-r--r--sources/pyside2/PySide2/QtQml/typesystem_qml.xml216
-rw-r--r--sources/pyside2/PySide2/QtQuick/CMakeLists.txt90
-rw-r--r--sources/pyside2/PySide2/QtQuick/pysidequickregistertype.cpp253
-rw-r--r--sources/pyside2/PySide2/QtQuick/pysidequickregistertype.h52
-rw-r--r--sources/pyside2/PySide2/QtQuick/typesystem_quick.xml175
-rw-r--r--sources/pyside2/PySide2/QtQuickControls2/CMakeLists.txt41
-rw-r--r--sources/pyside2/PySide2/QtQuickControls2/typesystem_quickcontrols2.xml47
-rw-r--r--sources/pyside2/PySide2/QtQuickWidgets/CMakeLists.txt43
-rw-r--r--sources/pyside2/PySide2/QtQuickWidgets/typesystem_quickwidgets.xml54
-rw-r--r--sources/pyside2/PySide2/QtRemoteObjects/CMakeLists.txt44
-rw-r--r--sources/pyside2/PySide2/QtRemoteObjects/typesystem_remoteobjects.xml74
-rw-r--r--sources/pyside2/PySide2/QtScript/CMakeLists.txt42
-rw-r--r--sources/pyside2/PySide2/QtScript/qscript_value_iterator_glue.cpp3
-rw-r--r--sources/pyside2/PySide2/QtScript/typesystem_script.xml105
-rw-r--r--sources/pyside2/PySide2/QtScriptTools/CMakeLists.txt37
-rw-r--r--sources/pyside2/PySide2/QtScriptTools/typesystem_scripttools.xml55
-rw-r--r--sources/pyside2/PySide2/QtScxml/CMakeLists.txt55
-rw-r--r--sources/pyside2/PySide2/QtScxml/typesystem_scxml.xml86
-rw-r--r--sources/pyside2/PySide2/QtSensors/CMakeLists.txt100
-rw-r--r--sources/pyside2/PySide2/QtSensors/typesystem_sensors.xml127
-rw-r--r--sources/pyside2/PySide2/QtSerialPort/CMakeLists.txt31
-rw-r--r--sources/pyside2/PySide2/QtSerialPort/typesystem_serialport.xml56
-rw-r--r--sources/pyside2/PySide2/QtSql/CMakeLists.txt49
-rw-r--r--sources/pyside2/PySide2/QtSql/QtSql_global.pre.h.in5
-rw-r--r--sources/pyside2/PySide2/QtSql/typesystem_sql.xml194
-rw-r--r--sources/pyside2/PySide2/QtSvg/CMakeLists.txt36
-rw-r--r--sources/pyside2/PySide2/QtSvg/typesystem_svg.xml74
-rw-r--r--sources/pyside2/PySide2/QtTest/CMakeLists.txt40
-rw-r--r--sources/pyside2/PySide2/QtTest/QtTest_global.post.h.in1
-rw-r--r--sources/pyside2/PySide2/QtTest/QtTest_global.pre.h.in5
-rw-r--r--sources/pyside2/PySide2/QtTest/typesystem_test.xml168
-rw-r--r--sources/pyside2/PySide2/QtTextToSpeech/CMakeLists.txt30
-rw-r--r--sources/pyside2/PySide2/QtTextToSpeech/typesystem_texttospeech.xml53
-rw-r--r--sources/pyside2/PySide2/QtUiTools/CMakeLists.txt42
-rw-r--r--sources/pyside2/PySide2/QtUiTools/glue/plugins.h65
-rw-r--r--sources/pyside2/PySide2/QtUiTools/typesystem_uitools.xml178
-rw-r--r--sources/pyside2/PySide2/QtWebChannel/CMakeLists.txt28
-rw-r--r--sources/pyside2/PySide2/QtWebChannel/typesystem_webchannel.xml55
-rw-r--r--sources/pyside2/PySide2/QtWebEngine/CMakeLists.txt27
-rw-r--r--sources/pyside2/PySide2/QtWebEngine/typesystem_webengine.xml45
-rw-r--r--sources/pyside2/PySide2/QtWebEngineCore/CMakeLists.txt38
-rw-r--r--sources/pyside2/PySide2/QtWebEngineCore/typesystem_webenginecore.xml74
-rw-r--r--sources/pyside2/PySide2/QtWebEngineWidgets/CMakeLists.txt55
-rw-r--r--sources/pyside2/PySide2/QtWebEngineWidgets/typesystem_webenginewidgets.xml129
-rw-r--r--sources/pyside2/PySide2/QtWebKit/CMakeLists.txt34
-rw-r--r--sources/pyside2/PySide2/QtWebKit/typesystem_webkit.xml49
-rw-r--r--sources/pyside2/PySide2/QtWebKitWidgets/CMakeLists.txt65
-rw-r--r--sources/pyside2/PySide2/QtWebKitWidgets/typesystem_webkitwidgets.xml211
-rw-r--r--sources/pyside2/PySide2/QtWebSockets/CMakeLists.txt36
-rw-r--r--sources/pyside2/PySide2/QtWebSockets/typesystem_websockets.xml78
-rw-r--r--sources/pyside2/PySide2/QtWidgets/CMakeLists.txt236
-rw-r--r--sources/pyside2/PySide2/QtWidgets/typesystem_widgets.xml.in46
-rw-r--r--sources/pyside2/PySide2/QtWidgets/typesystem_widgets_common.xml3471
-rw-r--r--sources/pyside2/PySide2/QtWidgets/typesystem_widgets_mac.xml55
-rw-r--r--sources/pyside2/PySide2/QtWidgets/typesystem_widgets_win.xml42
-rw-r--r--sources/pyside2/PySide2/QtWidgets/typesystem_widgets_x11.xml42
-rw-r--r--sources/pyside2/PySide2/QtWinExtras/CMakeLists.txt42
-rw-r--r--sources/pyside2/PySide2/QtWinExtras/typesystem_winextras.xml65
-rw-r--r--sources/pyside2/PySide2/QtX11Extras/CMakeLists.txt33
-rw-r--r--sources/pyside2/PySide2/QtX11Extras/QtX11Extras_global.post.h.in1
-rw-r--r--sources/pyside2/PySide2/QtX11Extras/typesystem_x11extras.xml49
-rw-r--r--sources/pyside2/PySide2/QtXml/CMakeLists.txt55
-rw-r--r--sources/pyside2/PySide2/QtXml/typesystem_xml.xml388
-rw-r--r--sources/pyside2/PySide2/QtXmlPatterns/CMakeLists.txt41
-rw-r--r--sources/pyside2/PySide2/QtXmlPatterns/typesystem_xmlpatterns.xml122
-rw-r--r--sources/pyside2/PySide2/__init__.py.in88
-rw-r--r--sources/pyside2/PySide2/_config.py.in16
-rw-r--r--sources/pyside2/PySide2/global.h.in57
-rw-r--r--sources/pyside2/PySide2/glue/qtcharts.cpp42
-rw-r--r--sources/pyside2/PySide2/glue/qtcore.cpp1970
-rw-r--r--sources/pyside2/PySide2/glue/qtdatavisualization.cpp42
-rw-r--r--sources/pyside2/PySide2/glue/qtgui.cpp547
-rw-r--r--sources/pyside2/PySide2/glue/qtmultimedia.cpp53
-rw-r--r--sources/pyside2/PySide2/glue/qtnetwork.cpp80
-rw-r--r--sources/pyside2/PySide2/glue/qtopengl.cpp74
-rw-r--r--sources/pyside2/PySide2/glue/qtprintsupport.cpp43
-rw-r--r--sources/pyside2/PySide2/glue/qtqml.cpp52
-rw-r--r--sources/pyside2/PySide2/glue/qtquick.cpp42
-rw-r--r--sources/pyside2/PySide2/glue/qtscript.cpp74
-rw-r--r--sources/pyside2/PySide2/glue/qtuitools.cpp249
-rw-r--r--sources/pyside2/PySide2/glue/qtwebenginewidgets.cpp157
-rw-r--r--sources/pyside2/PySide2/glue/qtwebkitwidgets.cpp92
-rw-r--r--sources/pyside2/PySide2/glue/qtwidgets.cpp663
-rw-r--r--sources/pyside2/PySide2/glue/qtxml.cpp63
-rw-r--r--sources/pyside2/PySide2/glue/qtxmlpatterns.cpp43
-rw-r--r--sources/pyside2/PySide2/licensecomment.txt38
-rw-r--r--sources/pyside2/PySide2/py.typed.in1
-rw-r--r--sources/pyside2/PySide2/pysideqtesttouch.h227
-rw-r--r--sources/pyside2/PySide2/pysidewtypes.h66
-rw-r--r--sources/pyside2/PySide2/qpytextobject.cpp50
-rw-r--r--sources/pyside2/PySide2/qpytextobject.h64
-rw-r--r--sources/pyside2/PySide2/qt.conf.in2
-rw-r--r--sources/pyside2/PySide2/support/__init__.py42
-rw-r--r--sources/pyside2/PySide2/support/deprecated.py80
-rw-r--r--sources/pyside2/PySide2/support/generate_pyi.py327
-rw-r--r--sources/pyside2/PySide2/templates/core_common.xml393
-rw-r--r--sources/pyside2/PySide2/templates/datavisualization_common.xml76
-rw-r--r--sources/pyside2/PySide2/templates/gui_common.xml298
-rw-r--r--sources/pyside2/PySide2/templates/opengl_common.xml61
-rw-r--r--sources/pyside2/PySide2/templates/openglfunctions_common.xml48
-rw-r--r--sources/pyside2/PySide2/templates/webkitwidgets_common.xml73
-rw-r--r--sources/pyside2/PySide2/templates/widgets_common.xml91
-rw-r--r--sources/pyside2/PySide2/templates/xml_common.xml58
190 files changed, 0 insertions, 29527 deletions
diff --git a/sources/pyside2/PySide2/CMakeLists.txt b/sources/pyside2/PySide2/CMakeLists.txt
deleted file mode 100644
index 120bc8e52..000000000
--- a/sources/pyside2/PySide2/CMakeLists.txt
+++ /dev/null
@@ -1,108 +0,0 @@
-project(pyside2)
-
-# Configure include based on platform
-configure_file("${CMAKE_CURRENT_SOURCE_DIR}/global.h.in"
- "${CMAKE_CURRENT_BINARY_DIR}/pyside2_global.h" @ONLY)
-
-configure_file("${CMAKE_CURRENT_SOURCE_DIR}/__init__.py.in"
- "${CMAKE_CURRENT_BINARY_DIR}/__init__.py" @ONLY)
-configure_file("${CMAKE_CURRENT_SOURCE_DIR}/_config.py.in"
- "${CMAKE_CURRENT_BINARY_DIR}/_config.py" @ONLY)
-# typing support for mypy
-configure_file("${CMAKE_CURRENT_SOURCE_DIR}/py.typed.in"
- "${CMAKE_CURRENT_BINARY_DIR}/py.typed" @ONLY)
-
-# Use absolute path instead of relative path, to avoid ninja build errors due to
-# duplicate file dependency inconsistency.
-set(pyside_version_relative_path "${CMAKE_CURRENT_SOURCE_DIR}/../pyside_version.py")
-get_filename_component(pyside_version_path ${pyside_version_relative_path} ABSOLUTE)
-configure_file("${pyside_version_path}"
- "${CMAKE_CURRENT_BINARY_DIR}/_git_pyside_version.py" @ONLY)
-
-# qt.conf needs to be placed next to QtWebEngineProcess so that the executable uses the correct
-# Prefix location leading to an existing icu data file. It is needed on Windows, Linux, and macOS
-# non-framework build. In framework build, instead of using qt.conf, Bundle querying is used.
-if (WIN32 OR (UNIX AND NOT APPLE) OR (APPLE AND NOT QtCore_is_framework))
-
- if (WIN32)
- # On Windows, the QtWebEngineProcess is directly located in the Prefix, due to not using
- # a "Qt" subfolder like on the other platforms.
- set(QT_CONF_PREFIX ".")
- else()
- # On Linux and non-framework macOS, the QtWebEngineProcess is in ./libexec, so prefix is one
- # level higher.
- set(QT_CONF_PREFIX "..")
- endif()
-
- configure_file("${CMAKE_CURRENT_SOURCE_DIR}/qt.conf.in"
- "${CMAKE_CURRENT_BINARY_DIR}/qt.conf" @ONLY)
-endif()
-
-configure_file("${CMAKE_CURRENT_SOURCE_DIR}/support/__init__.py"
- "${CMAKE_CURRENT_BINARY_DIR}/support/__init__.py" COPYONLY)
-configure_file("${CMAKE_CURRENT_SOURCE_DIR}/support/generate_pyi.py"
- "${CMAKE_CURRENT_BINARY_DIR}/support/generate_pyi.py" COPYONLY)
-configure_file("${CMAKE_CURRENT_SOURCE_DIR}/support/deprecated.py"
- "${CMAKE_CURRENT_BINARY_DIR}/support/deprecated.py" COPYONLY)
-
-# now compile all modules.
-file(READ "${CMAKE_CURRENT_BINARY_DIR}/pyside2_global.h" pyside2_global_contents)
-
-foreach(shortname IN LISTS all_module_shortnames)
- set(name "Qt${QT_MAJOR_VERSION}${shortname}")
- set(_qt_module_name "${name}")
- if ("${shortname}" STREQUAL "OpenGLFunctions")
- set(_qt_module_name "Qt${QT_MAJOR_VERSION}Gui")
- endif()
- HAS_QT_MODULE(${_qt_module_name}_FOUND Qt${shortname})
-
- # Create a module header consisting of pyside2_global.h and the module
- # include. Note: The contents of pyside2_global.h must be copied instead of
- # just #including it since shiboken will otherwise generate an
- # #include <pyside2_global.h> for the the type entries originating from it
- # (cf AbstractMetaBuilderPrivate::setInclude()).
- set(module_header "${CMAKE_CURRENT_BINARY_DIR}/Qt${shortname}_global.h")
- set(module_header_content "")
- set(pre_header "${CMAKE_CURRENT_BINARY_DIR}/Qt${shortname}/Qt${shortname}_global.pre.h")
- if(EXISTS "${pre_header}")
- file(READ "${pre_header}" pre_header_content)
- set(module_header_content "${pre_header_content}")
- endif()
- set(module_header_content "${module_header_content}\n${pyside2_global_contents}")
- # AxContainer/AxServer from Active Qt do not have module headers
- if(NOT "${shortname}" STREQUAL "AxContainer" AND NOT "${shortname}" STREQUAL "OpenGLFunctions")
- set(module_header_content "${module_header_content}\n#include <Qt${shortname}/Qt${shortname}>")
- endif()
- set(post_header "${CMAKE_CURRENT_BINARY_DIR}/Qt${shortname}/Qt${shortname}_global.post.h")
- if(EXISTS "${post_header}")
- file(READ "${post_header}" post_header_content)
- set(module_header_content "${module_header_content}\n${post_header_content}")
- endif()
- file(WRITE ${module_header} "${module_header_content}")
-endforeach()
-
-# install
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/__init__.py"
- DESTINATION "${PYTHON_SITE_PACKAGES}/${BINDING_NAME}${pyside2_SUFFIX}")
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/_config.py"
- DESTINATION "${PYTHON_SITE_PACKAGES}/${BINDING_NAME}${pyside2_SUFFIX}")
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/_git_pyside_version.py"
- DESTINATION "${PYTHON_SITE_PACKAGES}/${BINDING_NAME}${pyside2_SUFFIX}")
-install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/templates/core_common.xml
- DESTINATION share/PySide2${pyside_SUFFIX}/typesystems)
-install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/templates/gui_common.xml
- DESTINATION share/PySide2${pyside_SUFFIX}/typesystems)
-install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/templates/widgets_common.xml
- DESTINATION share/PySide2${pyside_SUFFIX}/typesystems)
-install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/templates/datavisualization_common.xml
- DESTINATION share/PySide2${pyside_SUFFIX}/typesystems)
-install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/templates/opengl_common.xml
- DESTINATION share/PySide2${pyside_SUFFIX}/typesystems)
-install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/templates/openglfunctions_common.xml
- DESTINATION share/PySide2${pyside_SUFFIX}/typesystems)
-install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/templates/webkitwidgets_common.xml
- DESTINATION share/PySide2${pyside_SUFFIX}/typesystems)
-install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/templates/xml_common.xml
- DESTINATION share/PySide2${pyside_SUFFIX}/typesystems)
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pyside2_global.h
- DESTINATION include/${BINDING_NAME}${pyside2_SUFFIX})
diff --git a/sources/pyside2/PySide2/Qt3DAnimation/CMakeLists.txt b/sources/pyside2/PySide2/Qt3DAnimation/CMakeLists.txt
deleted file mode 100644
index 970c9102c..000000000
--- a/sources/pyside2/PySide2/Qt3DAnimation/CMakeLists.txt
+++ /dev/null
@@ -1,57 +0,0 @@
-project(Qt3DAnimation)
-
-set(Qt3DAnimation_SRC
-${Qt3DAnimation_GEN_DIR}/qt3danimation_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qabstractanimation_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qabstractanimationclip_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qabstractchannelmapping_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qabstractclipanimator_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qabstractclipblendnode_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qadditiveclipblend_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qanimationaspect_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qanimationcallback_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qanimationclip_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qanimationcliploader_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qanimationcontroller_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qanimationgroup_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qblendedclipanimator_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qclipanimator_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qclock_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qkeyframe_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qkeyframeanimation_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qlerpclipblend_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qmorphinganimation_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qmorphtarget_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qskeletonmapping_wrapper.cpp
-${Qt3DAnimation_GEN_DIR}/qt3danimation_qvertexblendanimation_wrapper.cpp
-# module is always needed
-${Qt3DAnimation_GEN_DIR}/qt3danimation_module_wrapper.cpp)
-
-set(Qt3DAnimation_include_dirs
- ${Qt3DAnimation_SOURCE_DIR}
- ${Qt3DAnimation_BINARY_DIR}
- ${pyside2_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIR}
- ${Qt${QT_MAJOR_VERSION}3DCore_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}3DRender_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}3DAnimation_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${Qt3DCore_GEN_DIR}
- ${Qt3DRender_GEN_DIR}
- ${Qt3DAnimation_GEN_DIR})
-
-set(Qt3DAnimation_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}3DAnimation_LIBRARIES})
-
-set(Qt3DAnimation_deps Qt3DRender)
-
-create_pyside_module(NAME Qt3DAnimation
- INCLUDE_DIRS Qt3DAnimation_include_dirs
- LIBRARIES Qt3DAnimation_libraries
- DEPS Qt3DAnimation_deps
- TYPESYSTEM_PATH Qt3DAnimation_SOURCE_DIR
- SOURCES Qt3DAnimation_SRC
- TYPESYSTEM_NAME ${Qt3DAnimation_BINARY_DIR}/typesystem_3danimation.xml)
diff --git a/sources/pyside2/PySide2/Qt3DAnimation/typesystem_3danimation.xml b/sources/pyside2/PySide2/Qt3DAnimation/typesystem_3danimation.xml
deleted file mode 100644
index 7f24234c5..000000000
--- a/sources/pyside2/PySide2/Qt3DAnimation/typesystem_3danimation.xml
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-
-<typesystem package="PySide2.Qt3DAnimation">
- <load-typesystem name="Qt3DRender/typesystem_3drender.xml" generate="no"/>
- <namespace-type name="Qt3DAnimation">
- <object-type name="QAbstractAnimation">
- <enum-type name="AnimationType"/>
- </object-type>
- <object-type name="QAbstractAnimationClip"/>
- <object-type name="QAbstractChannelMapping"/>
- <object-type name="QAbstractClipAnimator">
- <enum-type name="Loops"/>
- </object-type>
- <object-type name="QAbstractClipBlendNode"/>
- <object-type name="QAdditiveClipBlend"/>
- <object-type name="QAnimationAspect"/>
- <object-type name="QAnimationCallback">
- <enum-type name="Flag"/>
- </object-type>
- <object-type name="QAnimationClip"/>
- <object-type name="QAnimationClipLoader">
- <enum-type name="Status"/>
- </object-type>
- <object-type name="QAnimationController"/>
- <object-type name="QAnimationGroup"/>
- <object-type name="QBlendedClipAnimator"/>
- <object-type name="QClipAnimator"/>
- <object-type name="QClock"/>
- <object-type name="QKeyFrame">
- <enum-type name="InterpolationType"/>
- </object-type>
- <object-type name="QKeyframeAnimation">
- <enum-type name="RepeatMode"/>
- </object-type>
- <object-type name="QLerpClipBlend"/>
- <object-type name="QMorphingAnimation">
- <enum-type name="Method"/>
- </object-type>
- <object-type name="QMorphTarget"/>
- <object-type name="QSkeletonMapping"/>
- <object-type name="QVertexBlendAnimation"/>
- </namespace-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/Qt3DCore/CMakeLists.txt b/sources/pyside2/PySide2/Qt3DCore/CMakeLists.txt
deleted file mode 100644
index aa40c6ec8..000000000
--- a/sources/pyside2/PySide2/Qt3DCore/CMakeLists.txt
+++ /dev/null
@@ -1,69 +0,0 @@
-project(Qt3DCore)
-
-set(Qt3DCore_SRC
-${Qt3DCore_GEN_DIR}/qt3dcore_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qabstractaspect_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qaspectengine_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qaspectjob_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qbackendnode_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qcomponent_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qcomponentaddedchange_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qcomponentremovedchange_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qdynamicpropertyupdatedchange_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qentity_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qnode_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qnodecreatedchangebase_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qnodedestroyedchange_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qnodeid_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qnodeidtypepair_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qpropertynodeaddedchange_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qpropertynoderemovedchange_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qpropertyupdatedchange_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qpropertyupdatedchangebase_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qpropertyvalueaddedchange_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qpropertyvalueaddedchangebase_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qpropertyvalueremovedchange_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qpropertyvalueremovedchangebase_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qscenechange_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qstaticpropertyupdatedchangebase_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qstaticpropertyvalueaddedchangebase_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qstaticpropertyvalueremovedchangebase_wrapper.cpp
-${Qt3DCore_GEN_DIR}/qt3dcore_qtransform_wrapper.cpp
-# module is always needed
-${Qt3DCore_GEN_DIR}/qt3dcore_module_wrapper.cpp)
-
-if (Qt${QT_MAJOR_VERSION}3DCore_VERSION VERSION_EQUAL 5.10.0 OR Qt${QT_MAJOR_VERSION}3DCore_VERSION VERSION_GREATER 5.10.0)
- list(APPEND Qt3DCore_SRC
- ${Qt3DCore_GEN_DIR}/qt3dcore_qarmature_wrapper.cpp
- ${Qt3DCore_GEN_DIR}/qt3dcore_qjoint_wrapper.cpp
- ${Qt3DCore_GEN_DIR}/qt3dcore_qabstractskeleton_wrapper.cpp
- ${Qt3DCore_GEN_DIR}/qt3dcore_qnodecommand_wrapper.cpp
- ${Qt3DCore_GEN_DIR}/qt3dcore_qskeleton_wrapper.cpp
- ${Qt3DCore_GEN_DIR}/qt3dcore_qskeletonloader_wrapper.cpp)
-endif()
-
-set(Qt3DCore_include_dirs
- ${Qt3DCore_SOURCE_DIR}
- ${Qt3DCore_BINARY_DIR}
- ${pyside2_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Network_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}3DCore_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtNetwork_GEN_DIR})
-
-set(Qt3DCore_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}3DCore_LIBRARIES})
-
-set(Qt3DCore_deps QtGui QtNetwork)
-
-create_pyside_module(NAME Qt3DCore
- INCLUDE_DIRS Qt3DCore_include_dirs
- LIBRARIES Qt3DCore_libraries
- DEPS Qt3DCore_deps
- TYPESYSTEM_PATH Qt3DCore_SOURCE_DIR
- SOURCES Qt3DCore_SRC
- TYPESYSTEM_NAME ${Qt3DCore_BINARY_DIR}/typesystem_3dcore.xml)
diff --git a/sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml b/sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml
deleted file mode 100644
index 7d64fba55..000000000
--- a/sources/pyside2/PySide2/Qt3DCore/typesystem_3dcore.xml
+++ /dev/null
@@ -1,114 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-
-<typesystem package="PySide2.Qt3DCore">
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
- <namespace-type name="Qt3DCore">
- <enum-type name="ChangeFlag" flags="ChangeFlags"/>
- <object-type name="QAbstractAspect"/>
- <object-type name="QAbstractSkeleton" since="5.10"/>
- <object-type name="QArmature" since="5.10"/>
- <object-type name="QAspectEngine">
- <enum-type name="RunMode" since="5.14"/>
- <modify-function signature="registerAspect(Qt3DCore::QAbstractAspect*)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QAspectJob"/>
- <object-type name="QBackendNode">
- <enum-type name="Mode"/>
- </object-type>
- <!-- TODO: Solve issues related to windows and a unresolved
- external symbol
- <object-type name="QBackendNodeMapper"/>-->
- <object-type name="QComponent"/>
- <object-type name="QComponentAddedChange"/>
- <object-type name="QComponentRemovedChange"/>
- <object-type name="QDynamicPropertyUpdatedChange"/>
- <object-type name="QEntity">
- <modify-function signature="addComponent(Qt3DCore::QComponent*)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QJoint" since="5.10">
- <modify-function signature="addChildJoint(Qt3DCore::QJoint*)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QNode">
- <enum-type name="PropertyTrackingMode"/>
- </object-type>
- <object-type name="QNodeCommand" since="5.10"/>
- <object-type name="QNodeCreatedChangeBase"/>
- <object-type name="QNodeDestroyedChange"/>
- <value-type name="QNodeId"/>
- <value-type name="QNodeIdTypePair"/>
- <object-type name="QPropertyNodeAddedChange"/>
- <object-type name="QPropertyNodeRemovedChange"/>
- <object-type name="QPropertyUpdatedChange"/>
- <object-type name="QPropertyUpdatedChangeBase"/>
- <object-type name="QPropertyValueAddedChange"/>
- <object-type name="QPropertyValueAddedChangeBase"/>
- <object-type name="QPropertyValueRemovedChange"/>
- <object-type name="QPropertyValueRemovedChangeBase"/>
- <object-type name="QSceneChange">
- <enum-type name="DeliveryFlag" flags="DeliveryFlags"/>
- </object-type>
- <object-type name="QSkeleton" since="5.10"/>
- <object-type name="QSkeletonLoader" since="5.10">
- <enum-type name="Status"/>
- </object-type>
- <object-type name="QStaticPropertyUpdatedChangeBase"/>
- <object-type name="QStaticPropertyValueAddedChangeBase"/>
- <object-type name="QStaticPropertyValueRemovedChangeBase"/>
- <object-type name="QTransform">
- <!-- Disambiguate from QtGui/qtransform.h -->
- <include file-name="Qt3DCore/qtransform.h" location="global"/>
- </object-type>
- </namespace-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/Qt3DExtras/CMakeLists.txt b/sources/pyside2/PySide2/Qt3DExtras/CMakeLists.txt
deleted file mode 100644
index 947c90bf3..000000000
--- a/sources/pyside2/PySide2/Qt3DExtras/CMakeLists.txt
+++ /dev/null
@@ -1,77 +0,0 @@
-project(Qt3DExtras)
-
-set(Qt3DExtras_SRC
-${Qt3DExtras_GEN_DIR}/qt3dextras_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qconegeometry_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qconemesh_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qcuboidgeometry_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qcuboidmesh_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qcylindergeometry_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qcylindermesh_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qdiffusemapmaterial_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qdiffusespecularmapmaterial_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qextrudedtextgeometry_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qextrudedtextmesh_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qfirstpersoncameracontroller_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qforwardrenderer_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qgoochmaterial_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qmetalroughmaterial_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qmorphphongmaterial_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qnormaldiffusemapmaterial_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qnormaldiffusespecularmapmaterial_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qorbitcameracontroller_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qpervertexcolormaterial_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qphongmaterial_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qphongalphamaterial_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qplanegeometry_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qplanemesh_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qskyboxentity_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qspheregeometry_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qspheremesh_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qtext2dentity_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qtexturematerial_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qtorusgeometry_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qtorusmesh_wrapper.cpp
-${Qt3DExtras_GEN_DIR}/qt3dextras_qt3dwindow_wrapper.cpp
-# module is always needed
-${Qt3DExtras_GEN_DIR}/qt3dextras_module_wrapper.cpp)
-
-if (Qt${QT_MAJOR_VERSION}3DExtras_VERSION VERSION_EQUAL 5.10.0
- OR Qt${QT_MAJOR_VERSION}3DExtras_VERSION VERSION_GREATER 5.10.0)
- list(APPEND Qt3DExtras_SRC
- ${Qt3DExtras_GEN_DIR}/qt3dextras_qabstractcameracontroller_wrapper.cpp
- ${Qt3DExtras_GEN_DIR}/qt3dextras_qabstractcameracontroller_inputstate_wrapper.cpp
- ${Qt3DExtras_GEN_DIR}/qt3dextras_qabstractspritesheet_wrapper.cpp
- ${Qt3DExtras_GEN_DIR}/qt3dextras_qdiffusespecularmaterial_wrapper.cpp
- ${Qt3DExtras_GEN_DIR}/qt3dextras_qspritegrid_wrapper.cpp
- ${Qt3DExtras_GEN_DIR}/qt3dextras_qspritesheet_wrapper.cpp
- ${Qt3DExtras_GEN_DIR}/qt3dextras_qspritesheetitem_wrapper.cpp)
-endif()
-
-set(Qt3DExtras_include_dirs
- ${Qt3DExtras_SOURCE_DIR}
- ${Qt3DExtras_BINARY_DIR}
- ${pyside2_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}3DCore_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}3DRender_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}3DExtras_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${Qt3DCore_GEN_DIR}
- ${Qt3DRender_GEN_DIR})
-
-set(Qt3DExtras_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}3DExtras_LIBRARIES})
-
-set(Qt3DExtras_deps Qt3DRender)
-
-create_pyside_module(NAME Qt3DExtras
- INCLUDE_DIRS Qt3DExtras_include_dirs
- LIBRARIES Qt3DExtras_libraries
- DEPS Qt3DExtras_deps
- TYPESYSTEM_PATH Qt3DExtras_SOURCE_DIR
- SOURCES Qt3DExtras_SRC
- TYPESYSTEM_NAME ${Qt3DExtras_BINARY_DIR}/typesystem_3dextras.xml)
diff --git a/sources/pyside2/PySide2/Qt3DExtras/typesystem_3dextras.xml b/sources/pyside2/PySide2/Qt3DExtras/typesystem_3dextras.xml
deleted file mode 100644
index 25fe11a59..000000000
--- a/sources/pyside2/PySide2/Qt3DExtras/typesystem_3dextras.xml
+++ /dev/null
@@ -1,86 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-
-<typesystem package="PySide2.Qt3DExtras">
- <load-typesystem name="Qt3DRender/typesystem_3drender.xml" generate="no"/>
- <namespace-type name="Qt3DExtras">
- <object-type name="QAbstractCameraController" since="5.10">
- <value-type name="InputState"/>
- </object-type>
- <object-type name="QAbstractSpriteSheet" since="5.10"/>
- <object-type name="QConeGeometry"/>
- <object-type name="QConeMesh"/>
- <object-type name="QCuboidGeometry"/>
- <object-type name="QCuboidMesh"/>
- <object-type name="QCylinderGeometry"/>
- <object-type name="QCylinderMesh"/>
- <object-type name="QDiffuseMapMaterial"/>
- <object-type name="QDiffuseSpecularMaterial" since="5.10"/>
- <object-type name="QDiffuseSpecularMapMaterial"/>
- <object-type name="QExtrudedTextGeometry"/>
- <object-type name="QExtrudedTextMesh"/>
- <object-type name="QFirstPersonCameraController"/>
- <object-type name="QForwardRenderer"/>
- <object-type name="QGoochMaterial"/>
- <object-type name="QMetalRoughMaterial"/>
- <object-type name="QMorphPhongMaterial"/>
- <object-type name="QNormalDiffuseMapMaterial"/>
- <object-type name="QNormalDiffuseSpecularMapMaterial"/>
- <object-type name="QOrbitCameraController"/>
- <object-type name="QPerVertexColorMaterial"/>
- <object-type name="QPhongMaterial"/>
- <object-type name="QPhongAlphaMaterial"/>
- <object-type name="QPlaneGeometry"/>
- <object-type name="QPlaneMesh"/>
- <object-type name="QSkyboxEntity"/>
- <object-type name="QSphereGeometry"/>
- <object-type name="QSphereMesh"/>
- <object-type name="QSpriteGrid" since="5.10"/>
- <object-type name="QSpriteSheet" since="5.10"/>
- <object-type name="QSpriteSheetItem" since="5.10"/>
- <object-type name="QText2DEntity"/>
- <object-type name="QTextureMaterial"/>
- <object-type name="QTorusGeometry"/>
- <object-type name="QTorusMesh"/>
- <object-type name="Qt3DWindow"/>
- </namespace-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/Qt3DInput/CMakeLists.txt b/sources/pyside2/PySide2/Qt3DInput/CMakeLists.txt
deleted file mode 100644
index 8c87b4332..000000000
--- a/sources/pyside2/PySide2/Qt3DInput/CMakeLists.txt
+++ /dev/null
@@ -1,51 +0,0 @@
-project(Qt3DInput)
-
-set(Qt3DInput_SRC
-${Qt3DInput_GEN_DIR}/qt3dinput_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qabstractactioninput_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qabstractaxisinput_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qabstractphysicaldevice_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qaction_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qactioninput_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qanalogaxisinput_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qaxis_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qaxisaccumulator_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qaxissetting_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qbuttonaxisinput_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qinputaspect_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qinputchord_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qinputsequence_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qinputsettings_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qkeyboardhandler_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qkeyevent_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qlogicaldevice_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qkeyboarddevice_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qmousedevice_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qmouseevent_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qwheelevent_wrapper.cpp
-${Qt3DInput_GEN_DIR}/qt3dinput_qmousehandler_wrapper.cpp
-# module is always needed
-${Qt3DInput_GEN_DIR}/qt3dinput_module_wrapper.cpp)
-
-set(Qt3DInput_include_dirs
- ${Qt3DInput_SOURCE_DIR}
- ${Qt3DInput_BINARY_DIR}
- ${pyside2_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${Qt3DCore_GEN_DIR})
-
-set(Qt3DInput_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}3DInput_LIBRARIES})
-
-set(Qt3DInput_deps Qt3DCore)
-
-create_pyside_module(NAME Qt3DInput
- INCLUDE_DIRS Qt3DInput_include_dirs
- LIBRARIES Qt3DInput_libraries
- DEPS Qt3DInput_deps
- TYPESYSTEM_PATH Qt3DInput_SOURCE_DIR
- SOURCES Qt3DInput_SRC
- TYPESYSTEM_NAME ${Qt3DInput_BINARY_DIR}/typesystem_3dinput.xml)
diff --git a/sources/pyside2/PySide2/Qt3DInput/typesystem_3dinput.xml b/sources/pyside2/PySide2/Qt3DInput/typesystem_3dinput.xml
deleted file mode 100644
index a74c3ab93..000000000
--- a/sources/pyside2/PySide2/Qt3DInput/typesystem_3dinput.xml
+++ /dev/null
@@ -1,90 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-
-<typesystem package="PySide2.Qt3DInput">
- <load-typesystem name="Qt3DCore/typesystem_3dcore.xml" generate="no"/>
- <namespace-type name="Qt3DInput">
- <object-type name="QAbstractActionInput"/>
- <object-type name="QAbstractAxisInput"/>
- <object-type name="QAbstractPhysicalDevice"/>
- <object-type name="QAction"/>
- <object-type name="QActionInput"/>
- <object-type name="QAnalogAxisInput"/>
- <object-type name="QAxis"/>
- <object-type name="QAxisAccumulator">
- <enum-type name="SourceAxisType"/>
- </object-type>
- <object-type name="QAxisSetting"/>
- <object-type name="QButtonAxisInput"/>
- <object-type name="QInputAspect"/>
- <object-type name="QInputChord"/>
- <!-- On windows this raises the following error:
- type 'Qt3DInput::QInputDeviceIntegration' is specified in typesystem, but not defined.
- This could potentially lead to compilation errors.
- <object-type name="QInputDeviceIntegration"/>
- -->
- <object-type name="QInputSequence"/>
- <object-type name="QInputSettings"/>
- <object-type name="QKeyboardDevice"/>
- <object-type name="QKeyboardHandler"/>
- <object-type name="QKeyEvent"/>
- <object-type name="QLogicalDevice"/>
- <object-type name="QMouseDevice">
- <enum-type name="Axis"/>
- </object-type>
- <object-type name="QMouseEvent">
- <enum-type name="Buttons"/>
- <enum-type name="Modifiers"/>
- </object-type>
- <object-type name="QWheelEvent">
- <enum-type name="Buttons"/>
- <enum-type name="Modifiers"/>
- </object-type>
- <object-type name="QMouseHandler"/>
- <!-- On windows this raise the following error:
- qt3dinput_module_wrapper.cpp.obj : error LNK2019:
- unresolved external symbol "void __cdecl init_Qt3DInput_QPhysicalDeviceCreatedChangeBase(struct _object *)"
- (?init_Qt3DInput_QPhysicalDeviceCreatedChangeBase@@YAXPAU_object@@@Z) referenced in function _PyInit_Qt3DInput
- <object-type name="QPhysicalDeviceCreatedChangeBase"/>
- -->
- </namespace-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/Qt3DLogic/CMakeLists.txt b/sources/pyside2/PySide2/Qt3DLogic/CMakeLists.txt
deleted file mode 100644
index 9197c3542..000000000
--- a/sources/pyside2/PySide2/Qt3DLogic/CMakeLists.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-project(Qt3DLogic)
-
-set(Qt3DLogic_SRC
-${Qt3DLogic_GEN_DIR}/qt3dlogic_wrapper.cpp
-${Qt3DLogic_GEN_DIR}/qt3dlogic_qframeaction_wrapper.cpp
-${Qt3DLogic_GEN_DIR}/qt3dlogic_qlogicaspect_wrapper.cpp
-# module is always needed
-${Qt3DLogic_GEN_DIR}/qt3dlogic_module_wrapper.cpp)
-
-set(Qt3DLogic_include_dirs
- ${Qt3DLogic_SOURCE_DIR}
- ${Qt3DLogic_BINARY_DIR}
- ${pyside2_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${Qt3DCore_GEN_DIR})
-
-set(Qt3DLogic_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}3DLogic_LIBRARIES})
-
-set(Qt3DLogic_deps Qt3DCore)
-
-create_pyside_module(NAME Qt3DLogic
- INCLUDE_DIRS Qt3DLogic_include_dirs
- LIBRARIES Qt3DLogic_libraries
- DEPS Qt3DLogic_deps
- TYPESYSTEM_PATH Qt3DLogic_SOURCE_DIR
- SOURCES Qt3DLogic_SRC
- TYPESYSTEM_NAME ${Qt3DLogic_BINARY_DIR}/typesystem_3dlogic.xml)
diff --git a/sources/pyside2/PySide2/Qt3DLogic/typesystem_3dlogic.xml b/sources/pyside2/PySide2/Qt3DLogic/typesystem_3dlogic.xml
deleted file mode 100644
index 1583f9e29..000000000
--- a/sources/pyside2/PySide2/Qt3DLogic/typesystem_3dlogic.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-
-<typesystem package="PySide2.Qt3DLogic">
- <load-typesystem name="Qt3DCore/typesystem_3dcore.xml" generate="no"/>
- <namespace-type name="Qt3DLogic">
- <object-type name="QFrameAction"/>
- <object-type name="QLogicAspect"/>
- </namespace-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/Qt3DRender/CMakeLists.txt b/sources/pyside2/PySide2/Qt3DRender/CMakeLists.txt
deleted file mode 100644
index 32f28e032..000000000
--- a/sources/pyside2/PySide2/Qt3DRender/CMakeLists.txt
+++ /dev/null
@@ -1,173 +0,0 @@
-project(Qt3DRender)
-
-set(Qt3DRender_SRC
-${Qt3DRender_GEN_DIR}/qt3drender_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_propertyreaderinterface_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qabstractfunctor_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qabstractlight_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qabstracttexture_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qabstracttextureimage_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qalphacoverage_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qalphatest_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qattribute_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qblendequation_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qblendequationarguments_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qbuffer_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qbuffercapture_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qbufferdatagenerator_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qcamera_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qcameralens_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qcameraselector_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qclearbuffers_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qclipplane_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qcolormask_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qcomputecommand_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qcullface_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qdepthtest_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qdirectionallight_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qdispatchcompute_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qdithering_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qeffect_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qenvironmentlight_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qfilterkey_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qframegraphnode_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qframegraphnodecreatedchangebase_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qfrontface_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qfrustumculling_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qgeometry_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qgeometryfactory_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qgeometryrenderer_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qgraphicsapifilter_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qlayer_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qlayerfilter_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qlevelofdetail_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qlevelofdetailboundingsphere_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qlevelofdetailswitch_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qmaterial_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qmemorybarrier_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qmesh_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qmultisampleantialiasing_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qnodepthmask_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qnodraw_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qobjectpicker_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qpaintedtextureimage_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qparameter_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qpickevent_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qpicktriangleevent_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qpickingsettings_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qpointlight_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qpointsize_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qpolygonoffset_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qrenderaspect_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qrendercapture_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qrendercapturereply_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qrenderpass_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qrenderpassfilter_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qrendersettings_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qrenderstate_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qrenderstateset_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qrendersurfaceselector_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qrendertarget_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qrendertargetoutput_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qrendertargetselector_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qsceneloader_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qscissortest_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qseamlesscubemap_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qshaderdata_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qshaderprogram_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qsortpolicy_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qspotlight_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qstencilmask_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qstenciloperation_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qstenciloperationarguments_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qstenciltest_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qstenciltestarguments_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtechnique_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtechniquefilter_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtexture1d_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtexture1darray_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtexture2d_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtexture2darray_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtexture2dmultisample_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtexture2dmultisamplearray_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtexture3d_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtexturebuffer_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtexturecubemap_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtexturecubemaparray_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtexturedata_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtexturegenerator_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtextureimage_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtextureimagedata_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtextureimagedatagenerator_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtextureloader_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtexturerectangle_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qtexturewrapmode_wrapper.cpp
-${Qt3DRender_GEN_DIR}/qt3drender_qviewport_wrapper.cpp
-# module is always needed
-${Qt3DRender_GEN_DIR}/qt3drender_module_wrapper.cpp)
-
-if (Qt${QT_MAJOR_VERSION}3DRender_VERSION VERSION_EQUAL 5.10.0
- OR Qt${QT_MAJOR_VERSION}3DRender_VERSION VERSION_GREATER 5.10.0)
- list(APPEND Qt3DRender_SRC
- ${Qt3DRender_GEN_DIR}/qt3drender_qblitframebuffer_wrapper.cpp
- ${Qt3DRender_GEN_DIR}/qt3drender_qlinewidth_wrapper.cpp
- ${Qt3DRender_GEN_DIR}/qt3drender_qpicklineevent_wrapper.cpp
- ${Qt3DRender_GEN_DIR}/qt3drender_qpickpointevent_wrapper.cpp
- ${Qt3DRender_GEN_DIR}/qt3drender_qproximityfilter_wrapper.cpp
- ${Qt3DRender_GEN_DIR}/qt3drender_qshaderprogrambuilder_wrapper.cpp
-)
-endif()
-
-if (Qt${QT_MAJOR_VERSION}3DRender_VERSION VERSION_EQUAL 5.11.0
- OR Qt${QT_MAJOR_VERSION}3DRender_VERSION VERSION_GREATER 5.11.0)
- list(APPEND Qt3DRender_SRC
- ${Qt3DRender_GEN_DIR}/qt3drender_qabstractraycaster_wrapper.cpp
- ${Qt3DRender_GEN_DIR}/qt3drender_qraycaster_wrapper.cpp
- ${Qt3DRender_GEN_DIR}/qt3drender_qraycasterhit_wrapper.cpp
- ${Qt3DRender_GEN_DIR}/qt3drender_qscreenraycaster_wrapper.cpp)
-endif()
-
-if (Qt${QT_MAJOR_VERSION}3DRender_VERSION VERSION_EQUAL 5.13.0
- OR Qt${QT_MAJOR_VERSION}3DRender_VERSION VERSION_GREATER 5.13.0)
- list(APPEND Qt3DRender_SRC
- ${Qt3DRender_GEN_DIR}/qt3drender_qsetfence_wrapper.cpp
- ${Qt3DRender_GEN_DIR}/qt3drender_qsharedgltexture_wrapper.cpp
- ${Qt3DRender_GEN_DIR}/qt3drender_qwaitfence_wrapper.cpp)
-endif()
-
-if (Qt${QT_MAJOR_VERSION}3DRender_VERSION VERSION_EQUAL 5.14.0
- OR Qt${QT_MAJOR_VERSION}3DRender_VERSION VERSION_GREATER 5.14.0)
- list(APPEND Qt3DRender_SRC
- ${Qt3DRender_GEN_DIR}/qt3drender_qnopicking_wrapper.cpp
- ${Qt3DRender_GEN_DIR}/qt3drender_qshaderimage_wrapper.cpp)
-endif()
-
-if (Qt${QT_MAJOR_VERSION}3DRender_VERSION VERSION_EQUAL 5.15.0
- OR Qt${QT_MAJOR_VERSION}3DRender_VERSION VERSION_GREATER 5.15.0)
- list(APPEND Qt3DRender_SRC
- ${Qt3DRender_GEN_DIR}/qt3drender_qrendercapabilities_wrapper.cpp)
-endif()
-
-set(Qt3DRender_include_dirs
- ${Qt3DRender_SOURCE_DIR}
- ${Qt3DRender_BINARY_DIR}
- ${pyside2_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${Qt3DCore_GEN_DIR})
-
-set(Qt3DRender_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}3DRender_LIBRARIES})
-
-set(Qt3DRender_deps Qt3DCore)
-
-create_pyside_module(NAME Qt3DRender
- INCLUDE_DIRS Qt3DRender_include_dirs
- LIBRARIES Qt3DRender_libraries
- DEPS Qt3DRender_deps
- TYPESYSTEM_PATH Qt3DRender_SOURCE_DIR
- SOURCES Qt3DRender_SRC
- TYPESYSTEM_NAME ${Qt3DRender_BINARY_DIR}/typesystem_3drender.xml)
diff --git a/sources/pyside2/PySide2/Qt3DRender/typesystem_3drender.xml b/sources/pyside2/PySide2/Qt3DRender/typesystem_3drender.xml
deleted file mode 100644
index 1ab13d7d7..000000000
--- a/sources/pyside2/PySide2/Qt3DRender/typesystem_3drender.xml
+++ /dev/null
@@ -1,275 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-
-<typesystem package="PySide2.Qt3DRender">
- <load-typesystem name="Qt3DCore/typesystem_3dcore.xml" generate="no"/>
- <namespace-type name="Qt3DRender">
- <object-type name="PropertyReaderInterface"/>
- <object-type name="QAbstractFunctor"/>
- <object-type name="QAbstractLight">
- <enum-type name="Type"/>
- </object-type>
- <object-type name="QAbstractRayCaster" since="5.11">
- <enum-type name="RunMode"/>
- <enum-type name="FilterMode"/>
- </object-type>
- <object-type name="QAbstractTexture">
- <enum-type name="CubeMapFace"/>
- <enum-type name="ComparisonFunction"/>
- <enum-type name="ComparisonMode"/>
- <enum-type name="HandleType" since="5.13"/>
- <enum-type name="Filter"/>
- <enum-type name="Status"/>
- <enum-type name="Target"/>
- <enum-type name="TextureFormat"/>
- </object-type>
- <object-type name="QAbstractTextureImage">
- <modify-function signature="QAbstractTextureImage(Qt3DCore::QNode*)" remove="all"/>
- </object-type>
- <object-type name="QAlphaCoverage"/>
- <object-type name="QAlphaTest">
- <enum-type name="AlphaFunction"/>
- </object-type>
- <object-type name="QAttribute">
- <enum-type name="AttributeType"/>
- <enum-type name="VertexBaseType"/>
- </object-type>
- <object-type name="QBlendEquation">
- <enum-type name="BlendFunction"/>
- </object-type>
- <object-type name="QBlendEquationArguments">
- <enum-type name="Blending"/>
- </object-type>
- <object-type name="QBlitFramebuffer" since="5.10">
- <enum-type name="InterpolationMethod"/>
- </object-type>
- <object-type name="QBuffer">
- <enum-type name="AccessType"/>
- <enum-type name="BufferType"/>
- <enum-type name="UsageType"/>
- </object-type>
- <object-type name="QBufferCapture"/>
- <object-type name="QBufferDataGenerator">
- <modify-function signature="operator()()" remove="all"/>
- </object-type>
- <object-type name="QCamera">
- <enum-type name="CameraTranslationOption"/>
- </object-type>
- <object-type name="QCameraLens">
- <enum-type name="ProjectionType"/>
- </object-type>
- <object-type name="QCameraSelector"/>
- <object-type name="QClearBuffers">
- <enum-type name="BufferType" flags="BufferTypeFlags"/>
- </object-type>
- <object-type name="QClipPlane"/>
- <object-type name="QColorMask"/>
- <object-type name="QComputeCommand">
- <enum-type name="RunType" since="5.13"/>
- </object-type>
- <object-type name="QCullFace">
- <enum-type name="CullingMode"/>
- </object-type>
- <object-type name="QDepthTest">
- <enum-type name="DepthFunction"/>
- </object-type>
- <object-type name="QDirectionalLight"/>
- <object-type name="QDispatchCompute"/>
- <object-type name="QDithering"/>
- <object-type name="QEffect"/>
- <object-type name="QEnvironmentLight"/>
- <object-type name="QFilterKey"/>
- <object-type name="QFrameGraphNode"/>
- <object-type name="QFrameGraphNodeCreatedChangeBase"/>
- <object-type name="QFrontFace">
- <enum-type name="WindingDirection"/>
- </object-type>
- <object-type name="QFrustumCulling"/>
- <object-type name="QGeometry"/>
- <object-type name="QGeometryFactory">
- <modify-function signature="operator()()" remove="all"/>
- </object-type>
- <object-type name="QGeometryRenderer">
- <enum-type name="PrimitiveType"/>
- </object-type>
- <object-type name="QGraphicsApiFilter">
- <enum-type name="Api"/>
- <enum-type name="OpenGLProfile"/>
- </object-type>
- <object-type name="QLayer"/>
- <object-type name="QLayerFilter">
- <enum-type name="FilterMode"/>
- </object-type>
- <object-type name="QLevelOfDetail">
- <enum-type name="ThresholdType"/>
- </object-type>
- <object-type name="QLevelOfDetailBoundingSphere"/>
- <object-type name="QLevelOfDetailSwitch"/>
- <object-type name="QLineWidth" since="5.10"/>
- <object-type name="QMaterial"/>
- <object-type name="QMemoryBarrier">
- <enum-type name="Operation" flags="Operations"/>
- </object-type>
- <object-type name="QMesh">
- <enum-type name="Status"/>
- </object-type>
- <object-type name="QMultiSampleAntiAliasing"/>
- <object-type name="QNoDepthMask"/>
- <object-type name="QNoDraw"/>
- <object-type name="QNoPicking" since="5.14"/>
- <object-type name="QObjectPicker"/>
- <object-type name="QPaintedTextureImage"/>
- <object-type name="QParameter"/>
- <object-type name="QPickEvent">
- <enum-type name="Buttons"/>
- <enum-type name="Modifiers"/>
- </object-type>
- <object-type name="QPickLineEvent" since="5.10"/>
- <object-type name="QPickPointEvent" since="5.10"/>
- <object-type name="QPickTriangleEvent"/>
- <object-type name="QPickingSettings">
- <enum-type name="FaceOrientationPickingMode"/>
- <enum-type name="PickMethod"/>
- <enum-type name="PickResultMode"/>
- </object-type>
- <object-type name="QPointLight"/>
- <object-type name="QPointSize">
- <enum-type name="SizeMode"/>
- </object-type>
- <object-type name="QPolygonOffset"/>
- <object-type name="QProximityFilter" since="5.10"/>
- <object-type name="QRayCaster" since="5.11"/>
- <value-type name="QRayCasterHit" since="5.11">
- <enum-type name="HitType"/>
- </value-type>
- <object-type name="QRenderAspect">
- <enum-type name="RenderType"/>
- </object-type>
- <object-type name="QRenderCapabilities" since="5.15">
- <enum-type name="API"/>
- <enum-type name="Profile"/>
- </object-type>
- <object-type name="QRenderCapture"/>
- <object-type name="QRenderCaptureReply"/>
- <object-type name="QRenderPass"/>
- <object-type name="QRenderPassFilter"/>
- <object-type name="QRenderSettings">
- <enum-type name="RenderPolicy"/>
- </object-type>
- <object-type name="QRenderState"/>
- <object-type name="QRenderStateSet"/>
- <object-type name="QRenderSurfaceSelector"/>
- <object-type name="QRenderTarget"/>
- <object-type name="QRenderTargetOutput">
- <enum-type name="AttachmentPoint"/>
- </object-type>
- <object-type name="QRenderTargetSelector"/>
- <object-type name="QSceneLoader">
- <enum-type name="Status"/>
- <enum-type name="ComponentType"/>
- </object-type>
- <object-type name="QScissorTest"/>
- <object-type name="QScreenRayCaster" since="5.11"/>
- <object-type name="QSeamlessCubemap"/>
- <object-type name="QSetFence" since="5.13">
- <enum-type name="HandleType"/>
- </object-type>
- <object-type name="QShaderData"/>
- <object-type name="QShaderProgram">
- <enum-type name="ShaderType"/>
- <enum-type name="Status"/>
- </object-type>
- <object-type name="QShaderImage" since="5.14">
- <enum-type name="Access"/>
- <enum-type name="ImageFormat"/>
- </object-type>
- <object-type name="QShaderProgramBuilder" since="5.10"/>
- <object-type name="QSharedGLTexture" since="5.13"/>
- <object-type name="QSortPolicy">
- <enum-type name="SortType"/>
- </object-type>
- <object-type name="QSpotLight"/>
- <object-type name="QStencilMask"/>
- <object-type name="QStencilOperation"/>
- <object-type name="QStencilOperationArguments">
- <enum-type name="FaceMode"/>
- <enum-type name="Operation"/>
- </object-type>
- <object-type name="QStencilTest"/>
- <object-type name="QStencilTestArguments">
- <enum-type name="StencilFaceMode"/>
- <enum-type name="StencilFunction"/>
- </object-type>
- <object-type name="QTechnique"/>
- <object-type name="QTechniqueFilter"/>
- <object-type name="QTexture1D"/>
- <object-type name="QTexture1DArray"/>
- <object-type name="QTexture2D"/>
- <object-type name="QTexture2DArray"/>
- <object-type name="QTexture2DMultisample"/>
- <object-type name="QTexture2DMultisampleArray"/>
- <object-type name="QTexture3D"/>
- <object-type name="QTextureBuffer"/>
- <object-type name="QTextureCubeMap"/>
- <object-type name="QTextureCubeMapArray"/>
- <object-type name="QTextureData"/>
- <object-type name="QTextureGenerator">
- <modify-function signature="QTextureGenerator()" remove="all"/>
- </object-type>
- <object-type name="QTextureImage">
- <enum-type name="Status"/>
- </object-type>
- <object-type name="QTextureImageData"/>
- <object-type name="QTextureImageDataGenerator">
- <modify-function signature="QTextureImageDataGenerator()" remove="all"/>
- </object-type>
- <object-type name="QTextureLoader"/>
- <object-type name="QTextureRectangle"/>
- <object-type name="QTextureWrapMode">
- <enum-type name="WrapMode"/>
- </object-type>
- <object-type name="QViewport"/>
- <object-type name="QWaitFence" since="5.13">
- <enum-type name="HandleType"/>
- </object-type>
- </namespace-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtAxContainer/CMakeLists.txt b/sources/pyside2/PySide2/QtAxContainer/CMakeLists.txt
deleted file mode 100644
index 38e764405..000000000
--- a/sources/pyside2/PySide2/QtAxContainer/CMakeLists.txt
+++ /dev/null
@@ -1,41 +0,0 @@
-project(QtAxContainer)
-
-set(QtAxContainer_SRC
-${QtAxContainer_GEN_DIR}/qaxbase_wrapper.cpp
-${QtAxContainer_GEN_DIR}/qaxobject_wrapper.cpp
-${QtAxContainer_GEN_DIR}/qaxscript_wrapper.cpp
-${QtAxContainer_GEN_DIR}/qaxscriptengine_wrapper.cpp
-${QtAxContainer_GEN_DIR}/qaxscriptmanager_wrapper.cpp
-${QtAxContainer_GEN_DIR}/qaxselect_wrapper.cpp
-${QtAxContainer_GEN_DIR}/qaxwidget_wrapper.cpp
-# module is always needed
-${QtAxContainer_GEN_DIR}/qtaxcontainer_module_wrapper.cpp)
-
-configure_file("${QtAxContainer_SOURCE_DIR}/QtAxContainer_global.post.h.in"
- "${QtAxContainer_BINARY_DIR}/QtAxContainer_global.post.h" @ONLY)
-
-set(QtAxContainer_include_dirs
- ${QtAxContainer_SOURCE_DIR}
- ${QtAxContainer_BINARY_DIR}
- ${pyside2_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtWidgets_GEN_DIR})
-
-set(QtAxContainer_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}AxContainer_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}AxBase_LIBRARIES})
-
-set(QtAxContainer_deps QtWidgets)
-
-create_pyside_module(NAME QtAxContainer
- INCLUDE_DIRS QtAxContainer_include_dirs
- LIBRARIES QtAxContainer_libraries
- DEPS QtAxContainer_deps
- TYPESYSTEM_PATH QtAxContainer_SOURCE_DIR
- SOURCES QtAxContainer_SRC
- TYPESYSTEM_NAME ${QtAxContainer_BINARY_DIR}/typesystem_axcontainer.xml)
diff --git a/sources/pyside2/PySide2/QtAxContainer/QtAxContainer_global.post.h.in b/sources/pyside2/PySide2/QtAxContainer/QtAxContainer_global.post.h.in
deleted file mode 100644
index 22e1b0119..000000000
--- a/sources/pyside2/PySide2/QtAxContainer/QtAxContainer_global.post.h.in
+++ /dev/null
@@ -1,5 +0,0 @@
-#include <ActiveQt/QAxSelect>
-#include <ActiveQt/QAxScript>
-#include <ActiveQt/QAxScriptEngine>
-#include <ActiveQt/QAxScriptManager>
-#include <ActiveQt/QAxWidget>
diff --git a/sources/pyside2/PySide2/QtAxContainer/typesystem_axcontainer.xml b/sources/pyside2/PySide2/QtAxContainer/typesystem_axcontainer.xml
deleted file mode 100644
index 27746237a..000000000
--- a/sources/pyside2/PySide2/QtAxContainer/typesystem_axcontainer.xml
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-
-<typesystem package="PySide2.QtAxContainer">
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
- <rejection class="*" function-name="connectNotify"/>
- <rejection class="*" function-name="queryInterface"/>
- <rejection class="*" function-name="qt_metacall"/>
- <rejection class="*" function-name="qt_static_metacall"/>
- <rejection class="*" field-name="qt_meta_stringdata_QAxBase"/>
- <rejection class="*" field-name="qt_meta_data_QAxBase"/>
- <object-type name="QAxBase"/>
- <object-type name="QAxObject"/>
- <object-type name="QAxScript">
- <enum-type name="FunctionFlags"/>
- </object-type>
- <object-type name="QAxScriptEngine"/>
- <object-type name="QAxScriptManager">
- <!-- Ax Servers only -->
- <modify-function signature="addObject(QObject*)" remove="all"/>
- </object-type>
- <object-type name="QAxSelect"/>
- <object-type name="QAxWidget"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtCharts/CMakeLists.txt b/sources/pyside2/PySide2/QtCharts/CMakeLists.txt
deleted file mode 100644
index f73a28b7d..000000000
--- a/sources/pyside2/PySide2/QtCharts/CMakeLists.txt
+++ /dev/null
@@ -1,85 +0,0 @@
-project(QtCharts)
-
-set(QtCharts_SRC
-${QtCharts_GEN_DIR}/qtcharts_qabstractaxis_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qabstractbarseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qabstractseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qarealegendmarker_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qareaseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qbarcategoryaxis_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qbarlegendmarker_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qbarmodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qbarseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qbarset_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qboxplotlegendmarker_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qboxplotmodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qboxplotseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qboxset_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qcandlesticklegendmarker_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qcandlestickmodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qcandlestickseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qcandlestickset_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qcategoryaxis_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qchart_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qchartview_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qdatetimeaxis_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qhbarmodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qhboxplotmodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qhcandlestickmodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qhorizontalbarseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qhorizontalpercentbarseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qhorizontalstackedbarseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qhpiemodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qhxymodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qlegend_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qlegendmarker_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qlineseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qlogvalueaxis_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qpercentbarseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qpielegendmarker_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qpiemodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qpieseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qpieslice_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qpolarchart_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qscatterseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qsplineseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qstackedbarseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qvalueaxis_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qvbarmodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qvboxplotmodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qvcandlestickmodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qvpiemodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qvxymodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qxylegendmarker_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qxymodelmapper_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_qxyseries_wrapper.cpp
-${QtCharts_GEN_DIR}/qtcharts_wrapper.cpp
-# module is always needed
-${QtCharts_GEN_DIR}/qtcharts_module_wrapper.cpp
-)
-
-set(QtCharts_include_dirs ${QtCharts_SOURCE_DIR}
- ${QtCharts_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Charts_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtWidgets_GEN_DIR})
-
-set(QtCharts_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Charts_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES})
-
-set(QtCharts_deps QtCore QtGui QtWidgets)
-
-create_pyside_module(NAME QtCharts
- INCLUDE_DIRS QtCharts_include_dirs
- LIBRARIES QtCharts_libraries
- DEPS QtCharts_deps
- TYPESYSTEM_PATH QtCharts_SOURCE_DIR
- SOURCES QtCharts_SRC)
diff --git a/sources/pyside2/PySide2/QtCharts/typesystem_charts.xml b/sources/pyside2/PySide2/QtCharts/typesystem_charts.xml
deleted file mode 100644
index 967118cd9..000000000
--- a/sources/pyside2/PySide2/QtCharts/typesystem_charts.xml
+++ /dev/null
@@ -1,270 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtCharts">
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
- <!-- PYSIDE-1101 Removing inherited method to avoid argument conflict
- on the QChart::scroll overload -->
- <rejection class="QGraphicsItem" function-name="scroll"/>
- <namespace-type name="QtCharts">
- <object-type name="QAbstractAxis" since="5.7">
- <enum-type name="AxisType"/>
- </object-type>
- <object-type name="QAbstractBarSeries" since="5.7">
- <enum-type name="LabelsPosition"/>
- <modify-function signature="append(QtCharts::QBarSet*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="append(QList&lt;QtCharts::QBarSet*&gt;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insert(int,QtCharts::QBarSet*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="take(QtCharts::QBarSet*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QAbstractSeries" since="5.7">
- <enum-type name="SeriesType"/>
- </object-type>
- <object-type name="QAreaLegendMarker" since="5.7"/>
- <object-type name="QAreaSeries" since="5.7">
- <modify-function signature="setUpperSeries(QtCharts::QLineSeries*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setLowerSeries(QtCharts::QLineSeries*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QBarCategoryAxis" since="5.7"/>
- <object-type name="QBarLegendMarker" since="5.7"/>
- <object-type name="QBarModelMapper" since="5.7"/>
- <object-type name="QBarSeries" since="5.7"/>
- <object-type name="QBarSet" since="5.7"/>
- <object-type name="QBoxPlotLegendMarker" since="5.7"/>
- <object-type name="QBoxPlotModelMapper" since="5.7"/>
- <object-type name="QBoxPlotSeries" since="5.7">
- <modify-function signature="append(QtCharts::QBoxSet*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="append(QList&lt;QtCharts::QBoxSet*&gt;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insert(int,QtCharts::QBoxSet*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="take(QtCharts::QBoxSet*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QBoxSet" since="5.7">
- <enum-type name="ValuePositions"/>
- </object-type>
- <object-type name="QCandlestickLegendMarker" since="5.7"/>
- <object-type name="QCandlestickModelMapper" since="5.7"/>
- <object-type name="QCandlestickSeries" since="5.7">
- <modify-function signature="append(QtCharts::QCandlestickSet*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="append(QList&lt;QtCharts::QCandlestickSet*&gt;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insert(int,QtCharts::QCandlestickSet*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="take(QtCharts::QCandlestickSet*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QCandlestickSet" since="5.7"/>
- <object-type name="QCategoryAxis" since="5.7">
- <enum-type name="AxisLabelsPosition"/>
- </object-type>
- <object-type name="QChart" since="5.7">
- <enum-type name="ChartType"/>
- <enum-type name="ChartTheme"/>
- <enum-type name="AnimationOption" flags="AnimationOptions"/>
- <modify-function signature="addAxis(QtCharts::QAbstractAxis*,QFlags&lt;Qt::AlignmentFlag&gt;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addSeries(QtCharts::QAbstractSeries*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setAxisX(QtCharts::QAbstractAxis*,QtCharts::QAbstractSeries*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setAxisY(QtCharts::QAbstractAxis*,QtCharts::QAbstractSeries*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeAxis(QtCharts::QAbstractAxis*)">
- <inject-code file="../glue/qtcharts.cpp" snippet="qchart-releaseownership"/>
- </modify-function>
- <modify-function signature="removeSeries(QtCharts::QAbstractSeries*)">
- <inject-code file="../glue/qtcharts.cpp" snippet="qchart-releaseownership"/>
- </modify-function>
- </object-type>
- <object-type name="QChartView" since="5.7">
- <enum-type name="RubberBand" flags="RubberBands"/>
- <modify-function signature="QChartView(QtCharts::QChart*,QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setChart(QtCharts::QChart*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QDateTimeAxis" since="5.7"/>
- <object-type name="QHBarModelMapper" since="5.7"/>
- <object-type name="QHBoxPlotModelMapper" since="5.7"/>
- <object-type name="QHCandlestickModelMapper" since="5.7"/>
- <object-type name="QHorizontalBarSeries" since="5.7"/>
- <object-type name="QHorizontalPercentBarSeries" since="5.7"/>
- <object-type name="QHorizontalStackedBarSeries" since="5.7"/>
- <object-type name="QHPieModelMapper" since="5.7"/>
- <object-type name="QHXYModelMapper" since="5.7"/>
- <object-type name="QLegend" since="5.7">
- <enum-type name="MarkerShape"/>
- </object-type>
- <object-type name="QLegendMarker" since="5.7">
- <enum-type name="LegendMarkerType"/>
- </object-type>
- <object-type name="QLineSeries" since="5.7"/>
- <object-type name="QLogValueAxis" since="5.7"/>
- <object-type name="QPercentBarSeries" since="5.7"/>
- <object-type name="QPieLegendMarker" since="5.7"/>
- <object-type name="QPieModelMapper" since="5.7"/>
- <object-type name="QPieSlice" since="5.7">
- <enum-type name="LabelPosition"/>
- </object-type>
- <object-type name="QPieSeries" since="5.7">
- <modify-function signature="append(QtCharts::QPieSlice*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="append(QList&lt;QtCharts::QPieSlice*&gt;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insert(int,QtCharts::QPieSlice*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="take(QtCharts::QPieSlice*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QPolarChart" since="5.7">
- <enum-type name="PolarOrientation" flags="PolarOrientations"/>
- <modify-function signature="addAxis(QtCharts::QAbstractAxis*,QtCharts::QPolarChart::PolarOrientation)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <!-- Compile error assigning default flags value -->
- <modify-function signature="axes(QFlags&lt;QtCharts::QPolarChart::PolarOrientation&gt;,QtCharts::QAbstractSeries*)const" remove="all"/>
- </object-type>
- <object-type name="QScatterSeries" since="5.7">
- <enum-type name="MarkerShape"/>
- </object-type>
- <object-type name="QSplineSeries" since="5.7"/>
- <object-type name="QStackedBarSeries" since="5.7"/>
- <object-type name="QValueAxis" since="5.7"/>
- <object-type name="QVBarModelMapper" since="5.7"/>
- <object-type name="QVBoxPlotModelMapper" since="5.7"/>
- <object-type name="QVCandlestickModelMapper" since="5.7"/>
- <object-type name="QVPieModelMapper" since="5.7"/>
- <object-type name="QVXYModelMapper" since="5.7"/>
- <object-type name="QXYLegendMarker" since="5.7"/>
- <object-type name="QXYModelMapper" since="5.7"/>
- <object-type name="QXYSeries" since="5.7"/>
- </namespace-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtConcurrent/CMakeLists.txt b/sources/pyside2/PySide2/QtConcurrent/CMakeLists.txt
deleted file mode 100644
index 145a8bfc3..000000000
--- a/sources/pyside2/PySide2/QtConcurrent/CMakeLists.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-project(QtConcurrent)
-
-set(QtConcurrent_SRC
-${QtConcurrent_GEN_DIR}/qtconcurrent_wrapper.cpp
-# module is always needed
-${QtConcurrent_GEN_DIR}/qtconcurrent_module_wrapper.cpp
-)
-
-set(QtConcurrent_include_dirs ${QtConcurrent_SOURCE_DIR}
- ${QtConcurrent_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Concurrent_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- )
-set(QtConcurrent_libraries pyside2
- ${QtConcurrent_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- )
-set(QtConcurrent_deps QtCore)
-
-create_pyside_module(NAME QtConcurrent
- INCLUDE_DIRS QtConcurrent_include_dirs
- LIBRARIES QtConcurrent_libraries
- DEPS QtConcurrent_deps
- TYPESYSTEM_PATH QtConcurrent_SOURCE_DIR
- SOURCES QtConcurrent_SRC)
diff --git a/sources/pyside2/PySide2/QtConcurrent/curr_errors.txt b/sources/pyside2/PySide2/QtConcurrent/curr_errors.txt
deleted file mode 100644
index d8405c755..000000000
--- a/sources/pyside2/PySide2/QtConcurrent/curr_errors.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-Generating class model... [OK]
-Generating enum model... [OK]
-Generating namespace model... [WARNING]
- enum 'QtConcurrent::ThreadFunctionResult' does not have a type entry or is not an enum
- enum 'QtConcurrent::ReduceQueueThrottleLimit' does not have a type entry or is not an enum
-
-
-Resolving typedefs... [OK]
-Fixing class inheritance... [OK]
-Detecting inconsistencies in class model... [OK]
-[OK]
-
-Done, 2 warnings (506 known issues)
-Scanning dependencies of target QtConcurrent
-[ 21%] Building CXX object PySide/QtConcurrent/CMakeFiles/QtConcurrent.dir/PySide/QtConcurrent/qtconcurrent_module_wrapper.cpp.o
-In file included from /Users/tismer/src/pyside-setup2/pyside_build/py3.4-qt5.4.2-64bit-debug/pyside/PySide/QtConcurrent/PySide/QtConcurrent/qtconcurrent_module_wrapper.cpp:30:
-/Users/tismer/src/pyside-setup2/pyside_build/py3.4-qt5.4.2-64bit-debug/pyside/PySide/QtConcurrent/PySide/QtConcurrent/pyside_qtconcurrent_python.h:44:10: fatal error:
- 'qtconcurrentexception.h' file not found
-#include <qtconcurrentexception.h>
- ^
-1 error generated.
diff --git a/sources/pyside2/PySide2/QtConcurrent/typesystem_concurrent.xml b/sources/pyside2/PySide2/QtConcurrent/typesystem_concurrent.xml
deleted file mode 100644
index 7e7bd9bcc..000000000
--- a/sources/pyside2/PySide2/QtConcurrent/typesystem_concurrent.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtConcurrent">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
-
- <!-- Qt5: this is currently the minimum possible QtConcurrent support, by just extracting
- the name space from QtCore -->
- <namespace-type name="QtConcurrent" target-type="class">
- <rejection class="QtConcurrent" enum-name="enum_1"/>
- <enum-type name="ReduceOption" flags="ReduceOptions"/>
- <enum-type name="ThreadFunctionResult"/>
- <extra-includes>
- <include file-name="qtconcurrentreducekernel.h" location="global"/>
- <include file-name="qtconcurrentthreadengine.h" location="global"/>
- </extra-includes>
- </namespace-type>
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtCore/CMakeLists.txt b/sources/pyside2/PySide2/QtCore/CMakeLists.txt
deleted file mode 100644
index e0e220624..000000000
--- a/sources/pyside2/PySide2/QtCore/CMakeLists.txt
+++ /dev/null
@@ -1,225 +0,0 @@
-project(QtCore)
-
-set(QtCore_gluecode "${QtCore_SOURCE_DIR}/glue/qeasingcurve_glue.cpp")
-
-if(ENABLE_WIN)
- set(SPECIFIC_OS_FILES
- ${QtCore_GEN_DIR}/qwineventnotifier_wrapper.cpp
- )
-else()
- set(SPECIFIC_OS_FILES "")
-endif()
-
-set(QtCore_SRC
-${QtCore_GEN_DIR}/qabstractanimation_wrapper.cpp
-${QtCore_GEN_DIR}/qabstracteventdispatcher_timerinfo_wrapper.cpp
-${QtCore_GEN_DIR}/qabstracteventdispatcher_wrapper.cpp
-${QtCore_GEN_DIR}/qabstractitemmodel_wrapper.cpp
-${QtCore_GEN_DIR}/qabstractlistmodel_wrapper.cpp
-${QtCore_GEN_DIR}/qabstractnativeeventfilter_wrapper.cpp
-${QtCore_GEN_DIR}/qabstractproxymodel_wrapper.cpp
-${QtCore_GEN_DIR}/qabstractstate_wrapper.cpp
-${QtCore_GEN_DIR}/qabstracttablemodel_wrapper.cpp
-${QtCore_GEN_DIR}/qabstracttransition_wrapper.cpp
-${QtCore_GEN_DIR}/qanimationgroup_wrapper.cpp
-${QtCore_GEN_DIR}/qbasicmutex_wrapper.cpp
-${QtCore_GEN_DIR}/qbasictimer_wrapper.cpp
-${QtCore_GEN_DIR}/qbitarray_wrapper.cpp
-${QtCore_GEN_DIR}/qbuffer_wrapper.cpp
-${QtCore_GEN_DIR}/qbytearray_wrapper.cpp
-${QtCore_GEN_DIR}/qbytearraymatcher_wrapper.cpp
-${QtCore_GEN_DIR}/qchildevent_wrapper.cpp
-${QtCore_GEN_DIR}/qcborarray_wrapper.cpp
-${QtCore_GEN_DIR}/qcborerror_wrapper.cpp
-${QtCore_GEN_DIR}/qcbormap_wrapper.cpp
-${QtCore_GEN_DIR}/qcborparsererror_wrapper.cpp
-${QtCore_GEN_DIR}/qcborstreamreader_wrapper.cpp
-${QtCore_GEN_DIR}/qcborstringresultstring_wrapper.cpp
-${QtCore_GEN_DIR}/qcborstringresultbytearray_wrapper.cpp
-${QtCore_GEN_DIR}/qcborstreamwriter_wrapper.cpp
-${QtCore_GEN_DIR}/qcborvalue_wrapper.cpp
-${QtCore_GEN_DIR}/qcollator_wrapper.cpp
-${QtCore_GEN_DIR}/qcollatorsortkey_wrapper.cpp
-${QtCore_GEN_DIR}/qcommandlineoption_wrapper.cpp
-${QtCore_GEN_DIR}/qcommandlineparser_wrapper.cpp
-${QtCore_GEN_DIR}/qcoreapplication_wrapper.cpp
-${QtCore_GEN_DIR}/qcryptographichash_wrapper.cpp
-${QtCore_GEN_DIR}/qdatastream_wrapper.cpp
-${QtCore_GEN_DIR}/qdate_wrapper.cpp
-${QtCore_GEN_DIR}/qdatetime_wrapper.cpp
-${QtCore_GEN_DIR}/qdeadlinetimer_wrapper.cpp
-${QtCore_GEN_DIR}/qdir_wrapper.cpp
-${QtCore_GEN_DIR}/qdiriterator_wrapper.cpp
-${QtCore_GEN_DIR}/qdynamicpropertychangeevent_wrapper.cpp
-${QtCore_GEN_DIR}/qeasingcurve_wrapper.cpp
-${QtCore_GEN_DIR}/qelapsedtimer_wrapper.cpp
-${QtCore_GEN_DIR}/qevent_wrapper.cpp
-${QtCore_GEN_DIR}/qeventloop_wrapper.cpp
-${QtCore_GEN_DIR}/qeventtransition_wrapper.cpp
-${QtCore_GEN_DIR}/qfactoryinterface_wrapper.cpp
-${QtCore_GEN_DIR}/qfile_wrapper.cpp
-${QtCore_GEN_DIR}/qfileselector_wrapper.cpp
-${QtCore_GEN_DIR}/qfiledevice_wrapper.cpp
-${QtCore_GEN_DIR}/qfileinfo_wrapper.cpp
-${QtCore_GEN_DIR}/qfilesystemwatcher_wrapper.cpp
-${QtCore_GEN_DIR}/qfinalstate_wrapper.cpp
-${QtCore_GEN_DIR}/qgenericargument_wrapper.cpp
-${QtCore_GEN_DIR}/qgenericreturnargument_wrapper.cpp
-${QtCore_GEN_DIR}/qhistorystate_wrapper.cpp
-${QtCore_GEN_DIR}/qidentityproxymodel_wrapper.cpp
-${QtCore_GEN_DIR}/qiodevice_wrapper.cpp
-${QtCore_GEN_DIR}/qjsonarray_wrapper.cpp
-${QtCore_GEN_DIR}/qjsondocument_wrapper.cpp
-${QtCore_GEN_DIR}/qjsonparseerror_wrapper.cpp
-${QtCore_GEN_DIR}/qjsonvalue_wrapper.cpp
-${QtCore_GEN_DIR}/qitemselection_wrapper.cpp
-${QtCore_GEN_DIR}/qitemselectionmodel_wrapper.cpp
-${QtCore_GEN_DIR}/qitemselectionrange_wrapper.cpp
-${QtCore_GEN_DIR}/qlibraryinfo_wrapper.cpp
-${QtCore_GEN_DIR}/qline_wrapper.cpp
-${QtCore_GEN_DIR}/qlinef_wrapper.cpp
-${QtCore_GEN_DIR}/qlocale_wrapper.cpp
-${QtCore_GEN_DIR}/qlockfile_wrapper.cpp
-${QtCore_GEN_DIR}/qmargins_wrapper.cpp
-${QtCore_GEN_DIR}/qmarginsf_wrapper.cpp
-${QtCore_GEN_DIR}/qmessageauthenticationcode_wrapper.cpp
-${QtCore_GEN_DIR}/qmessagelogcontext_wrapper.cpp
-${QtCore_GEN_DIR}/qmetaclassinfo_wrapper.cpp
-${QtCore_GEN_DIR}/qmetaenum_wrapper.cpp
-${QtCore_GEN_DIR}/qmetamethod_wrapper.cpp
-${QtCore_GEN_DIR}/qmetaobject_connection_wrapper.cpp
-${QtCore_GEN_DIR}/qmetaobject_wrapper.cpp
-${QtCore_GEN_DIR}/qmetaproperty_wrapper.cpp
-${QtCore_GEN_DIR}/qmimedata_wrapper.cpp
-${QtCore_GEN_DIR}/qmimedatabase_wrapper.cpp
-${QtCore_GEN_DIR}/qmimetype_wrapper.cpp
-${QtCore_GEN_DIR}/qmodelindex_wrapper.cpp
-${QtCore_GEN_DIR}/qmutex_wrapper.cpp
-${QtCore_GEN_DIR}/qmutexlocker_wrapper.cpp
-${QtCore_GEN_DIR}/qobject_wrapper.cpp
-${QtCore_GEN_DIR}/qoperatingsystemversion_wrapper.cpp
-${QtCore_GEN_DIR}/qparallelanimationgroup_wrapper.cpp
-${QtCore_GEN_DIR}/qpauseanimation_wrapper.cpp
-${QtCore_GEN_DIR}/qpersistentmodelindex_wrapper.cpp
-${QtCore_GEN_DIR}/qpluginloader_wrapper.cpp
-${QtCore_GEN_DIR}/qpoint_wrapper.cpp
-${QtCore_GEN_DIR}/qpointf_wrapper.cpp
-${QtCore_GEN_DIR}/qprocess_wrapper.cpp
-${QtCore_GEN_DIR}/qprocessenvironment_wrapper.cpp
-${QtCore_GEN_DIR}/qpropertyanimation_wrapper.cpp
-${QtCore_GEN_DIR}/qrandomgenerator_wrapper.cpp
-${QtCore_GEN_DIR}/qrandomgenerator64_wrapper.cpp
-${QtCore_GEN_DIR}/qreadlocker_wrapper.cpp
-${QtCore_GEN_DIR}/qreadwritelock_wrapper.cpp
-${QtCore_GEN_DIR}/qrect_wrapper.cpp
-${QtCore_GEN_DIR}/qrectf_wrapper.cpp
-${QtCore_GEN_DIR}/qregexp_wrapper.cpp
-${QtCore_GEN_DIR}/qregularexpression_wrapper.cpp
-${QtCore_GEN_DIR}/qregularexpressionmatch_wrapper.cpp
-${QtCore_GEN_DIR}/qregularexpressionmatchiterator_wrapper.cpp
-${QtCore_GEN_DIR}/qresource_wrapper.cpp
-${QtCore_GEN_DIR}/qrunnable_wrapper.cpp
-${QtCore_GEN_DIR}/qsavefile_wrapper.cpp
-${QtCore_GEN_DIR}/qsemaphore_wrapper.cpp
-${QtCore_GEN_DIR}/qsemaphorereleaser_wrapper.cpp
-${QtCore_GEN_DIR}/qsequentialanimationgroup_wrapper.cpp
-${QtCore_GEN_DIR}/qsettings_wrapper.cpp
-${QtCore_GEN_DIR}/qsignalblocker_wrapper.cpp
-${QtCore_GEN_DIR}/qsignalmapper_wrapper.cpp
-${QtCore_GEN_DIR}/qsignaltransition_wrapper.cpp
-${QtCore_GEN_DIR}/qsize_wrapper.cpp
-${QtCore_GEN_DIR}/qsizef_wrapper.cpp
-${QtCore_GEN_DIR}/qsocketnotifier_wrapper.cpp
-${QtCore_GEN_DIR}/qsortfilterproxymodel_wrapper.cpp
-${QtCore_GEN_DIR}/qstate_wrapper.cpp
-${QtCore_GEN_DIR}/qstandardpaths_wrapper.cpp
-${QtCore_GEN_DIR}/qstatemachine_signalevent_wrapper.cpp
-${QtCore_GEN_DIR}/qstatemachine_wrappedevent_wrapper.cpp
-${QtCore_GEN_DIR}/qstatemachine_wrapper.cpp
-${QtCore_GEN_DIR}/qstorageinfo_wrapper.cpp
-${QtCore_GEN_DIR}/qstringlistmodel_wrapper.cpp
-${QtCore_GEN_DIR}/qsysinfo_wrapper.cpp
-${QtCore_GEN_DIR}/qsystemsemaphore_wrapper.cpp
-${QtCore_GEN_DIR}/qt_wrapper.cpp
-${QtCore_GEN_DIR}/qtemporarydir_wrapper.cpp
-${QtCore_GEN_DIR}/qtemporaryfile_wrapper.cpp
-${QtCore_GEN_DIR}/qtextboundaryfinder_wrapper.cpp
-${QtCore_GEN_DIR}/qtextcodec_converterstate_wrapper.cpp
-${QtCore_GEN_DIR}/qtextcodec_wrapper.cpp
-${QtCore_GEN_DIR}/qtextdecoder_wrapper.cpp
-${QtCore_GEN_DIR}/qtextencoder_wrapper.cpp
-${QtCore_GEN_DIR}/qtextstream_wrapper.cpp
-${QtCore_GEN_DIR}/qtextstreammanipulator_wrapper.cpp
-${QtCore_GEN_DIR}/qthread_wrapper.cpp
-${QtCore_GEN_DIR}/qthreadpool_wrapper.cpp
-${QtCore_GEN_DIR}/qtime_wrapper.cpp
-${QtCore_GEN_DIR}/qtimeline_wrapper.cpp
-${QtCore_GEN_DIR}/qtimer_wrapper.cpp
-${QtCore_GEN_DIR}/qtimerevent_wrapper.cpp
-${QtCore_GEN_DIR}/qtimezone_wrapper.cpp
-${QtCore_GEN_DIR}/qtimezone_offsetdata_wrapper.cpp
-${QtCore_GEN_DIR}/qtranslator_wrapper.cpp
-${QtCore_GEN_DIR}/qurl_wrapper.cpp
-${QtCore_GEN_DIR}/qurlquery_wrapper.cpp
-${QtCore_GEN_DIR}/quuid_wrapper.cpp
-${QtCore_GEN_DIR}/qvariantanimation_wrapper.cpp
-${QtCore_GEN_DIR}/qversionnumber_wrapper.cpp
-${QtCore_GEN_DIR}/qwaitcondition_wrapper.cpp
-${QtCore_GEN_DIR}/qwritelocker_wrapper.cpp
-${QtCore_GEN_DIR}/qxmlstreamattribute_wrapper.cpp
-${QtCore_GEN_DIR}/qxmlstreamattributes_wrapper.cpp
-${QtCore_GEN_DIR}/qxmlstreamentitydeclaration_wrapper.cpp
-${QtCore_GEN_DIR}/qxmlstreamentityresolver_wrapper.cpp
-${QtCore_GEN_DIR}/qxmlstreamnamespacedeclaration_wrapper.cpp
-${QtCore_GEN_DIR}/qxmlstreamnotationdeclaration_wrapper.cpp
-${QtCore_GEN_DIR}/qxmlstreamreader_wrapper.cpp
-${QtCore_GEN_DIR}/qxmlstreamwriter_wrapper.cpp
-
-
-${SPECIFIC_OS_FILES}
-# module is always needed
-${QtCore_GEN_DIR}/qtcore_module_wrapper.cpp
-)
-
-if (Qt${QT_MAJOR_VERSION}Core_VERSION VERSION_EQUAL 5.13.0
- OR Qt${QT_MAJOR_VERSION}Core_VERSION VERSION_GREATER 5.13.0)
- list(APPEND QtCore_SRC
- ${QtCore_GEN_DIR}/qconcatenatetablesproxymodel_wrapper.cpp
- ${QtCore_GEN_DIR}/qtransposeproxymodel_wrapper.cpp)
-endif()
-
-if (Qt${QT_MAJOR_VERSION}Core_VERSION VERSION_EQUAL 5.14.0
- OR Qt${QT_MAJOR_VERSION}Core_VERSION VERSION_GREATER 5.14.0)
- list(APPEND QtCore_SRC
- ${QtCore_GEN_DIR}/qcalendar_wrapper.cpp
- ${QtCore_GEN_DIR}/qcalendar_yearmonthday_wrapper.cpp
- ${QtCore_GEN_DIR}/qrecursivemutex_wrapper.cpp)
-endif()
-
-set(QtCore_glue_sources
- "${QtCore_SOURCE_DIR}/glue/qeasingcurve_glue.cpp"
- "${QtCore_SOURCE_DIR}/glue/qeasingcurve_glue.h"
-)
-
-configure_file("${QtCore_SOURCE_DIR}/typesystem_core.xml.in"
- "${QtCore_BINARY_DIR}/typesystem_core.xml" @ONLY)
-
-set(QtCore_include_dirs ${QtCore_SOURCE_DIR}
- ${QtCore_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- )
-set(QtCore_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- )
-
-create_pyside_module(NAME QtCore
- INCLUDE_DIRS QtCore_include_dirs
- LIBRARIES QtCore_libraries
- TYPESYSTEM_PATH QtCore_SOURCE_DIR
- SOURCES QtCore_SRC
- STATIC_SOURCES QtCore_gluecode
- TYPESYSTEM_NAME ${QtCore_BINARY_DIR}/typesystem_core.xml
- GLUE_SOURCES QtCore_glue_sources
- )
-
diff --git a/sources/pyside2/PySide2/QtCore/glue/qeasingcurve_glue.cpp b/sources/pyside2/PySide2/QtCore/glue/qeasingcurve_glue.cpp
deleted file mode 100644
index 552191955..000000000
--- a/sources/pyside2/PySide2/QtCore/glue/qeasingcurve_glue.cpp
+++ /dev/null
@@ -1,158 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <sbkpython.h>
-#include <shiboken.h>
-#include <pysideweakref.h>
-#include <QEasingCurve>
-
-#include "glue/qeasingcurve_glue.h"
-
-#define MAX_CUSTOM_FUNCTIONS 10
-
-static void deleteData(void *data);
-
-struct CustomFunctionsData
-{
- static CustomFunctionsData m_list[MAX_CUSTOM_FUNCTIONS];
-
- PySideEasingCurveFunctor *m_obj;
- QEasingCurve::EasingFunction m_func;
-};
-
-CustomFunctionsData CustomFunctionsData::m_list[MAX_CUSTOM_FUNCTIONS];
-
-template<int N>
-struct CustomFunctions
-{
- static void init()
- {
- CustomFunctionsData data;
- data.m_obj = 0;
- data.m_func = &CustomFunctions<N>::callback;
- CustomFunctionsData::m_list[N] = data;
-
- CustomFunctions<N-1>::init();
- }
-
- static qreal callback(qreal v)
- {
- return (*CustomFunctionsData::m_list[N].m_obj)(v);
- }
-};
-
-template<>
-struct CustomFunctions<0>
-{
- static void init()
- {
- CustomFunctionsData data;
- data.m_obj = 0;
- data.m_func = &CustomFunctions<0>::callback;
- CustomFunctionsData::m_list[0] = data;
- }
-
- static qreal callback(qreal v)
- {
- return (*CustomFunctionsData::m_list[0].m_obj)(v);
- }
-};
-
-void deleteData(void *data)
-{
- delete (PySideEasingCurveFunctor *)(data);
-}
-
-void PySideEasingCurveFunctor::init()
-{
- CustomFunctions<MAX_CUSTOM_FUNCTIONS-1>::init();
-}
-
-QEasingCurve::EasingFunction PySideEasingCurveFunctor::createCustomFuntion(PyObject *parent, PyObject *pyFunc)
-{
- for(int i=0; i < MAX_CUSTOM_FUNCTIONS; i++) {
- CustomFunctionsData &data = CustomFunctionsData::m_list[i];
- if (data.m_obj == 0) {
- data.m_obj = new PySideEasingCurveFunctor(i, parent, pyFunc);
- return data.m_func;
- }
- }
- //PyErr_Format(PyExc_RuntimeError, "PySide only supports %d custom functions simultaneously.", MAX_CUSTOM_FUNCTIONS);
- return 0;
-}
-
-PySideEasingCurveFunctor::~PySideEasingCurveFunctor()
-{
-
- CustomFunctionsData::m_list[m_index].m_obj = 0;
- PyObject_SetAttr(m_parent, Shiboken::PyMagicName::ecf(), Py_None);
-}
-
-qreal PySideEasingCurveFunctor::operator()(qreal progress)
-{
- Shiboken::GilState state;
- PyObject *args = Py_BuildValue("(f)", progress);
- PyObject *result = PyObject_CallObject(m_func, args);
- qreal cppResult = 0.0;
- if (result) {
- Shiboken::Conversions::pythonToCppCopy(Shiboken::Conversions::PrimitiveTypeConverter<qreal>(), result, &cppResult);
- Py_DECREF(result);
- }
- Py_DECREF(args);
- return cppResult;
-}
-
-PyObject *PySideEasingCurveFunctor::callable()
-{
- Py_INCREF(m_func);
- return m_func;
-}
-
-PyObject *PySideEasingCurveFunctor::callable(PyObject *parent)
-{
- return PyObject_GetAttr(parent, Shiboken::PyMagicName::ecf());
-}
-
-PySideEasingCurveFunctor::PySideEasingCurveFunctor(int index, PyObject *parent, PyObject *pyFunc)
- : m_parent(parent), m_func(pyFunc), m_index(index)
-{
- PyObject_SetAttr(m_parent, Shiboken::PyMagicName::ecf(), m_func);
- PySide::WeakRef::create(m_parent, deleteData, this);
-}
-
diff --git a/sources/pyside2/PySide2/QtCore/glue/qeasingcurve_glue.h b/sources/pyside2/PySide2/QtCore/glue/qeasingcurve_glue.h
deleted file mode 100644
index f6c80fa99..000000000
--- a/sources/pyside2/PySide2/QtCore/glue/qeasingcurve_glue.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef __QEASINGCURVE_GLUE__
-#define __QEASINGCURVE_GLUE__
-
-#include <sbkpython.h>
-#include <QEasingCurve>
-
-class PySideEasingCurveFunctor
-{
- public:
- static void init();
- static QEasingCurve::EasingFunction createCustomFuntion(PyObject *parent, PyObject *pyFunc);
-
- qreal operator()(qreal progress);
-
- PyObject *callable(); //Return New reference
- static PyObject *callable(PyObject *parent); //Return New reference
-
- ~PySideEasingCurveFunctor();
- private:
- PyObject *m_parent;
- PyObject *m_func;
- int m_index;
-
- PySideEasingCurveFunctor(int index, PyObject *parent, PyObject *pyFunc);
-};
-
-#endif
diff --git a/sources/pyside2/PySide2/QtCore/typesystem_core.xml.in b/sources/pyside2/PySide2/QtCore/typesystem_core.xml.in
deleted file mode 100644
index 8be5bba4e..000000000
--- a/sources/pyside2/PySide2/QtCore/typesystem_core.xml.in
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtCore">
- <load-typesystem name="QtCore/typesystem_core_@AUTO_OS@.xml" generate="yes"/>
- <load-typesystem name="QtCore/typesystem_core_common.xml" generate="yes"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml b/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml
deleted file mode 100644
index c27029f03..000000000
--- a/sources/pyside2/PySide2/QtCore/typesystem_core_common.xml
+++ /dev/null
@@ -1,3332 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtCore">
- <load-typesystem name="templates/core_common.xml" generate="no"/>
-
- <custom-type name="str"/>
- <custom-type name="PyBytes"/>
- <custom-type name="PyByteArray"/>
- <custom-type name="PyCallable"/>
- <custom-type name="PyObject"/>
- <custom-type name="PySequence"/>
- <custom-type name="PyTypeObject"/>
- <custom-type name="PyUnicode"/>
- <custom-type name="list of QAbstractAnimation"/>
- <custom-type name="list of QAbstractState"/>
-
- <function signature="qAcos(qreal)"/>
- <function signature="qAsin(qreal)" since="4.6"/>
- <function signature="qAtan(qreal)" since="4.6"/>
- <function signature="qAtan2(qreal,qreal)" since="4.6"/>
- <function signature="qChecksum(const char*,uint)"/>
- <function signature="qExp(qreal)" since="4.6"/>
- <function signature="qFabs(qreal)" since="4.6"/>
- <function signature="qFastCos(qreal)" since="4.6"/>
- <function signature="qFastSin(qreal)" since="4.6"/>
- <function signature="qFuzzyCompare(double,double)"/>
- <function signature="qFuzzyIsNull(double)" since="4.6"/>
- <function signature="qIsFinite(double)"/>
- <function signature="qIsInf(double)"/>
- <function signature="qIsNaN(double)"/>
- <function signature="qIsNull(double)"/>
- <!-- Qt5: gone <function signature="qRound(qreal)"/> -->
- <function signature="qTan(qreal)" since="4.6"/>
- <function signature="qtTrId(const char*,int)" since="4.6"/>
- <function signature="qVersion()"/>
- <function signature="qrand()"/>
- <function signature="qsrand(uint)"/>
- <function signature="qCompress(const uchar*,int,int)"/>
- <function signature="qCompress(const QByteArray&amp;,int)"/>
- <function signature="qUncompress(const uchar*,int)"/>
- <function signature="qUncompress(const QByteArray&amp;)"/>
-
- <inject-code class="native" position="beginning" file="../glue/qtcore.cpp" snippet="include-pyside"/>
-
-
- <add-function signature="qDebug(const char*)">
- <inject-code file="../glue/qtcore.cpp" snippet="use-stream-for-format-security"/>
- </add-function>
- <add-function signature="qCritical(const char*)">
- <inject-code file="../glue/qtcore.cpp" snippet="use-stream-for-format-security"/>
- </add-function>
- <add-function signature="qFatal(const char*)">
- <inject-code file="../glue/qtcore.cpp" snippet="qfatal"/>
- </add-function>
- <add-function signature="qWarning(const char*)">
- <inject-code file="../glue/qtcore.cpp" snippet="use-stream-for-format-security"/>
- </add-function>
-
- <!-- TODO: We do not support void* or const void* as arg -->
- <rejection class="QMetaObject" function-name="activate"/>
- <rejection class="QMetaObject" function-name="metacall"/>
- <rejection class="QMetaObject" function-name="static_metacall"/>
- <!-- TODO: Support to addGuard(QObject**) -->
- <rejection class="QMetaObject" function-name="addGuard"/>
- <rejection class="QMetaObject" function-name="changeGuard"/>
- <rejection class="QMetaObject" function-name="removeGuard"/>
-
- <rejection class="QByteArray" field-name="MaxSize"/>
- <rejection class="QChildEvent" field-name="c"/>
- <rejection class="QTimerEvent" field-name="id"/>
- <rejection class="QEvent" field-name="t"/>
- <rejection class="*" function-name="tr"/>
- <rejection class="*" function-name="trUtf8"/>
- <rejection class="*" function-name="qt_metacast"/>
- <!-- From Qt4.6 -->
- <rejection class="*" field-name="d_ptr"/>
- <rejection class="*" field-name="staticQtMetaObject"/>
- <rejection class="*" function-name="qobject_interface_iid"/>
- <rejection class="*" function-name="qGetPtrHelper"/>
- <rejection class="*" function-name="q_check_ptr"/>
- <rejection class="*" function-name="qobject_interface_iid&lt;QTextCodecFactoryInterface*&gt;"/>
- <rejection class="*" function-name="qobject_interface_iid&lt;QFactoryInterface*&gt;"/>
- <rejection class="*" function-name="qRegisterAnimationInterpolator"/>
- <rejection class="*" function-name="qvariant_cast&lt;QVariant&gt;"/>
- <rejection class="*" function-name="qVariantSetValue&lt;QVariant&gt;"/>
- <rejection class="*" function-name="qReallocAligned"/>
- <rejection class="*" function-name="qMallocAligned"/>
- <rejection class="*" function-name="qFreeAligned"/>
- <rejection class="QMetaMethod" enum-name="Attributes"/>
-
- <rejection class="*" argument-type="QByteArrayDataPtr"/>
- <rejection class="*" argument-type="^qfloat16&amp;?$"/>
- <rejection class="*" argument-type="QHashData"/>
- <rejection class="*" argument-type="QHashData::Node*"/>
- <rejection class="*" argument-type="QLatin1String"/>
- <rejection class="*" argument-type="QLinkedListData*"/>
- <rejection class="*" argument-type="QListData::ArrayCompatibleLayout"/>
- <rejection class="*" argument-type="QListData::Data*"/>
- <rejection class="*" argument-type="QListData::NotArrayCompatibleLayout"/>
- <rejection class="*" argument-type="QList::Node*"/>
- <rejection class="*" argument-type="QTSMFI"/>
- <rejection class="*" argument-type="QTSMFC"/>
- <rejection class="*" argument-type="QMutexData*"/>
- <rejection class="*" argument-type="QObjectUserData*"/>
- <rejection class="*" argument-type="QtPrivate::QSlotObjectBase*"/>
- <rejection class="*" argument-type="^Q\w+Private( const)?\&amp;$"/>
- <!-- Note: "QHelpModel(QHelpEnginePrivate*)" is needed -->
- <rejection class="*" argument-type="^Q[^H]\w+Private( const)?\*$"/>
- <rejection class="*" argument-type="^.*::QPrivateSignal$"/>
- <rejection class="*" argument-type="Qt::Initialization"/>
-
- <rejection class="*" argument-type="FILE*"/>
- <rejection class="*" argument-type="std::chrono::milliseconds"/>
- <rejection class="*" argument-type="^std::nullptr_t&amp;?$"/>
- <rejection class="*" argument-type="^std::initializer_list&lt;.*$"/>
- <rejection class="*" argument-type="^std::list&lt;[^&gt;]&gt; const&amp;$"/>
- <rejection class="*" argument-type="std::string const&amp;"/>
- <rejection class="*" argument-type="^std::vector&lt;[^&gt;]&gt; const&amp;$"/>
-
- <!-- From Qt4.6 ^^^ -->
-
-
- <enum-type name="QtMsgType"/>
-
- <enum-type name="QCborSimpleType" since="5.12"/>
- <enum-type name="QCborKnownTags" since="5.12"/>
-
- <primitive-type name="qint8"/>
- <primitive-type name="qint16"/>
- <primitive-type name="qint32"/>
- <primitive-type name="quint8"/>
- <primitive-type name="quint16"/>
- <primitive-type name="quint32"/>
- <primitive-type name="quint64"/>
- <primitive-type name="double"/>
- <primitive-type name="qreal"/>
- <primitive-type name="float"/>
- <primitive-type name="qint64"/>
- <primitive-type name="unsigned long long"/>
- <primitive-type name="long long"/>
- <primitive-type name="qlonglong" target-lang-api-name="PyLong"/>
- <primitive-type name="qulonglong" target-lang-api-name="PyLong"/>
- <primitive-type name="short"/>
- <primitive-type name="signed short"/>
- <primitive-type name="signed short int"/>
- <primitive-type name="ushort" target-lang-api-name="PyInt"/>
- <primitive-type name="unsigned short int"/>
- <primitive-type name="unsigned short"/>
- <primitive-type name="char"/>
- <primitive-type name="signed char"/>
- <primitive-type name="uchar"/>
- <primitive-type name="unsigned char"/>
- <primitive-type name="int"/>
- <primitive-type name="signed int"/>
- <primitive-type name="uint"/>
- <primitive-type name="ulong"/>
- <primitive-type name="unsigned int"/>
- <primitive-type name="signed long"/>
- <primitive-type name="signed long int"/>
- <primitive-type name="long"/>
- <primitive-type name="unsigned long int"/>
- <primitive-type name="unsigned long">
- <!-- FIXME APIExtractor or shiboken do not support multiple includes by primitive type -->
- <include file-name="signalmanager.h" location="global"/>
- </primitive-type>
-
- <primitive-type name="bool" target-lang-api-name="PyBool">
- <conversion-rule>
- <native-to-target file="../glue/qtcore.cpp" snippet="return-pybool"/>
- <target-to-native>
- <add-conversion type="PyBool" file="../glue/qtcore.cpp" snippet="conversion-pybool"/>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
-
- <!-- Qt5: add the new pointer-ish types -->
- <primitive-type name="qintptr" target-lang-api-name="PyLong">
- <conversion-rule>
- <native-to-target file="../glue/qtcore.cpp" snippet="return-pylong"/>
- <target-to-native>
- <add-conversion type="PyLong" file="../glue/qtcore.cpp" snippet="conversion-pylong"/>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
- <primitive-type name="quintptr" target-lang-api-name="PyLong">
- <conversion-rule>
- <native-to-target file="../glue/qtcore.cpp" snippet="return-pylong-quintptr"/>
- <target-to-native>
- <add-conversion type="PyLong" file="../glue/qtcore.cpp" snippet="conversion-pylong-quintptr"/>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
- <primitive-type name="qptrdiff" target-lang-api-name="PyLong">
- <conversion-rule>
- <native-to-target file="../glue/qtcore.cpp" snippet="return-pylong"/>
- <target-to-native>
- <add-conversion type="PyLong" file="../glue/qtcore.cpp" snippet="conversion-pylong"/>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
-
- <inject-code class="native" position="beginning" file="../glue/qtcore.cpp" snippet="pystring-check"/>
-
- <primitive-type name="QString" target-lang-api-name="PyUnicode">
- <include file-name="QString" location="global"/>
- <conversion-rule>
- <native-to-target file="../glue/qtcore.cpp" snippet="return-pyunicode"/>
- <target-to-native>
- <add-conversion type="PyUnicode" file="../glue/qtcore.cpp" snippet="conversion-pyunicode"/>
- <add-conversion type="PyString" check="py2kStrCheck(%in)" file="../glue/qtcore.cpp" snippet="conversion-pystring"/>
- <add-conversion type="Py_None" file="../glue/qtcore.cpp" snippet="conversion-pynone"/>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
-
- <primitive-type name="QStringRef">
- <conversion-rule>
- <native-to-target file="../glue/qtcore.cpp" snippet="return-pyunicode-qstringref"/>
- </conversion-rule>
- </primitive-type>
- <primitive-type name="QChar">
- <conversion-rule>
- <native-to-target file="../glue/qtcore.cpp" snippet="return-pyunicode-qchar"/>
- <target-to-native>
- <add-conversion type="PyString" check="Shiboken::String::checkChar(%in)" file="../glue/qtcore.cpp" snippet="conversion-pystring-char"/>
- <add-conversion type="PyInt" file="../glue/qtcore.cpp" snippet="conversion-pyint"/>
- <add-conversion type="Py_None" file="../glue/qtcore.cpp" snippet="conversion-pynone"/>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
-
- <primitive-type name="QVariant" target-lang-api-name="PyObject">
- <conversion-rule>
- <native-to-target file="../glue/qtcore.cpp" snippet="return-qvariant"/>
- <target-to-native>
- <add-conversion type="PyBool" file="../glue/qtcore.cpp" snippet="conversion-pybool"/>
- <add-conversion type="Py_None" file="../glue/qtcore.cpp" snippet="conversion-pynone"/>
- <add-conversion type="QString" check="Shiboken::String::check(%in)" file="../glue/qtcore.cpp" snippet="conversion-qstring"/>
- <add-conversion type="QByteArray" file="../glue/qtcore.cpp" snippet="conversion-qbytearray"/>
- <add-conversion type="PyFloat" check="PyFloat_CheckExact(%in)" file="../glue/qtcore.cpp" snippet="conversion-pyfloat"/>
- <!-- Using PyLong instead of PyInt to support Python2 and 3-->
- <add-conversion type="PyInt" check="PyInt_CheckExact(%in)" file="../glue/qtcore.cpp" snippet="conversion-qlonglong"/>
- <add-conversion type="PyLong" check="PyLong_CheckExact(%in)" file="../glue/qtcore.cpp" snippet="conversion-qlonglong"/>
- <add-conversion type="SbkEnumType" file="../glue/qtcore.cpp" snippet="conversion-pyint"/>
- <add-conversion type="SbkObject" file="../glue/qtcore.cpp" snippet="conversion-sbkobject"/>
- <add-conversion type="PyDict" check="PyDict_CheckExact(%in)" file="../glue/qtcore.cpp" snippet="conversion-pydict"/>
- <add-conversion type="PyList" check="PyList_Check(%in)" file="../glue/qtcore.cpp" snippet="conversion-pylist"/>
- <add-conversion type="PyObject" file="../glue/qtcore.cpp" snippet="conversion-pyobject"/>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
- <inject-code class="native" position="beginning" file="../glue/qtcore.cpp" snippet="qvariant-conversion"/>
- <primitive-type name="QVariant::Type" default-constructor="QVariant::Invalid">
- <conversion-rule>
- <native-to-target file="../glue/qtcore.cpp" snippet="return-qvariant-type"/>
- <target-to-native>
- <add-conversion type="Py_None" file="../glue/qtcore.cpp" snippet="conversion-qvariant-invalid"/>
- <add-conversion type="PyTypeObject" file="../glue/qtcore.cpp" snippet="conversion-qvariant-pytypeobject"/>
- <add-conversion type="PyString" check="Shiboken::String::check(%in)" file="../glue/qtcore.cpp" snippet="conversion-qvariant-pystring"/>
- <add-conversion type="PyDict" check="PyDict_Check(%in) &amp;&amp; QVariantType_checkAllStringKeys(%in)" file="../glue/qtcore.cpp" snippet="conversion-qvariant-pydict"/>
- <add-conversion type="PySequence" file="../glue/qtcore.cpp" snippet="conversion-qvariant-pysequence"/>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
-
- <inject-code class="native" position="beginning" file="../glue/qtcore.cpp" snippet="qvariantmap-check"/>
- <primitive-type name="QStringList">
- <include file-name="QStringList" location="global"/>
- <conversion-rule>
- <native-to-target>
- <insert-template name="cpplist_to_pylist_conversion">
- <replace from="%INTYPE_0" to="QString"/>
- </insert-template>
- </native-to-target>
- <target-to-native>
- <add-conversion type="PySequence">
- <insert-template name="pyseq_to_cpplist_conversion">
- <replace from="%OUTTYPE_0" to="QString"/>
- </insert-template>
- </add-conversion>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
-
- <value-type name="QCborError" since="5.12">
- <enum-type name="Code"/>
- <include file-name="qcborcommon.h" location="global"/>
- </value-type>
-
- <value-type name="QCborParserError" since="5.12">
- <include file-name="qcborvalue.h" location="global"/>
- </value-type>
-
- <value-type name="QCborValue" since="5.12">
- <enum-type name="EncodingOption" flags="EncodingOptions"/>
- <enum-type name="DiagnosticNotationOption" flags="DiagnosticNotationOptions"/>
- <enum-type name="Type"/>
- </value-type>
- <value-type name="QCborArray" since="5.12"/>
- <value-type name="QCborMap" since="5.12"/>
-
- <object-type name="QCborStreamReader" since="5.12">
- <enum-type name="StringResultCode"/>
- <enum-type name="Type"/>
- <include file-name="qcborstream.h" location="global"/>
- <value-type name="StringResult" generate="no"/>
- <!-- 64bit (qsizetype = long long) -->
- <modify-function signature="readStringChunk(char*,long long)" remove="all"/>
- <!-- 32bit (qsizetype = int) -->
- <modify-function signature="readStringChunk(char*,int)" remove="all"/>
- </object-type>
- <typedef-type name="QCborStringResultString" source="QCborStreamReader::StringResult&lt;QString&gt;" since="5.12"/>
- <typedef-type name="QCborStringResultByteArray" source="QCborStreamReader::StringResult&lt;QByteArray&gt;" since="5.12"/>
- <object-type name="QCborStreamWriter" since="5.12">
- <include file-name="qcborstream.h" location="global"/>
- </object-type>
-
- <primitive-type name="QJsonObject">
- <conversion-rule>
- <native-to-target file="../glue/qtcore.cpp" snippet="return-qjsonobject"/>
- <target-to-native>
- <add-conversion type="PyDict" file="../glue/qtcore.cpp" snippet="conversion-qjsonobject-pydict"/>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
-
- <primitive-type name="QModelIndexList">
- <include file-name="qabstractitemmodel.h" location="global"/>
- <conversion-rule>
- <native-to-target>
- <insert-template name="cpplist_to_pylist_conversion">
- <replace from="%INTYPE_0" to="QModelIndex"/>
- </insert-template>
- </native-to-target>
- <target-to-native>
- <add-conversion type="PySequence">
- <insert-template name="pyseq_to_cpplist_conversion">
- <replace from="%OUTTYPE_0" to="QModelIndex"/>
- </insert-template>
- </add-conversion>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
-
- <container-type name="QSet" type="set">
- <include file-name="QSet" location="global"/>
- <conversion-rule>
- <native-to-target>
- <insert-template name="cpplist_to_pylist_conversion"/>
- </native-to-target>
- <target-to-native>
- <add-conversion type="PySequence">
- <insert-template name="pyseq_to_cpplist_conversion"/>
- </add-conversion>
- </target-to-native>
- </conversion-rule>
- </container-type>
-
- <container-type name="QList" type="list">
- <include file-name="QList" location="global"/>
- <conversion-rule>
- <native-to-target>
- <insert-template name="cpplist_to_pylist_conversion"/>
- </native-to-target>
- <target-to-native>
- <add-conversion type="PySequence">
- <insert-template name="pyseq_to_cpplist_conversion"/>
- </add-conversion>
- </target-to-native>
- </conversion-rule>
- </container-type>
-
- <container-type name="QVector" type="vector">
- <include file-name="QVector" location="global"/>
- <conversion-rule>
- <native-to-target>
- <insert-template name="cppvector_to_pylist_conversion"/>
- </native-to-target>
- <target-to-native>
- <add-conversion type="PySequence">
- <insert-template name="pyseq_to_cppvector_conversion"/>
- </add-conversion>
- </target-to-native>
- </conversion-rule>
-
- </container-type>
-
- <container-type name="QStack" type="stack">
- <include file-name="QStack" location="global"/>
- <conversion-rule>
- <native-to-target>
- <insert-template name="cpplist_to_pylist_conversion"/>
- </native-to-target>
- <target-to-native>
- <add-conversion type="PySequence">
- <insert-template name="pyseq_to_cpplist_conversion"/>
- </add-conversion>
- </target-to-native>
- </conversion-rule>
- </container-type>
-
- <container-type name="QQueue" type="queue">
- <include file-name="QQueue" location="global"/>
- <conversion-rule>
- <native-to-target>
- <insert-template name="cpplist_to_pylist_conversion"/>
- </native-to-target>
- <target-to-native>
- <add-conversion type="PySequence">
- <insert-template name="pyseq_to_cpplist_conversion"/>
- </add-conversion>
- </target-to-native>
- </conversion-rule>
- </container-type>
-
- <container-type name="QLinkedList" type="linked-list">
- <include file-name="QLinkedList" location="global"/>
- <conversion-rule>
- <native-to-target>
- <insert-template name="cpplist_to_pylist_conversion"/>
- </native-to-target>
- <target-to-native>
- <add-conversion type="PySequence">
- <insert-template name="pyseq_to_cpplist_conversion"/>
- </add-conversion>
- </target-to-native>
- </conversion-rule>
- </container-type>
-
- <container-type name="QHash" type="hash">
- <include file-name="QHash" location="global"/>
- <!-- Include to make enum flags work. -->
- <include file-name="pysideqflags.h" location="global"/>
- <conversion-rule>
- <native-to-target>
- <insert-template name="cppmap_to_pymap_conversion"/>
- </native-to-target>
- <target-to-native>
- <add-conversion type="PyDict">
- <insert-template name="pydict_to_cppmap_conversion"/>
- </add-conversion>
- </target-to-native>
- </conversion-rule>
- </container-type>
- <container-type name="QMap" type="map">
- <include file-name="QMap" location="global"/>
- <conversion-rule>
- <native-to-target>
- <insert-template name="cppmap_to_pymap_conversion"/>
- </native-to-target>
- <target-to-native>
- <add-conversion type="PyDict">
- <insert-template name="pydict_to_cppmap_conversion"/>
- </add-conversion>
- </target-to-native>
- </conversion-rule>
- </container-type>
- <container-type name="QMultiMap" type="multi-map">
- <include file-name="QMultiMap" location="global"/>
- <conversion-rule>
- <native-to-target>
- <insert-template name="cppmap_to_pymap_conversion"/>
- </native-to-target>
- <target-to-native>
- <add-conversion type="PyDict">
- <insert-template name="pydict_to_cppmap_conversion"/>
- </add-conversion>
- </target-to-native>
- </conversion-rule>
- </container-type>
-
- <container-type name="QPair" type="pair">
- <include file-name="QPair" location="global"/>
- <conversion-rule>
- <native-to-target file="../glue/qtcore.cpp" snippet="return-qpair"/>
- <target-to-native>
- <add-conversion type="PySequence" file="../glue/qtcore.cpp" snippet="conversion-qpair-pysequence"/>
- </target-to-native>
- </conversion-rule>
- </container-type>
-
- <rejection class="*" function-name="d_func"/>
- <rejection class="*" function-name="data_ptr"/>
- <rejection class="*" function-name="detach"/>
- <rejection class="*" function-name="isDetached"/>
- <rejection class="*" field-name="d_ptr"/>
- <rejection class="*" field-name="d"/>
- <rejection class="*" field-name="staticMetaObject"/>
- <!-- not support array in property -->
- <rejection class="QTextCodec::ConverterState" field-name="state_data"/>
- <rejection class="QUuid" field-name="data1"/>
- <rejection class="QUuid" field-name="data2"/>
- <rejection class="QUuid" field-name="data3"/>
- <rejection class="QUuid" field-name="data4"/>
- <rejection class="" enum-name="QtValidLicenseForTestModule"/>
- <rejection class="" enum-name="QtValidLicenseForDBusModule"/>
- <rejection class="" enum-name="QtValidLicenseForSqlModule"/>
- <rejection class="" enum-name="QtValidLicenseForOpenGLModule"/>
- <rejection class="" enum-name="QtValidLicenseForScriptToolsModule"/>
- <rejection class="" enum-name="__codecvt_result"/>
- <rejection class="" enum-name="enum_1"/>
- <rejection class="" enum-name="enum_2"/>
- <rejection class="" enum-name="QtValidLicenseForXmlModule"/>
- <rejection class="" enum-name="QtValidLicenseForXmlPatternsModule"/>
- <rejection class="" enum-name="QtValidLicenseForActiveQtModule"/>
- <rejection class="" enum-name="QtValidLicenseForCoreModule"/>
- <rejection class="" enum-name="QtValidLicenseForQt3SupportLightModule"/>
- <rejection class="" enum-name="QtValidLicenseForQt3SupportModule"/>
- <rejection class="" enum-name="QtValidLicenseForNetworkModule"/>
- <rejection class="" enum-name="QtValidLicenseForSvgModule"/>
- <rejection class="" enum-name="QtValidLicenseForGuiModule"/>
- <rejection class="" enum-name="QtValidLicenseForScriptModule"/>
- <rejection class="" enum-name="QtValidLicenseForHelpModule"/>
- <!-- Internal -->
- <rejection class="QAbstractFileEngine"/> <!--
- <rejection class="QAbstractFileEngine" function-name="endEntryList"/>
- <rejection class="QAbstractFileEngine" function-name="extension"/> XXX -->
- <rejection class="QCoreApplication" function-name="compressEvent"/>
- <rejection class="QCoreApplication" function-name="eventFilter"/>
- <rejection class="QCoreApplication" function-name="filterEvent"/>
- <rejection class="QCoreApplication" function-name="setEventFilter"/>
- <rejection class="QFile" function-name="setDecodingFunction"/>
- <rejection class="QFile" function-name="setEncodingFunction"/>
- <rejection class="QRegion" function-name="cleanUp"/>
- <rejection class="QSettings" function-name="registerFormat"/>
- <rejection class="Qt" function-name="qt_getEnumMetaObject"/>
- <rejection class="Qt" function-name="qt_getEnumName"/>
-
- <namespace-type name="Qt">
- <enum-type name="AlignmentFlag" flags="Alignment"/>
- <enum-type name="AnchorPoint" since="4.6"/>
- <enum-type name="ApplicationAttribute"/>
- <enum-type name="ApplicationState" flags="ApplicationStates" since="5.1"/>
- <enum-type name="ArrowType"/>
- <enum-type name="AspectRatioMode"/>
- <enum-type name="Axis"/>
- <enum-type name="BGMode"/>
- <enum-type name="BrushStyle"/>
- <enum-type name="CaseSensitivity"/>
- <enum-type name="ChecksumType" since="5.9"/>
- <enum-type name="CheckState"/>
- <enum-type name="ClipOperation"/>
- <enum-type name="ConnectionType"/>
- <enum-type name="ContextMenuPolicy"/>
- <enum-type name="CoordinateSystem" since="4.6"/>
- <enum-type name="Corner"/>
- <enum-type name="CursorShape"/>
- <enum-type name="DateFormat"/>
- <enum-type name="DayOfWeek"/>
- <enum-type name="DockWidgetArea" flags="DockWidgetAreas"/>
- <enum-type name="DockWidgetAreaSizes"/>
- <enum-type name="DropAction" flags="DropActions"/>
- <enum-type name="Edge" flags="Edges" since="5.1"/>
- <enum-type name="EventPriority"/>
- <enum-type name="FillRule"/>
- <enum-type name="FindChildOption" flags="FindChildOptions" since="5.0"/>
- <enum-type name="FocusPolicy"/>
- <enum-type name="FocusReason"/>
- <enum-type name="GestureFlag" flags="GestureFlags" since="4.6"/>
- <enum-type name="GestureState" since="4.6"/>
- <enum-type name="GestureType" since="4.6"/>
- <enum-type name="GlobalColor"/>
- <enum-type name="HighDpiScaleFactorRoundingPolicy" since="5.14"/>
- <enum-type name="HitTestAccuracy"/>
- <enum-type name="ImageConversionFlag" flags="ImageConversionFlags"/>
- <enum-type name="InputMethodHint" flags="InputMethodHints" since="4.6"/>
- <enum-type name="InputMethodQuery" flags="InputMethodQueries"/>
- <enum-type name="EnterKeyType" since="5.6"/>
- <enum-type name="ItemDataRole"/>
- <enum-type name="ItemFlag" flags="ItemFlags"/>
- <enum-type name="ItemSelectionMode"/>
- <enum-type name="ItemSelectionOperation" since="5.5"/>
- <enum-type name="Key"/>
- <enum-type name="KeyboardModifier" flags="KeyboardModifiers"/>
- <enum-type name="LayoutDirection"/>
- <enum-type name="MaskMode"/>
- <enum-type name="MatchFlag" flags="MatchFlags"/>
- <enum-type name="Modifier"/>
- <enum-type name="MouseButton" flags="MouseButtons"/>
- <enum-type name="MouseEventFlag" flags="MouseEventFlags" since="5.3"/>
- <enum-type name="MouseEventSource" since="5.3"/>
- <enum-type name="NativeGestureType" since="5.0"/>
- <enum-type name="NavigationMode" since="4.6"/>
- <enum-type name="Orientation" flags="Orientations"/>
- <enum-type name="PenCapStyle"/>
- <enum-type name="PenJoinStyle"/>
- <enum-type name="PenStyle"/>
- <enum-type name="ScreenOrientation" flags="ScreenOrientations" since="5.0"/>
- <enum-type name="ScrollBarPolicy"/>
- <enum-type name="ScrollPhase" since="5.2"/>
- <enum-type name="ShortcutContext"/>
- <enum-type name="SizeHint"/>
- <enum-type name="SizeMode"/>
- <enum-type name="SortOrder"/>
- <enum-type name="SplitBehaviorFlags" flags="SplitBehavior" since="5.14"/>
- <enum-type name="TabFocusBehavior" since="5.5"/>
- <enum-type name="TextElideMode"/>
- <enum-type name="TextFlag"/>
- <enum-type name="TextFormat"/>
- <enum-type name="TextInteractionFlag" flags="TextInteractionFlags"/>
- <enum-type name="TileRule" since="4.6"/>
- <enum-type name="TimerType" since="5.0"/>
- <enum-type name="TimeSpec"/>
- <enum-type name="ToolBarArea" flags="ToolBarAreas"/>
- <enum-type name="ToolBarAreaSizes"/>
- <enum-type name="ToolButtonStyle"/>
- <enum-type name="TouchPointState" flags="TouchPointStates" since="4.6"/>
- <enum-type name="TransformationMode"/>
- <enum-type name="UIEffect"/>
- <enum-type name="WhiteSpaceMode"/>
- <enum-type name="WidgetAttribute"/>
- <enum-type name="WindowFrameSection"/>
- <enum-type name="WindowModality"/>
- <enum-type name="WindowState" flags="WindowStates"/>
- <enum-type name="WindowType" flags="WindowFlags"/>
- <enum-type name="CursorMoveStyle" since="4.8" revision="4800"/>
-
- </namespace-type>
-
- <add-function signature="qAbs(double)" return-type="double">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qt-qabs"/>
- </add-function>
-
- <inject-code class="native" position="beginning" file="../glue/qtcore.cpp" snippet="qt-postroutine"/>
- <add-function signature="qAddPostRoutine(PyObject*)">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qt-addpostroutine"/>
- </add-function>
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="qt-qaddpostroutine"/>
-
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="qt-version"/>
-
- <!-- WARNING: There is an issue when adding this code to an external file -->
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="qt-module-shutdown"/>
- <add-function signature="__moduleShutdown()">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="moduleshutdown"/>
- </add-function>
-
- <!--signal/slot-->
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="qt-pysideinit"/>
-
- <inject-code class="native" position="beginning" file="../glue/qtcore.cpp" snippet="qt-messagehandler"/>
- <add-function signature="qInstallMessageHandler(PyObject)" return-type="PyObject">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qt-installmessagehandler"/>
- </add-function>
-
- <value-type name="QDeadlineTimer" since="5.8">
- <enum-type name="ForeverConstant"/>
- </value-type>
-
- <value-type name="QElapsedTimer" since="4.7">
- <enum-type name="ClockType" since="4.7"/>
- </value-type>
-
- <object-type name="QAbstractTableModel" polymorphic-id-expression="qobject_cast&lt;QAbstractTableModel*&gt;(%1)">
- <extra-includes>
- <include file-name="QStringList" location="global"/>
- <include file-name="QSize" location="global"/>
- </extra-includes>
- </object-type>
- <value-type name="QLine" hash-function="PySide::hash">
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%i, %i, %i, %i"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.x1(), %CPPSELF.y1(), %CPPSELF.x2(), %CPPSELF.y2()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="iiii"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.x1(), %CPPSELF.y1(), %CPPSELF.x2(), %CPPSELF.y2()"/>
- </insert-template>
- </inject-code>
- </add-function>
- <inject-code class="native" position="beginning" file="../glue/qtcore.cpp" snippet="qline-hash"/>
-
- <add-function signature="toTuple" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="to_tuple">
- <replace from="%TT_FORMAT" to="iiii"/>
- <replace from="%TT_ARGS" to="%CPPSELF.x1(), %CPPSELF.y1(), %CPPSELF.x2(), %CPPSELF.y2()"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
- <value-type name="QLineF">
- <enum-type name="IntersectType"/>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%f, %f, %f, %f"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.x1(), %CPPSELF.y1(), %CPPSELF.x2(), %CPPSELF.y2()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="dddd"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.x1(), %CPPSELF.y1(), %CPPSELF.x2(), %CPPSELF.y2()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="toTuple" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="to_tuple">
- <replace from="%TT_FORMAT" to="dddd"/>
- <replace from="%TT_ARGS" to="%CPPSELF.x1(), %CPPSELF.y1(), %CPPSELF.x2(), %CPPSELF.y2()"/>
- </insert-template>
- </inject-code>
- </add-function>
- <modify-function signature="intersect(QLineF,QPointF*)const">
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(intersectType, intersectionPoint)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qlinef-intersect"/>
- </modify-function>
- </value-type>
- <object-type name="QResource">
- <enum-type name="Compression" since="5.13"/>
- <modify-function signature="data()const">
- <inject-documentation format="target">
- Returns a read only buffer object pointing to the segment of data that this resource represents. If the resource is compressed the data returns is compressed and qUncompress() must be used to access the data. If the resource is a directory None is returned.
- </inject-documentation>
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <inject-code file="../glue/qtcore.cpp" snippet="qresource-data"/>
- </modify-function>
-
- <modify-function signature="unregisterResource(const uchar*,const QString&amp;)" rename="unregisterResourceData">
- <modify-argument index="1">
- <replace-type modified-type="PyBuffer"/>
- </modify-argument>
- <inject-code file="../glue/qtcore.cpp" snippet="qresource-registerResource"/>
- </modify-function>
- <modify-function signature="registerResource(const uchar*,const QString&amp;)" rename="registerResourceData">
- <modify-argument index="1">
- <replace-type modified-type="PyBuffer"/>
- </modify-argument>
- <inject-code file="../glue/qtcore.cpp" snippet="qresource-registerResource"/>
- </modify-function>
- </object-type>
-
- <object-type name="QBasicTimer"/>
- <value-type name="QByteArrayMatcher"/>
- <value-type name="QCalendar" since="5.14">
- <value-type name="YearMonthDay"/>
- <enum-type name="System"/>
- </value-type>
- <value-type name="QDate" hash-function="PySide::hash" >
- <inject-code class="native" position="beginning">
- <insert-template name="pydatetime_importandcheck_function">
- <replace from="$DATETIMETYPE" to="PyDate"/>
- </insert-template>
- </inject-code>
- <conversion-rule>
- <target-to-native>
- <add-conversion type="Py_None" file="../glue/qtcore.cpp" snippet="conversion-pynone"/>
- <add-conversion type="PyDate" check="PyDateTime_ImportAndCheck(%in)" file="../glue/qtcore.cpp" snippet="conversion-qdate-pydate"/>
- </target-to-native>
- </conversion-rule>
- <extra-includes>
- <include file-name="datetime.h" location="global"/>
- </extra-includes>
- <enum-type name="MonthNameType"/>
- <add-function signature="__repr__" return-type="PyObject">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%i, %i, %i"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.year(), %CPPSELF.month(), %CPPSELF.day()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="iii"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.year(), %CPPSELF.month(), %CPPSELF.day()"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="toPython()" return-type="PyObject">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qdate-topython"/>
- </add-function>
- <modify-function signature="getDate(int*,int*,int*)" >
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(year, month, day)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qdate-getdate"/>
- </modify-function>
- <modify-function signature="weekNumber(int*)const" >
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(week, yearNumber)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qdate-weeknumber"/>
- </modify-function>
- </value-type>
- <value-type name="QDateTime" hash-function="PySide::hash">
- <enum-type name="YearRange" since="5.14"/>
- <inject-code class="native" position="beginning">
- <insert-template name="pydatetime_importandcheck_function">
- <replace from="$DATETIMETYPE" to="PyDateTime"/>
- </insert-template>
- </inject-code>
- <conversion-rule>
- <target-to-native>
- <add-conversion type="Py_None" file="../glue/qtcore.cpp" snippet="conversion-pynone"/>
- <add-conversion type="PyDateTime" check="PyDateTime_ImportAndCheck(%in)" file="../glue/qtcore.cpp" snippet="conversion-qdatetime-pydatetime"/>
- </target-to-native>
- </conversion-rule>
- <extra-includes>
- <include file-name="datetime.h" location="global"/>
- </extra-includes>
- <!-- Somewhat internal constructor used to pickle QDateTime -->
- <add-function signature="QDateTime(int,int,int,int,int,int,int,int)">
- <modify-argument index="8">
- <replace-default-expression with="Qt::LocalTime"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qdatetime-1"/>
- </add-function>
- <add-function signature="QDateTime(int,int,int,int,int,int)">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qdatetime-2"/>
- </add-function>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%i, %i, %i, %i, %i, %i, %i, %i"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.date().year(), %CPPSELF.date().month(), %CPPSELF.date().day(), %CPPSELF.time().hour(), %CPPSELF.time().minute(), %CPPSELF.time().second(), %CPPSELF.time().msec(), (int)%CPPSELF.timeSpec()"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="iiiiiiii"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.date().year(), %CPPSELF.date().month(), %CPPSELF.date().day(), %CPPSELF.time().hour(), %CPPSELF.time().minute(), %CPPSELF.time().second(), %CPPSELF.time().msec(), (int)%CPPSELF.timeSpec()"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="toPython()" return-type="PyObject">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qdatetime-topython"/>
- </add-function>
- </value-type>
- <value-type name="QDir">
- <enum-type name="Filter" flags="Filters"/>
- <enum-type name="SortFlag" flags="SortFlags"/>
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="s"/>
- <replace from="%REDUCE_ARGS" to="qPrintable(%CPPSELF.path())"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
-
- <value-type name="QPoint" hash-function="PySide::hash">
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%i, %i"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.x(), %CPPSELF.y()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="ii"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.x(), %CPPSELF.y()"/>
- </insert-template>
- </inject-code>
- </add-function>
- <inject-code class="native" position="beginning" file="../glue/qtcore.cpp" snippet="qpoint"/>
-
- <add-function signature="toTuple" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="to_tuple">
- <replace from="%TT_FORMAT" to="ii"/>
- <replace from="%TT_ARGS" to="%CPPSELF.x(), %CPPSELF.y()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <!--### Functions removed because they return references to Python imutable objects -->
- <modify-function signature="rx()" remove="all"/>
- <modify-function signature="ry()" remove="all"/>
- <!--### -->
- </value-type>
- <value-type name="QPointF">
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%f, %f"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.x(), %CPPSELF.y()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="dd"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.x(), %CPPSELF.y()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="toTuple" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="to_tuple">
- <replace from="%TT_FORMAT" to="dd"/>
- <replace from="%TT_ARGS" to="%CPPSELF.x(), %CPPSELF.y()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <!--### Functions removed because they return references to Python imutable objects -->
- <modify-function signature="rx()" remove="all"/>
- <modify-function signature="ry()" remove="all"/>
- <!--### -->
- </value-type>
- <value-type name="QRect" hash-function="PySide::hash">
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%i, %i, %i, %i"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.x(), %CPPSELF.y(), %CPPSELF.width(), %CPPSELF.height()"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="iiii"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.x(), %CPPSELF.y(), %CPPSELF.width(), %CPPSELF.height()"/>
- </insert-template>
- </inject-code>
- </add-function>
- <inject-code class="native" position="beginning" file="../glue/qtcore.cpp" snippet="qrect"/>
-
- <modify-function signature="getCoords(int*,int*,int*,int*)const">
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument />
- </modify-argument>
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <modify-argument index="4">
- <remove-argument />
- </modify-argument>
- <inject-code class="target">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="int"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="getRect(int*,int*,int*,int*)const">
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument />
- </modify-argument>
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <modify-argument index="4">
- <remove-argument />
- </modify-argument>
- <inject-code class="target">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="int"/>
- </insert-template>
- </inject-code>
- </modify-function>
- </value-type>
- <value-type name="QRectF">
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%f, %f, %f, %f"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.x(), %CPPSELF.y(), %CPPSELF.width(), %CPPSELF.height()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <!--
- FIXME These functions return qreal. Will convert to double (format
- string) mess things up in other architectures?
- -->
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="dddd"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.x(), %CPPSELF.y(), %CPPSELF.width(), %CPPSELF.height()"/>
- </insert-template>
- </inject-code>
- </add-function>
- <modify-function signature="getCoords(qreal*,qreal*,qreal*,qreal*)const">
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument />
- </modify-argument>
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <modify-argument index="4">
- <remove-argument />
- </modify-argument>
- <inject-code class="target">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="qreal"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="getRect(qreal*,qreal*,qreal*,qreal*)const">
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument />
- </modify-argument>
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <modify-argument index="4">
- <remove-argument />
- </modify-argument>
- <inject-code class="target">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="qreal"/>
- </insert-template>
- </inject-code>
- </modify-function>
- </value-type>
- <value-type name="QSize" hash-function="PySide::hash">
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%i, %i"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.width(), %CPPSELF.height()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="ii"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.width(), %CPPSELF.height()"/>
- </insert-template>
- </inject-code>
- </add-function>
- <inject-code class="native" position="beginning" file="../glue/qtcore.cpp" snippet="qsize"/>
-
- <add-function signature="toTuple" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="to_tuple">
- <replace from="%TT_FORMAT" to="ii"/>
- <replace from="%TT_ARGS" to="%CPPSELF.width(), %CPPSELF.height()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <!--### Functions removed because they return references to Python imutable objects -->
- <modify-function signature="rheight()" remove="all"/>
- <modify-function signature="rwidth()" remove="all"/>
- <!--### -->
- </value-type>
- <value-type name="QSizeF">
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%f, %f"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.width(), %CPPSELF.height()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="dd"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.width(), %CPPSELF.height()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="toTuple" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="to_tuple">
- <replace from="%TT_FORMAT" to="dd"/>
- <replace from="%TT_ARGS" to="%CPPSELF.width(), %CPPSELF.height()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <!--### Functions removed because they return references to Python imutable objects -->
- <modify-function signature="rheight()" remove="all"/>
- <modify-function signature="rwidth()" remove="all"/>
- <!--### -->
- </value-type>
-
- <value-type name="QTime" hash-function="PySide::hash">
- <inject-code class="native" position="beginning">
- <insert-template name="pydatetime_importandcheck_function">
- <replace from="$DATETIMETYPE" to="PyTime"/>
- </insert-template>
- </inject-code>
- <conversion-rule>
- <target-to-native>
- <add-conversion type="Py_None" file="../glue/qtcore.cpp" snippet="conversion-pynone"/>
- <add-conversion type="PyTime" check="PyDateTime_ImportAndCheck(%in)" file="../glue/qtcore.cpp" snippet="conversion-qtime-pytime"/>
- </target-to-native>
- </conversion-rule>
-
- <extra-includes>
- <include file-name="datetime.h" location="global"/>
- </extra-includes>
-
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%i, %i, %i, %i"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.hour(), %CPPSELF.minute(), %CPPSELF.second(), %CPPSELF.msec()"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="iiii"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.hour(), %CPPSELF.minute(), %CPPSELF.second(), %CPPSELF.msec()"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="toPython()" return-type="PyObject">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qtime-topython"/>
- </add-function>
- </value-type>
- <value-type name="QPersistentModelIndex" hash-function="qHash">
- <modify-function signature="internalPointer()const">
- <inject-code class="target" position="beginning">
- <insert-template name="return_internal_pointer" />
- </inject-code>
- </modify-function>
- <modify-function signature="operator const QModelIndex&amp;()const">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </value-type>
-
- <value-type name="QTimeZone">
- <enum-type name="TimeType"/>
- <enum-type name="NameType"/>
- <value-type name="OffsetData"/>
- </value-type>
-
- <value-type name="QUuid">
- <enum-type name="StringFormat" since="5.11"/>
- <enum-type name="Variant"/>
- <enum-type name="Version"/>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="'%s'"/>
- <replace from="%REPR_ARGS" to="qPrintable(%CPPSELF.toString())"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="s"/>
- <replace from="%REDUCE_ARGS" to="qPrintable(%CPPSELF.toString())"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
-
- <value-type name="QMimeType" since="5.0"/>
- <object-type name="QMimeDatabase" since="5.0">
- <enum-type name="MatchMode"/>
- </object-type>
-
- <value-type name="QLocale">
- <enum-type name="Country"/>
- <enum-type name="DataSizeFormat" flags="DataSizeFormats" since="5.10"/>
- <enum-type name="FloatingPointPrecisionOption" since="5.7"/>
- <enum-type name="FormatType"/>
- <enum-type name="Language"/>
- <enum-type name="MeasurementSystem"/>
- <enum-type name="NumberOption" flags="NumberOptions"/>
- <enum-type name="Script" since="4.8" revision="4800"/>
- <enum-type name="CurrencySymbolFormat" since="4.8" revision="4800"/>
- <enum-type name="QuotationStyle" since="4.8" revision="4800"/>
- <!--### All those C++ number types have the same representation in Python -->
- <modify-function signature="toString(qulonglong)const" remove="all"/>
- <modify-function signature="toString(ushort)const" remove="all"/>
- <modify-function signature="toString(unsigned int)const" remove="all"/>
- <!--### -->
- <extra-includes>
- <include file-name="QDate" location="global"/>
- </extra-includes>
- <modify-function signature="toTime(QString,QLocale::FormatType)const">
- <modify-argument index="2">
- <rename to="format"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="toDate(QString,QLocale::FormatType)const">
- <modify-argument index="2">
- <rename to="format"/>
- </modify-argument>
- </modify-function>
- <!-- Qt5: ignore the new QStringRef versions, int arg is gone -->
- <modify-function signature="toUInt(QStringRef,bool*)const" remove="all"/>
- <modify-function signature="toUInt(QString,bool*)const">
- <modify-argument index="2">
- <remove-argument />
- <remove-default-expression />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(int, bool ok)"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- <!-- Qt5: ignore the new QStringRef versions, int arg is gone -->
- <modify-function signature="toULongLong(QStringRef,bool*)const" remove="all"/>
- <modify-function signature="toULongLong(QString,bool*)const">
- <modify-argument index="2">
- <remove-argument />
- <remove-default-expression />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(int, bool ok)"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- <!-- Qt5: ignore the new QStringRef versions -->
- <modify-function signature="toDouble(QStringRef,bool*)const" remove="all"/>
- <modify-function signature="toDouble(QString,bool*)const">
- <modify-argument index="2">
- <remove-argument />
- <remove-default-expression />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(float, bool ok)"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- <!-- Qt5: ignore the new QStringRef versions -->
- <modify-function signature="toFloat(QStringRef,bool*)const" remove="all"/>
- <modify-function signature="toFloat(QString,bool*)const">
- <modify-argument index="2">
- <remove-argument />
- <remove-default-expression />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(float, bool ok)"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- <!-- Qt5: ignore the new QStringRef versions, int arg is gone -->
- <modify-function signature="toInt(QStringRef,bool*)const" remove="all"/>
- <modify-function signature="toInt(QString,bool*)const">
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(int, bool ok)"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- <!-- Qt5: ignore the new QStringRef versions, int arg is gone -->
- <modify-function signature="toLongLong(QStringRef,bool*)const" remove="all"/>
- <modify-function signature="toLongLong(QString,bool*)const">
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(int, bool ok)"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- <!-- Qt5: ignore the new QStringRef versions, int arg is gone -->
- <modify-function signature="toShort(QStringRef,bool*)const" remove="all"/>
- <modify-function signature="toShort(QString,bool*)const">
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(int, bool ok)"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- <!-- Qt5: ignore the new QStringRef versions, int arg is gone -->
- <modify-function signature="toUShort(QStringRef,bool*)const" remove="all"/>
- <modify-function signature="toUShort(QString,bool*)const">
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(int, bool ok)"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- </value-type>
- <value-type name="QBitArray" hash-function="qHash" >
- <add-function signature="__len__">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qbitarray-len"/>
- </add-function>
- <add-function signature="__getitem__">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qbitarray-getitem"/>
- </add-function>
- <add-function signature="__setitem__">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qbitarray-setitem"/>
- </add-function>
- </value-type>
- <object-type name="QLockFile">
- <enum-type name="LockError"/>
- <modify-function signature="isLocked()const" allow-thread="yes"/>
- <modify-function signature="lock()" allow-thread="yes"/>
- <modify-function signature="removeStaleLockFile()" allow-thread="yes"/>
- <modify-function signature="tryLock(int)" allow-thread="yes"/>
- <modify-function signature="unlock()" allow-thread="yes"/>
- </object-type>
- <object-type name="QMessageAuthenticationCode"/>
- <object-type name="QSignalBlocker"/>
- <value-type name="QStorageInfo"/>
- <!-- QReadWriteLock does not have a copy ctor! -->
- <object-type name="QReadWriteLock">
- <enum-type name="RecursionMode"/>
- <modify-function signature="lockForRead()" allow-thread="yes"/>
- <modify-function signature="tryLockForRead(int)" allow-thread="yes"/>
- <modify-function signature="lockForWrite()" allow-thread="yes"/>
- <modify-function signature="tryLockForWrite(int)" allow-thread="yes"/>
- </object-type>
- <object-type name="QReadLocker">
- <modify-function signature="QReadLocker(QReadWriteLock*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="relock()" allow-thread="yes"/>
- <add-function signature="__enter__()"/>
- <add-function signature="__exit__(PyObject*,PyObject*,PyObject*)">
- <inject-code file="../glue/qtcore.cpp" snippet="unlock"/>
- </add-function>
- </object-type>
- <object-type name="QWriteLocker">
- <modify-function signature="QWriteLocker(QReadWriteLock*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="relock()" allow-thread="yes"/>
- <add-function signature="__enter__()"/>
- <add-function signature="__exit__(PyObject*,PyObject*,PyObject*)">
- <inject-code file="../glue/qtcore.cpp" snippet="unlock"/>
- </add-function>
- </object-type>
- <object-type name="QDirIterator">
- <enum-type name="IteratorFlag" flags="IteratorFlags"/>
- </object-type>
- <object-type name="QThread">
- <enum-type name="Priority"/>
- <modify-function signature="currentThreadId()" remove="all"/>
- <modify-function signature="run()" allow-thread="yes"/>
- <modify-function signature="exec()" rename="exec_" allow-thread="yes"/>
- <modify-function signature="msleep(unsigned long)" allow-thread="yes"/>
- <modify-function signature="sleep(unsigned long)" allow-thread="yes"/>
- <modify-function signature="usleep(unsigned long)" allow-thread="yes"/>
- <modify-function signature="wait(unsigned long)" allow-thread="yes"/>
- <modify-function signature="yieldCurrentThread()" allow-thread="yes"/>
- <modify-function signature="start(QThread::Priority)" allow-thread="yes">
- <modify-argument index="1">
- <rename to="priority"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="exit(int)" allow-thread="yes"/>
- </object-type>
-
- <object-type name="QAbstractItemModel">
- <enum-type name="CheckIndexOption" flags="CheckIndexOptions" since="5.11"/>
- <enum-type name="LayoutChangeHint"/>
- <!-- This function was replaced by a added function -->
- <modify-function signature="createIndex(int,int,void*)const" remove="all"/>
- <!-- This function is the same as createIndex(int, int, int)const -->
- <modify-function signature="createIndex(int,int,quintptr)const">
- <modify-argument index="3">
- <replace-default-expression with="0"/>
- </modify-argument>
- </modify-function>
- <add-function signature="createIndex(int,int,PyObject*)const" return-type="QModelIndex">
- <modify-argument index="1">
- <rename to="row"/>
- </modify-argument>
- <modify-argument index="2">
- <rename to="column"/>
- </modify-argument>
- <modify-argument index="3">
- <rename to="ptr"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qabstractitemmodel-createindex"/>
- <inject-documentation mode="append" format="target">
- Creates a model index for the given row and column with the internal pointer ptr.
- When using a QSortFilterProxyModel, its indexes have their own internal pointer.
- It is not advisable to access this internal pointer outside of the model.
- Use the data() function instead.
- This function provides a consistent interface that model subclasses must use to create model indexes.
-
- .. warning:: Because of some Qt/Python itegration rules, the ptr argument do not get the reference
- incremented during the QModelIndex life time. So it is necessary to keep the object used
- on ptr argument alive during the whole process.
- Do not destroy the object if you are not sure about that.
- </inject-documentation>
- </add-function>
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="qabstractitemmodel"/>
- <modify-function signature="mimeData(QModelIndexList)const">
- <modify-argument index="return">
- <define-ownership class="native" owner="c++"/>
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="data(const QModelIndex&amp;,int)const">
- <modify-argument index="return">
- <define-ownership class="native" owner="c++"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="dataChanged(const QModelIndex&amp;,const QModelIndex&amp;,const QVector&lt;int&gt;&amp;)" allow-thread="yes"/>
- <modify-function signature="layoutAboutToBeChanged(const QList&lt;QPersistentModelIndex&gt;&amp;,QAbstractItemModel::LayoutChangeHint)" allow-thread="yes"/>
- <modify-function signature="layoutChanged(const QList&lt;QPersistentModelIndex&gt;&amp;,QAbstractItemModel::LayoutChangeHint)" allow-thread="yes"/>
- <modify-function signature="beginResetModel()" allow-thread="yes"/>
- <modify-function signature="endResetModel()" allow-thread="yes"/>
- </object-type>
- <value-type name="QItemSelection">
- <include file-name="QList" location="global"/>
- </value-type>
-
- <object-type name="QItemSelectionModel">
- <extra-includes>
- <include file-name="QItemSelection" location="global"/>
- </extra-includes>
- <enum-type name="SelectionFlag" flags="SelectionFlags"/>
- </object-type>
-
- <value-type name="QItemSelectionRange">
- </value-type>
- <object-type name="QAbstractProxyModel" polymorphic-id-expression="qobject_cast&lt;QAbstractProxyModel*&gt;(%1)">
- <extra-includes>
- <include file-name="QItemSelection" location="global"/>
- <include file-name="QStringList" location="global"/>
- <include file-name="QSize" location="global"/>
- </extra-includes>
- </object-type>
- <object-type name="QConcatenateTablesProxyModel" since="5.13"/>
- <object-type name="QSortFilterProxyModel">
- <extra-includes>
- <include file-name="QItemSelection" location="global"/>
- <include file-name="QStringList" location="global"/>
- <include file-name="QSize" location="global"/>
- </extra-includes>
- <modify-function signature="setSourceModel(QAbstractItemModel*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- <!--### Obsolete in 4.3-->
- <modify-function signature="clear()" remove="all"/>
- <modify-function signature="filterChanged()" remove="all"/>
- <!--### End of obsolete section -->
- </object-type>
- <object-type name="QIdentityProxyModel"/>
- <object-type name="QTransposeProxyModel" since="5.13"/>
- <!-- QObject is created manually -->
- <object-type name="QObject">
- <extra-includes>
- <include file-name="QThread" location="global"/>
- <include file-name="QCoreApplication" location="global"/>
- <include file-name="signalmanager.h" location="local"/>
- </extra-includes>
- <modify-function signature="metaObject()const">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-metaobject"/>
- <modify-argument index="return">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="deleteLater()">
- <modify-argument index="this">
- <define-ownership owner="c++"/>
- </modify-argument>
- </modify-function>
- <!-- Invalidate-after-use stuff -->
- <modify-function signature="childEvent(QChildEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="customEvent(QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="event(QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="eventFilter(QObject*,QEvent*)">
- <modify-argument index="2" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="timerEvent(QTimerEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <!-- End of Invalidate-after-use fix -->
- <modify-function signature="parent()const">
- <modify-argument index="this">
- <parent index="return" action="add"/>
- </modify-argument>
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setParent(QObject*)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="connect(const QObject*,const char*,const char*,Qt::ConnectionType)const">
- <modify-argument index="4">
- <rename to="type"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-connect-1"/>
- </modify-function>
- <!-- static version -->
- <modify-function signature="connect(const QObject*,QMetaMethod,const QObject*,QMetaMethod,Qt::ConnectionType)">
- <modify-argument index="5">
- <rename to="type"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-connect-2"/>
- </modify-function>
- <modify-function signature="connect(const QObject*,const char*,const QObject*,const char*,Qt::ConnectionType)">
- <modify-argument index="5">
- <rename to="type"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-connect-3"/>
- </modify-function>
- <inject-code class="native" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-connect"/>
- <add-function signature="connect(const QObject*,const char*,PyCallable*,Qt::ConnectionType)" return-type="bool" static="yes">
- <modify-argument index="4">
- <rename to="type"/>
- <replace-default-expression with="Qt::AutoConnection"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-connect-4"/>
- </add-function>
- <!-- static version -->
- <add-function signature="connect(const char*,PyCallable*,Qt::ConnectionType)" return-type="bool">
- <modify-argument index="3">
- <rename to="type"/>
- <replace-default-expression with="Qt::AutoConnection"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-connect-5"/>
- </add-function>
- <add-function signature="connect(const char*,const QObject*,const char*,Qt::ConnectionType)" return-type="bool">
- <modify-argument index="4">
- <rename to="type"/>
- <replace-default-expression with="Qt::AutoConnection"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-connect-6"/>
- </add-function>
-
- <add-function signature="emit(const char*,...)" return-type="bool">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-emit"/>
- </add-function>
- <add-function signature="disconnect(const char*,PyCallable*)" return-type="bool">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-disconnect-1"/>
- </add-function>
- <add-function signature="disconnect(const QObject*,const char*,PyCallable*)" return-type="bool" static="yes">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-disconnect-2"/>
- </add-function>
-
-
- <inject-code class="native" file="../glue/qtcore.cpp" snippet="qobject-findchild-1"/>
- <add-function signature="findChild(PyTypeObject*,const QString&amp;)" return-type="PyObject*">
- <inject-documentation format="target" mode="append">
- To find the child of a certain QObject, the first argument of this function should be the child's type, and the second the name of the child:
-
- ::
-
- ...
- parent = QWidget()
- ...
- # The first argument must be the child type
- child1 = parent.findChild(QPushButton, "child_button")
- child2 = parent.findChild(QWidget, "child_widget")
-
- </inject-documentation>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-findchild-2"/>
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- <modify-argument index="2">
- <replace-default-expression with="QString()"/>
- </modify-argument>
- </add-function>
- <add-function signature="findChildren(PyTypeObject*,const QString&amp;)" return-type="PySequence*" >
- <inject-documentation format="target" mode="append">
- Like the method *findChild*, the first parameter should be the child's type.
- </inject-documentation>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-findchildren-1"/>
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- <modify-argument index="2">
- <replace-default-expression with="QString()"/>
- </modify-argument>
- </add-function>
- <add-function signature="findChildren(PyTypeObject*,const QRegExp&amp;)" return-type="PySequence*" >
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-findchildren-2"/>
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </add-function>
-
- <add-function signature="tr(const char*,const char*,int)" return-type="QString">
- <modify-argument index="2">
- <replace-default-expression with="0"/>
- </modify-argument>
- <modify-argument index="3">
- <replace-default-expression with="-1"/>
- </modify-argument>
-
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-tr"/>
- </add-function>
-
- <modify-function signature="receivers(const char*)const">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qobject-receivers"/>
- </modify-function>
-
- <modify-function signature="destroyed(QObject*)" allow-thread="yes">
- <modify-argument index="1">
- <rename to="object"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="sender()const" allow-thread="yes">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- </modify-function>
-
- <!-- This is not supported due the lack of information durring the call with no arguments, this can cause a memory leak -->
- <modify-function signature="disconnect(const char*,const QObject*,const char*)const">
- <modify-argument index="1">
- <remove-default-expression />
- </modify-argument>
- <modify-argument index="2">
- <remove-default-expression />
- </modify-argument>
- <modify-argument index="3">
- <remove-default-expression />
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QAbstractListModel" polymorphic-id-expression="qobject_cast&lt;QAbstractListModel*&gt;(%1)">
- <extra-includes>
- <include file-name="QStringList" location="global"/>
- <include file-name="QSize" location="global"/>
- </extra-includes>
- </object-type>
- <value-type name="QUrlQuery" since="5.0"/>
- <value-type name="QUrl" hash-function="PySide::hash">
- <!-- Qt5: lots of changes -->
- <enum-type name="ComponentFormattingOption" flags="ComponentFormattingOptions,FormattingOptions"/>
- <!-- note: above duplication of attribute is not by default XML compliant! -->
- <enum-type name="UrlFormattingOption"/>
- <enum-type name="UserInputResolutionOption" flags="UserInputResolutionOptions"/>
- <enum-type name="ParsingMode"/>
- <extra-includes>
- <include file-name="QStringList" location="global"/>
- </extra-includes>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="'%s'"/>
- <replace from="%REPR_ARGS" to="qPrintable(%CPPSELF.toString())"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="s"/>
- <replace from="%REDUCE_ARGS" to="qPrintable(%CPPSELF.toString())"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
- <value-type name="QRegExp">
- <enum-type name="CaretMode"/>
- <enum-type name="PatternSyntax"/>
- <extra-includes>
- <include file-name="QStringList" location="global"/>
- </extra-includes>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="'%s', %i, %i"/>
- <replace from="%REPR_ARGS" to="qPrintable(%CPPSELF.pattern()), (int)%CPPSELF.caseSensitivity(), (int)%CPPSELF.patternSyntax()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="sii"/>
- <replace from="%REDUCE_ARGS" to="qPrintable(%CPPSELF.pattern()), (int)%CPPSELF.caseSensitivity(), (int)%CPPSELF.patternSyntax()"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="replace(QString,QString)" return-type="QString">
- <modify-argument index="1">
- <rename to="sourceString"/>
- </modify-argument>
- <modify-argument index="2">
- <rename to="after"/>
- </modify-argument>
- <inject-documentation format="target" mode="append">
- Replaces every occurrence of the regular expression in *sourceString* with *after*.
- Returns a new Python string with the modified contents. For example:
-
- ::
-
- s = "Banana"
- re = QRegExp("a[mn]")
- s = re.replace(s, "ox")
- # s == "Boxoxa"
-
-
- For regular expressions containing capturing parentheses, occurrences of \1, \2, ..., in *after*
- are replaced with rx.cap(1), cap(2), ...
-
- ::
-
- t = "A &lt;i>bon mot&lt;/i>."
- re = QRegExp("&lt;i>([^&lt;]*)&lt;/i>")
- t = re.replace(t, "\\emph{\\1}")
- # t == "A \\emph{bon mot}."
-
- </inject-documentation>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qregexp-replace"/>
- </add-function>
- </value-type>
-
- <value-type name="QRegularExpression">
- <enum-type name="MatchOption" flags="MatchOptions"/>
- <enum-type name="MatchType"/>
- <enum-type name="PatternOption" flags="PatternOptions"/>
- </value-type>
- <value-type name="QRegularExpressionMatch"/>
- <value-type name="QRegularExpressionMatchIterator"/>
-
- <value-type name="QFileInfo">
- <extra-includes>
- <include file-name="QDateTime" location="global"/>
- <include file-name="QDir" location="global"/>
- </extra-includes>
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="s"/>
- <replace from="%REDUCE_ARGS" to="qPrintable(%CPPSELF.filePath())"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
- <value-type name="QByteArray" hash-function="qHash">
- <enum-type name="Base64Option" flags="Base64Options" since="5.2"/>
- <conversion-rule>
- <target-to-native>
- <add-conversion type="Py_None" file="../glue/qtcore.cpp" snippet="conversion-pynone"/>
- <add-conversion type="PyBytes" file="../glue/qtcore.cpp" snippet="conversion-qbytearray-pybytes"/>
- <add-conversion type="PyByteArray" file="../glue/qtcore.cpp" snippet="conversion-qbytearray-pybytearray"/>
- <add-conversion type="PyString" check="Shiboken::String::check(%in) &amp;&amp; !PyUnicode_Check(%in)" file="../glue/qtcore.cpp" snippet="conversion-qbytearray-pystring"/>
- </target-to-native>
- </conversion-rule>
-
- <extra-includes>
- <!-- qt5: this is a pre-defined macro <include file-name="QNoImplicitBoolCast" location="global"/> -->
- </extra-includes>
-
- <!-- ### These overloads must be removed accept strings with \x00 in their contents -->
- <modify-function signature="append(const char*,int)" remove="all"/>
- <modify-function signature="append(const char*)" remove="all"/>
- <modify-function signature="append(QString)" remove="all"/>
- <modify-function signature="contains(const char*)const" remove="all"/>
- <modify-function signature="count(const char*)const" remove="all"/>
- <modify-function signature="endsWith(const char*)const" remove="all"/>
- <modify-function signature="indexOf(const char*,int)const" remove="all"/>
- <modify-function signature="indexOf(char,int)const" remove="all"/>
- <modify-function signature="indexOf(QString,int)const" remove="all"/>
- <modify-function signature="insert(int,const char*)" remove="all"/>
- <modify-function signature="insert(int,char)" remove="all"/>
- <modify-function signature="insert(int,const char*,int)" since="4.6" remove="all"/>
- <modify-function signature="insert(int,QString)" remove="all"/>
- <modify-function signature="lastIndexOf(const char*,int)const" remove="all"/>
- <modify-function signature="lastIndexOf(QString,int)const" remove="all"/>
- <modify-function signature="lastIndexOf(char,int)const" remove="all"/>
- <modify-function signature="prepend(const char*)" remove="all"/>
- <modify-function signature="prepend(const char*,int)" since="4.6" remove="all"/>
- <modify-function signature="replace(QByteArray,const char*)" remove="all"/>
- <modify-function signature="replace(const char*,int,const char*,int)" remove="all"/>
- <modify-function signature="replace(QString,const char*)" remove="all"/>
- <modify-function signature="replace(const char*,QByteArray)" remove="all"/>
- <modify-function signature="replace(const char*,const char*)" remove="all"/>
- <modify-function signature="replace(int,int,const char*)" remove="all"/>
- <modify-function signature="replace(int,int,const char*,int)" since="4.6" remove="all"/>
- <modify-function signature="replace(char,const char*)" remove="all"/>
- <modify-function signature="replace(char,QString)" remove="all"/>
- <modify-function signature="startsWith(const char*)const" remove="all"/>
- <modify-function signature="operator==(QString)const" remove="all"/>
- <modify-function signature="operator==(const char*,QByteArray)" remove="all"/>
- <modify-function signature="operator==(QByteArray,const char*)" remove="all"/>
- <modify-function signature="operator>(QString)const" remove="all"/>
- <modify-function signature="operator>(const char*,QByteArray)" remove="all"/>
- <modify-function signature="operator>(QByteArray,const char*)" remove="all"/>
- <modify-function signature="operator>=(QString)const" remove="all"/>
- <modify-function signature="operator>=(const char*,QByteArray)" remove="all"/>
- <modify-function signature="operator>=(QByteArray,const char*)" remove="all"/>
- <modify-function signature="operator&lt;(QString)const" remove="all"/>
- <modify-function signature="operator&lt;(const char*,QByteArray)" remove="all"/>
- <modify-function signature="operator&lt;=(QString)const" remove="all"/>
- <modify-function signature="operator&lt;=(const char*,QByteArray)" remove="all"/>
- <modify-function signature="operator&lt;=(QByteArray,const char*)" remove="all"/>
- <modify-function signature="operator!=(QString)const" remove="all"/>
- <modify-function signature="operator!=(const char*,QByteArray)" remove="all"/>
- <modify-function signature="operator!=(QByteArray,const char*)" remove="all"/>
- <modify-function signature="operator+=(QString)" remove="all"/>
- <modify-function signature="operator+=(const char*)" remove="all"/>
- <modify-function signature="operator+(QByteArray,const char*)" remove="all"/>
- <modify-function signature="operator+(const char*,QByteArray)" remove="all"/>
- <modify-function signature="operator+(QByteArray,const char*)" remove="all"/>
- <modify-function signature="operator+(QString,QByteArray)" remove="all"/>
- <modify-function signature="operator+(QByteArray,QString)" remove="all"/>
- <add-function signature="operator+(PyBytes,QByteArray)">
- <inject-code file="../glue/qtcore.cpp" snippet="qbytearray-operatorplus-1"/>
- </add-function>
- <add-function signature="operator+(PyByteArray, QByteArray)" return-type="QByteArray">
- <inject-code file="../glue/qtcore.cpp" snippet="qbytearray-operatorplus-2"/>
- </add-function>
- <add-function signature="operator+(PyByteArray)" return-type="QByteArray">
- <inject-code file="../glue/qtcore.cpp" snippet="qbytearray-operatorplus-3"/>
- </add-function>
- <add-function signature="operator+=(PyByteArray)" return-type="QByteArray">
- <inject-code file="../glue/qtcore.cpp" snippet="qbytearray-operatorplusequal"/>
- </add-function>
- <add-function signature="operator==(PyUnicode)">
- <inject-code file="../glue/qtcore.cpp" snippet="qbytearray-operatorequalequal"/>
- </add-function>
- <add-function signature="operator!=(PyUnicode)">
- <inject-code file="../glue/qtcore.cpp" snippet="qbytearray-operatornotequal"/>
- </add-function>
- <add-function signature="operator&gt;(PyUnicode)">
- <inject-code file="../glue/qtcore.cpp" snippet="qbytearray-operatorgreater"/>
- </add-function>
- <add-function signature="operator&gt;=(PyUnicode)">
- <inject-code file="../glue/qtcore.cpp" snippet="qbytearray-operatorgreaterequal"/>
- </add-function>
- <add-function signature="operator&lt;(PyUnicode)">
- <inject-code file="../glue/qtcore.cpp" snippet="qbytearray-operatorlower"/>
- </add-function>
- <add-function signature="operator&lt;=(PyUnicode)">
- <inject-code file="../glue/qtcore.cpp" snippet="qbytearray-operatorlowerequal"/>
- </add-function>
- <!-- ### -->
-
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qbytearray-repr"/>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="N"/>
- <replace from="%REDUCE_ARGS" to="PyBytes_FromStringAndSize(%CPPSELF.constData(), %CPPSELF.size())"/>
- </insert-template>
- </inject-code>
- </add-function>
- <modify-function signature="QByteArray(const char*,int)">
- <!-- Keep \x00 bytes passed in python strings -->
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qbytearray-1"/>
- </modify-function>
- <add-function signature="QByteArray(PyByteArray)">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qbytearray-2"/>
- </add-function>
- <add-function signature="QByteArray(PyBytes)">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qbytearray-3"/>
- </add-function>
- <!-- buffer protocol -->
- <inject-code class="native" position="beginning" file="../glue/qtcore.cpp" snippet="qbytearray-bufferprotocol"/>
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="qbytearray-py3"/>
-
- <modify-function signature="data()">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qbytearray-data"/>
- </modify-function>
-
- <!-- removed functions -->
- <!--### Functions removed because they return STL-like iterators -->
- <modify-function signature="begin()" remove="all"/>
- <modify-function signature="begin()const" remove="all"/>
- <modify-function signature="constBegin()const" remove="all"/>
- <modify-function signature="constData()const" remove="all"/>
- <modify-function signature="constEnd()const" remove="all"/>
- <modify-function signature="end()" remove="all"/>
- <modify-function signature="end()const" remove="all"/>
- <!--### -->
-
- <!--### Functions removed because they provide useless overloads from Python point of view -->
- <modify-function signature="number(uint,int)" remove="all"/>
- <modify-function signature="number(qulonglong,int)" remove="all"/>
- <modify-function signature="operator+=(const char*)" remove="all"/>
- <modify-function signature="operator+(char,QByteArray)" remove="all"/>
- <modify-function signature="operator==(const char*,QByteArray)" remove="all"/>
- <modify-function signature="operator!=(const char*,QByteArray)" remove="all"/>
- <modify-function signature="operator&lt;(const char*,QByteArray)" remove="all"/>
- <modify-function signature="operator&lt;=(const char*,QByteArray)" remove="all"/>
- <modify-function signature="operator>(const char*,QByteArray)" remove="all"/>
- <modify-function signature="operator>=(const char*,QByteArray)" remove="all"/>
- <modify-function signature="operator[](int)const" remove="all"/>
- <modify-function signature="operator[](uint)const" remove="all"/>
- <!-- Those types have the same representation in Python, an overload would be useless. -->
- <modify-function signature="setNum(uint,int)" remove="all"/>
- <modify-function signature="setNum(ushort,int)" remove="all"/>
- <modify-function signature="setNum(float,char,int)" remove="all"/>
- <modify-function signature="setNum(short,int)" remove="all"/>
- <modify-function signature="setNum(qulonglong,int)" remove="all"/>
-
- <!--### -->
-
- <modify-function signature="operator const char*()const" remove="all"/>
- <modify-function signature="operator const void*()const" remove="all"/>
-
- <!--### STL compatibility functions not supported by PySide -->
- <modify-function signature="push_back(char)" remove="all"/>
- <modify-function signature="push_back(const QByteArray&amp;)" remove="all"/>
- <modify-function signature="push_back(const char*)" remove="all"/>
- <modify-function signature="push_front(char)" remove="all"/>
- <modify-function signature="push_front(const QByteArray&amp;)" remove="all"/>
- <modify-function signature="push_front(const char*)" remove="all"/>
- <!--### -->
-
- <modify-function signature="toLong(bool*,int)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*,arg"/>
- </inject-code>
- </modify-function>
- <modify-function signature="toLongLong(bool*,int)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*,arg"/>
- </inject-code>
- </modify-function>
- <modify-function signature="toShort(bool*,int)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*,arg"/>
- </inject-code>
- </modify-function>
- <modify-function signature="toUInt(bool*,int)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*,arg"/>
- </inject-code>
- </modify-function>
- <modify-function signature="toULong(bool*,int)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*,arg"/>
- </inject-code>
- </modify-function>
- <modify-function signature="toULongLong(bool*,int)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*,arg"/>
- </inject-code>
- </modify-function>
- <modify-function signature="toInt(bool*,int)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*,arg"/>
- </inject-code>
- </modify-function>
- <modify-function signature="toUShort(bool*,int)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*,arg"/>
- </inject-code>
- </modify-function>
- <!-- QByteArray(const char *) do the job of this constructor -->
- <modify-function signature="QByteArray(const char*,int)" remove="all"/>
- <modify-function signature="fromRawData(const char*,int)">
- <modify-argument index="1">
- <replace-type modified-type="PyBytes"/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <inject-code class="target" file="../glue/qtcore.cpp" snippet="qbytearray-fromrawdata"/>
- </modify-function>
- <modify-function signature="toDouble(bool*)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*"/>
- </inject-code>
- </modify-function>
- <modify-function signature="toFloat(bool*)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*"/>
- </inject-code>
- </modify-function>
- <add-function signature="__str__" return-type="PyObject*">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qbytearray-str"/>
- </add-function>
- <add-function signature="__len__">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qbytearray-len"/>
- </add-function>
- <add-function signature="__getitem__">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qbytearray-getitem"/>
- </add-function>
- <add-function signature="__mgetitem__">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qbytearray-mgetitem"/>
- </add-function>
- <add-function signature="__setitem__">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qbytearray-setitem"/>
- </add-function>
- <add-function signature="__msetitem__">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qbytearray-msetitem"/>
- </add-function>
- </value-type>
- <value-type name="QTextBoundaryFinder">
- <enum-type name="BoundaryReason" flags="BoundaryReasons"/>
- <enum-type name="BoundaryType"/>
- <!-- There's no QChar in PySide -->
- <modify-function signature="QTextBoundaryFinder(QTextBoundaryFinder::BoundaryType,const QChar*,int,unsigned char*,int)" remove="all"/>
- </value-type>
- <object-type name="QXmlStreamEntityResolver"/>
-
- <!-- Qt5: had to move QAbstractEventDispatcher into os-specific files because of Windows -->
- <object-type name="QAbstractNativeEventFilter">
- <!-- see QWidget::nativeEvent(), QWindow::nativeEvent() -->
- <modify-function signature="nativeEventFilter(const QByteArray&amp;,void*,long*)">
- <modify-argument index="3">
- <remove-argument/>
- <conversion-rule class="native">
- <insert-template name="return_native_eventfilter_conversion_variables"/>
- </conversion-rule>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- <conversion-rule class="native">
- <insert-template name="return_native_eventfilter_conversion"/>
- </conversion-rule>
- </modify-argument>
- <inject-code position="end">
- <insert-template name="return_native_eventfilter"/>
- </inject-code>
- </modify-function>
- </object-type>
-
- <object-type name="QEventLoop">
- <enum-type name="ProcessEventsFlag" flags="ProcessEventsFlags"/>
- <modify-function signature="exec(QFlags&lt;QEventLoop::ProcessEventsFlag>)" rename="exec_" allow-thread="yes"/>
- <modify-function signature="processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag>)" allow-thread="yes"/>
- <modify-function signature="processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag>,int)" allow-thread="yes"/>
- </object-type>
- <object-type name="QFileDevice" since="5.0">
- <enum-type name="FileError"/>
- <enum-type name="FileTime" since="5.10"/>
- <enum-type name="MemoryMapFlags"/>
- <enum-type name="Permission" flags="Permissions"/>
- <enum-type name="FileHandleFlag" flags="FileHandleFlags"/>
- <extra-includes>
- <!-- Qt5: private <include file-name="QAbstractFileEngine" location="global"/> -->
- </extra-includes>
- <modify-function signature="unmap(uchar*)">
- <modify-argument index="1">
- <replace-type modified-type="PyBuffer"/>
- </modify-argument>
- <inject-code file="../glue/qtcore.cpp" snippet="qfiledevice-unmap"/>
- </modify-function>
- <modify-function signature="map(qint64,qint64,QFileDevice::MemoryMapFlags)">
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <inject-code file="../glue/qtcore.cpp" snippet="qfiledevice-map"/>
- </modify-function>
- <modify-function signature="flush()" allow-thread="yes"/>
- </object-type>
- <object-type name="QFile">
- <modify-function signature="open(QFlags&lt;QIODevice::OpenModeFlag&gt;)" allow-thread="yes"/>
- <modify-function signature="open(int,QFlags&lt;QIODevice::OpenModeFlag&gt;,QFlags&lt;QFileDevice::FileHandleFlag&gt;)" allow-thread="yes"/>
- <modify-function signature="copy(const QString&amp;)" allow-thread="yes"/>
- <modify-function signature="copy(const QString&amp;,const QString&amp;)" allow-thread="yes"/>
- <modify-function signature="link(const QString&amp;)" allow-thread="yes"/>
- <modify-function signature="link(const QString&amp;,const QString&amp;)" allow-thread="yes"/>
- <modify-function signature="remove()" allow-thread="yes"/>
- <modify-function signature="remove(const QString&amp;)" allow-thread="yes"/>
- <modify-function signature="rename(const QString&amp;)" allow-thread="yes"/>
- <modify-function signature="rename(const QString&amp;,const QString&amp;)" allow-thread="yes"/>
- </object-type>
- <object-type name="QSaveFile"/>
- <object-type name="QFileSelector"/>
-
- <object-type name="QIODevice">
- <enum-type name="OpenModeFlag" flags="OpenMode"/>
- <modify-function signature="open(QFlags&lt;QIODevice::OpenModeFlag>)" allow-thread="yes"/>
- <modify-function signature="close()" allow-thread="yes"/>
- <modify-function signature="seek(qint64)" allow-thread="yes"/>
- <modify-function signature="readAll()" allow-thread="yes"/>
- <modify-function signature="peek(qint64)" allow-thread="yes"/>
- <modify-function signature="write(const QByteArray&amp;)" allow-thread="yes"/>
- <modify-function signature="waitForReadyRead(int)" allow-thread="yes"/>
- <modify-function signature="waitForBytesWritten(int)" allow-thread="yes"/>
- <!-- ### peek(qint64) do the job -->
- <modify-function signature="peek(char*,qint64)" remove="all"/>
- <!-- ### read(qint64) do the job -->
- <modify-function signature="read(char*,qint64)" remove="all"/>
- <!-- ### readLine(qint64) do the job -->
- <modify-function signature="readLine(char*,qint64)" remove="all"/>
- <!-- ### write(str) do the job -->
- <modify-function signature="write(const char*,qint64)" remove="all"/>
- <modify-function signature="write(const char*)" remove="all"/>
- <modify-function signature="getChar(char*)">
- <modify-argument index="1">
- <remove-argument />
- <remove-default-expression />
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_char*"/>
- </inject-code>
- </modify-function>
- <modify-function signature="readData(char*,qint64)">
- <inject-code class="target" file="../glue/qtcore.cpp" snippet="qiodevice-readData"/>
- <modify-argument index="1">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <inject-code class="native" position="end" file="../glue/qtcore.cpp" snippet="return-readData"/>
- </modify-function>
- <modify-function signature="readLineData(char*,qint64)">
- <inject-code class="target" file="../glue/qtcore.cpp" snippet="qiodevice-readData"/>
- <modify-argument index="1">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <inject-code class="native" position="end" file="../glue/qtcore.cpp" snippet="return-readData"/>
- </modify-function>
- </object-type>
- <object-type name="QCryptographicHash">
- <enum-type name="Algorithm"/>
- <modify-function signature="addData(const char*,int)">
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <inject-code file="../glue/qtcore.cpp" snippet="qcryptographichash-adddata"/>
- </modify-function>
- </object-type>
- <value-type name="QOperatingSystemVersion" since="5.9">
- <enum-type name="OSType"/>
- </value-type>
- <object-type name="QLibraryInfo">
- <enum-type name="LibraryLocation"/>
- </object-type>
- <object-type name="QMutexLocker" copyable="no">
- <!-- PYSIDE-1271: Creating locking capable objects inside sections that
- contain allow-thread, require the classes to also allow having threads.
- The lack of the option here, was generating a deadlock when running a
- QMutexLocker inside a QThread::run.
- The reason of having this change is due to the new way of handling the GIL
- in the Qt calls on the whole PySide2 module, that started on 5.14.2-->
- <modify-function signature="QMutexLocker(QBasicMutex*)" allow-thread="yes">
- <modify-argument index="1">
- <reference-count action="set" variable-name="mutex()const0"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="relock()" allow-thread="yes"/>
- <modify-function signature="mutex()const">
- <modify-argument index="return">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- <add-function signature="__enter__()"/>
- <add-function signature="__exit__(PyObject*,PyObject*,PyObject*)">
- <inject-code file="../glue/qtcore.cpp" snippet="unlock"/>
- </add-function>
- </object-type>
-
- <!-- Qt5 addition -->
- <object-type name="QBasicMutex">
- <modify-function signature="lock()" allow-thread="yes"/>
- <modify-function signature="tryLock()" allow-thread="yes"/>
- </object-type>
-
- <object-type name="QMutex">
- <enum-type name="RecursionMode"/>
- <modify-function signature="lock()" allow-thread="yes"/>
- <modify-function signature="tryLock(int)" allow-thread="yes"/>
- </object-type>
- <object-type name="QRecursiveMutex" since="5.14"/>
- <object-type name="QRandomGenerator" since="5.10">
- <modify-function signature="global()" rename="global_"/>
- <modify-function signature="operator()()" remove="all"/>
- <modify-function signature="generate(quint32*,quint32*)" remove="all"/>
- </object-type>
- <object-type name="QRandomGenerator64" since="5.10">
- <modify-function signature="global()" rename="global_"/>
- <modify-function signature="operator()()" remove="all"/>
- </object-type>
- <object-type name="QSemaphore">
- <modify-function signature="acquire(int)" allow-thread="yes"/>
- <modify-function signature="tryAcquire(int,int)" allow-thread="yes"/>
- </object-type>
- <object-type name="QSemaphoreReleaser" since="5.10"/>
-
- <object-type name="QSocketNotifier">
- <enum-type name="Type"/>
- <add-function signature="QSocketNotifier(PyObject*, QSocketNotifier::Type, QObject*)">
- <modify-argument index="3">
- <replace-default-expression with="0"/>
- <rename to="parent"/>
- </modify-argument>
- <inject-code file="../glue/qtcore.cpp" snippet="qsocketnotifier"/>
- </add-function>
- </object-type>
-
- <object-type name="QTemporaryFile">
- <extra-includes>
- <!-- Qt5: private <include file-name="QAbstractFileEngine" location="global"/> -->
- </extra-includes>
- <modify-function signature="createNativeFile(QFile&amp;)" allow-thread="yes"/>
- <modify-function signature="createNativeFile(const QString&amp;)" allow-thread="yes"/>
- <modify-function signature="open()" allow-thread="yes"/>
- </object-type>
- <object-type name="QTemporaryDir"/>
- <object-type name="QMimeData">
- <extra-includes>
- <include file-name="QStringList" location="global"/>
- <include file-name="QUrl" location="global"/>
- </extra-includes>
- </object-type>
- <object-type name="QTextCodec">
- <enum-type name="ConversionFlag" flags="ConversionFlags"/>
-
- <object-type name="ConverterState">
- <include file-name="QTextCodec" location="global"/>
- <modify-function signature="ConverterState(QFlags&lt;QTextCodec::ConversionFlag&gt;)">
- <modify-argument index="1">
- <replace-default-expression with="QTextCodec::DefaultConversion"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <modify-function signature="setCodecForLocale(QTextCodec*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <!-- fromUnicode(QString) does the job -->
- <modify-function signature="fromUnicode(const QChar*,int,QTextCodec::ConverterState*)const" remove="all"/>
- <modify-function signature="convertFromUnicode(const QChar*,int,QTextCodec::ConverterState*)const" remove="all"/>
- <!-- this causes a warning that I cannot avoid. See suppressed warning at the end. -->
- </object-type>
- <object-type name="QTextDecoder">
- <!-- ### toUnicode(QByteArray) does the job -->
- <modify-function signature="toUnicode(const char*,int)" remove="all"/>
- <modify-function signature="toUnicode(QString*,const char*,int)" remove="all"/>
- <!-- ### -->
- </object-type>
- <object-type name="QTextEncoder">
- <!-- fromUnicode(QString) does the job -->
- <modify-function signature="fromUnicode(const QChar*,int)" remove="all"/>
- </object-type>
- <object-type name="QTimeLine">
- <enum-type name="CurveShape"/>
- <enum-type name="Direction"/>
- <enum-type name="State"/>
- </object-type>
- <object-type name="QTranslator">
- <modify-function signature="load(const uchar*,int,QString)" allow-thread="yes">
- <modify-argument index="1">
- <replace-type modified-type="PyBuffer"/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <inject-code file="../glue/qtcore.cpp" snippet="qtranslator-load"/>
- </modify-function>
- </object-type>
- <object-type name="QWaitCondition">
- <modify-function signature="wait(QMutex*,unsigned long)" allow-thread="yes"/>
- <modify-function signature="wait(QReadWriteLock*,unsigned long)" allow-thread="yes"/>
- </object-type>
- <object-type name="QFileSystemWatcher">
- <extra-includes>
- <include file-name="QStringList" location="global"/>
- </extra-includes>
- </object-type>
- <object-type name="QBuffer">
- <!-- ### setData(QByteArray) do the job -->
- <modify-function signature="setData(const char*,int)" remove="all"/>
- <!-- Disambiguate from Qt3DRender/qbuffer.h -->
- <include file-name="QtCore/qbuffer.h" location="global"/>
- </object-type>
- <object-type name="QTimer">
- <modify-function signature="singleShot(int,const QObject*,const char*)">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qtimer-singleshot-1"/>
- </modify-function>
- <add-function signature="singleShot(int,PyCallable*)" static="yes">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qtimer-singleshot-2"/>
- </add-function>
- </object-type>
- <object-type name="QProcess">
- <enum-type name="ExitStatus"/>
- <enum-type name="InputChannelMode"/>
- <enum-type name="ProcessChannel"/>
- <enum-type name="ProcessChannelMode"/>
- <enum-type name="ProcessError"/>
- <enum-type name="ProcessState"/>
-
- <modify-function signature="waitForStarted(int)" allow-thread="yes"/>
- <modify-function signature="waitForBytesWritten(int)" allow-thread="yes"/>
- <modify-function signature="waitForFinished(int)" allow-thread="yes"/>
- <modify-function signature="readAllStandardOutput()" allow-thread="yes"/>
- <modify-function signature="readAllStandardError()" allow-thread="yes"/>
- <modify-function signature="execute(QString,QStringList)" allow-thread="yes"/>
- <modify-function signature="execute(QString)" allow-thread="yes"/>
- <modify-function signature="startDetached(QString,QStringList,QString,qint64*)">
- <modify-argument index="4">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(retval, pid)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qprocess-startdetached"/>
- </modify-function>
- <!-- Function removed because on windows it returns a win32 specific structure -->
- <modify-function signature="pid()const" remove="all"/>
- <add-function signature="pid()" return-type="long">
- <inject-code file="../glue/qtcore.cpp" snippet="qprocess-pid"/>
- </add-function>
- <!--### Obsolete in 4.3-->
- <modify-function signature="setReadChannelMode(QProcess::ProcessChannelMode)" remove="all"/>
- <modify-function signature="readChannelMode()const" remove="all"/>
- <!-- ### -->
- </object-type>
- <object-type name="QSignalMapper"/>
-
- <object-type name="QCollatorSortKey" since="5.2"/>
- <object-type name="QCollator" since="5.2"/>
-
- <object-type name="QCommandLineOption" since="5.2">
- <enum-type name="Flag" flags="Flags" since="5.8"/>
- </object-type>
- <object-type name="QCommandLineParser" since="5.2">
- <enum-type name="OptionsAfterPositionalArgumentsMode" since="5.6"/>
- <enum-type name="SingleDashWordOptionMode"/>
- </object-type>
-
- <object-type name="QCoreApplication">
- <!--Qt5: gone <enum-type name="Encoding"/> -->
- <enum-type identified-by-value="ApplicationFlags" since="4.8" revision="4800"/>
- <extra-includes>
- <include file-name="QStringList" location="global"/>
- <include file-name="QTranslator" 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)">
- <inject-code file="../glue/qtcore.cpp" snippet="qcoreapplication-1"/>
- </add-function>
- <add-function signature="QCoreApplication()">
- <inject-code file="../glue/qtcore.cpp" snippet="qcoreapplication-2"/>
- </add-function>
- <!-- Addition for qApp.
- To be fixed: This function deletes a little too much ATM that is missing later
- when creating a new qApp. -->
- <add-function signature="shutdown()">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="moduleshutdown"/>
- </add-function>
-
- <!-- blocking functions -->
- <modify-function signature="processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;,int)" allow-thread="yes"/>
- <modify-function signature="processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;)" allow-thread="yes"/>
- <modify-function signature="flush()" allow-thread="yes"/>
- <modify-function signature="sendEvent(QObject*,QEvent*)" allow-thread="yes"/>
- <modify-function signature="sendPostedEvents(QObject*,int)" allow-thread="yes"/>
- <modify-function signature="instance()">
- <inject-code class="target" file="../glue/qtcore.cpp" snippet="qcoreapplication-instance"/>
- </modify-function>
-
- <modify-function signature="exec()" rename="exec_" allow-thread="yes"/>
- <modify-function signature="notify(QObject*,QEvent*)" allow-thread="yes">
- <modify-argument index="2" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="QCoreApplication(int &amp;,char **,int)" access="private"/>
- <inject-code class="native" position="beginning" file="../glue/qtcore.cpp" snippet="qcoreapplication-init"/>
- <modify-function signature="postEvent(QObject*,QEvent*,int)">
- <modify-argument index="2">
- <define-ownership owner="c++"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QSettings">
- <enum-type name="Format"/>
- <enum-type name="Scope"/>
- <enum-type name="Status"/>
- <extra-includes>
- <include file-name="QStringList" location="global"/>
- </extra-includes>
- <!--### Obsolete in 4.3-->
- <modify-function signature="setSystemIniPath(const QString&amp;)" remove="all"/>
- <modify-function signature="setUserIniPath(const QString&amp;)" remove="all"/>
- <!--### Obsolete in 4.3-->
- <modify-function signature="iniCodec()const">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <!-- PYSIDE-1010:
- We remove the original implementation of value() to include the optional parameter -->
- <modify-function signature="value(const QString&amp;,const QVariant&amp;)const" remove="all"/>
- <add-function signature="value(const QString&amp;, const QVariant&amp; @defaultValue@ = 0, PyObject* @type@ = 0)" return-type="PyObject*">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qsettings-value"/>
- </add-function>
- </object-type>
- <object-type name="QEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::None">
- <enum-type name="Type"/>
- </object-type>
- <object-type name="QChildEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::ChildAdded || %1-&gt;type() == QEvent::ChildPolished || %1-&gt;type() == QEvent::ChildRemoved">
- <modify-function signature="child()const">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QTimerEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::Timer"/>
- <object-type name="QDynamicPropertyChangeEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::DynamicPropertyChange"/>
-
-
- <object-type name="QDataStream" stream="yes">
- <enum-type name="FloatingPointPrecision" since="4.6"/>
- <enum-type name="Status"/>
- <enum-type name="Version"/>
- <enum-type name="ByteOrder"/>
- <extra-includes>
- <include file-name="QtCore/QtCore" location="global"/>
- </extra-includes>
-
- <!-- ### Replaced by write<TYPE> methods -->
- <modify-function signature="operator&gt;&gt;(qint8&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(bool&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(quint8&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(qint16&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(quint16&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(qint32&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(quint32&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(qint64&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(quint64&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(float&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(double&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(char*&amp;)" remove="all"/>
- <!-- ### -->
-
- <!-- ### Replaced by read<TYPE> methods -->
- <modify-function signature="operator&lt;&lt;(qint8)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(bool)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(quint8)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(qint16)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(quint16)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(qint32)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(quint32)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(qint64)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(quint64)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(float)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(double)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(const char*)" remove="all"/>
- <!-- ### -->
- <add-function signature="operator&lt;&lt;(const QString&amp;)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="writeQString(const QString&amp;)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="readQString()" return-type="QString">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <add-function signature="writeQChar(const QChar&amp;)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="readQChar()" return-type="QChar">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <add-function signature="writeQStringList(const QStringList&amp;)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="readQStringList()" return-type="QStringList">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <add-function signature="writeQVariant(const QVariant&amp;)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="readQVariant()" return-type="QVariant">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <modify-function signature="readRawData(char*,int)">
- <modify-argument index="1">
- <remove-argument />
- </modify-argument>
- <inject-code class="target" file="../glue/qtcore.cpp" snippet="qdatastream-readrawdata"/>
- </modify-function>
- <modify-function signature="writeRawData(const char*,int)">
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <inject-code class="target" file="../glue/qtcore.cpp" snippet="qdatastream-writerawdata"/>
- </modify-function>
-
- <!-- Extra functions for primitive type handling -->
- <add-function signature="readBool()" return-type="bool">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <add-function signature="readInt8()" return-type="qint8">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <add-function signature="readUInt8()" return-type="quint8">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <add-function signature="readUInt16()" return-type="quint16">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <add-function signature="readInt16()" return-type="qint16">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <add-function signature="readInt32()" return-type="qint32">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <add-function signature="readUInt32()" return-type="quint32">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <add-function signature="readInt64()" return-type="qint64">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <add-function signature="readUInt64()" return-type="quint64">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <add-function signature="readFloat()" return-type="float">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <add-function signature="readDouble()" return-type="qreal">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
- <add-function signature="readString()" return-type="QString">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-read-method"/>
- </add-function>
-
- <add-function signature="writeBool(bool)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="writeInt8(qint8)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="writeUInt8(quint8)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="writeUInt16(quint16)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="writeInt16(qint16)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="writeInt32(qint32)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="writeUInt32(quint32)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="writeInt64(qint64)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="writeUInt64(quint64)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="writeFloat(float)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="writeDouble(qreal)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
- <add-function signature="writeString(QString)">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="stream-write-method"/>
- </add-function>
-
- <!-- ### deprecated method -->
- <modify-function signature="readBytes(char*&amp;,uint&amp;)" remove="all"/>
- <modify-function signature="writeBytes(const char*,uint)" remove="all"/>
- </object-type>
-
- <value-type name="QTextStreamManipulator" default-constructor="QTextStreamManipulator(0, 0)">
- <modify-function signature="exec(QTextStream &amp;)" rename="exec_"/>
- </value-type>
- <object-type name="QTextStream" stream="yes">
- <enum-type name="FieldAlignment"/>
- <enum-type name="NumberFlag" flags="NumberFlags"/>
- <enum-type name="RealNumberNotation"/>
- <enum-type name="Status"/>
- <!-- Removed because it expect QString to be mutable -->
- <modify-function signature="QTextStream(QString*,QFlags&lt;QIODevice::OpenModeFlag&gt;)" remove="all"/>
- <!-- Qt5.5: Removed because it expect QString to be mutable -->
- <modify-function signature="readLineInto(QString*,qint64)" since="5.5" remove="all"/>
- <!-- Removed because we use the non-const version -->
- <modify-function signature="QTextStream(const QByteArray&amp;,QFlags&lt;QIODevice::OpenModeFlag&gt;)" remove="all"/>
-
- <!-- Removed because it expect QString to be mutable -->
- <modify-function signature="setString(QString*,QFlags&lt;QIODevice::OpenModeFlag&gt;)" remove="all"/>
-
- <modify-function signature="operator&lt;&lt;(const void*)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(float)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(qlonglong)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(qulonglong)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(short)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(int)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(unsigned int)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(unsigned short)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(const char*)" remove="all"/>
-
- <modify-function signature="operator&gt;&gt;(char*)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(char&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(float&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(double&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(qlonglong&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(qulonglong&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(long&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(int&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(short&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(unsigned long&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(unsigned int&amp;)" remove="all"/>
- <modify-function signature="operator&gt;&gt;(unsigned short&amp;)" remove="all"/>
- <!-- Removed because it expect QChar to be mutable -->
- <modify-function signature="operator&gt;&gt;(QChar&amp;)" remove="all"/>
- <!-- Removed because it expect QString to be mutable -->
- <modify-function signature="operator&gt;&gt;(QString&amp;)" remove="all"/>
-
- <modify-function signature="string()const">
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="return-qstring-ref"/>
- </modify-function>
-
- <modify-function signature="flush()" allow-thread="yes"/>
- <modify-function signature="read(qint64)" allow-thread="yes"/>
- <modify-function signature="readLine(qint64)" allow-thread="yes"/>
- <modify-function signature="readAll()" allow-thread="yes"/>
- </object-type>
- <object-type name="QStandardPaths" since="5.0">
- <enum-type name="StandardLocation"/>
- <enum-type name="LocateOption" flags="LocateOptions"/>
- </object-type>
- <object-type name="QSystemSemaphore">
- <enum-type name="AccessMode"/>
- <enum-type name="SystemSemaphoreError"/>
- </object-type>
-
- <object-type name="QThreadPool">
- <modify-function signature="clear()" allow-thread="yes"/>
- <modify-function signature="activeThreadCount()const" allow-thread="yes"/>
- <modify-function signature="releaseThread()" allow-thread="yes"/>
- <modify-function signature="reserveThread()" allow-thread="yes"/>
- <modify-function signature="setMaxThreadCount(int)" allow-thread="yes"/>
- <modify-function signature="waitForDone(int)" allow-thread="yes"/>
- <modify-function signature="start(QRunnable*,int)" allow-thread="yes">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="tryStart(QRunnable*)" allow-thread="yes">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="tryTake(QRunnable*)" allow-thread="yes"/>
-
- <modify-function signature="globalInstance()" >
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="releaseownership"/>
- </modify-function>
- </object-type>
- <value-type name="QXmlStreamAttribute"/>
- <value-type name="QXmlStreamAttributes">
- <modify-function signature="push_back(QXmlStreamAttribute)" remove="all"/>
- <modify-function signature="pop_back()" remove="all"/>
- <modify-function signature="push_front(QXmlStreamAttribute)" remove="all"/>
- <modify-function signature="pop_front()" remove="all"/>
- <modify-function signature="toList()const" remove="all"/>
- <modify-function signature="fromList(const QList&lt;QXmlStreamAttribute&gt; &amp;)" remove="all"/>
- <modify-function signature="operator+=(QVector&lt;QXmlStreamAttribute&gt;)" remove="all"/>
- </value-type>
- <value-type name="QXmlStreamNamespaceDeclaration"/>
- <value-type name="QXmlStreamNotationDeclaration"/>
- <value-type name="QXmlStreamEntityDeclaration"/>
- <object-type name="QXmlStreamReader">
- <enum-type name="Error"/>
- <enum-type name="TokenType"/>
- <enum-type name="ReadElementTextBehaviour" since="4.6"/>
- </object-type>
- <object-type name="QXmlStreamWriter">
- <!-- Removed because it expect QString to be mutable -->
- <modify-function signature="QXmlStreamWriter(QString*)" remove="all"/>
- <modify-function signature="codec()const">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <value-type name="QModelIndex" hash-function="qHash">
- <modify-function signature="internalPointer()const">
- <inject-code class="target" position="beginning">
- <insert-template name="return_internal_pointer" />
- </inject-code>
- </modify-function>
- <modify-function signature="model()const">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- </value-type>
-
- <value-type name="QGenericArgument">
- <include file-name="qobjectdefs.h" location="global"/>
- </value-type>
-
- <value-type name="QGenericReturnArgument">
- <include file-name="qobjectdefs.h" location="global"/>
- </value-type>
-
- <object-type name="QMessageLogContext" since="5.14"/>
-
- <object-type name="QMessageLogContext" since="5.9" until="5.13.2">
- <modify-function signature="copy(const QMessageLogContext &amp;)" remove="all"/>
- </object-type>
-
- <value-type name="QMetaMethod">
- <enum-type name="Access"/>
- <enum-type name="MethodType"/>
- <!-- This isn't part of Qt public API -->
- <modify-function signature="attributes()const" remove="all"/>
- <modify-function signature="getParameterTypes(int*)const" remove="all"/>
- </value-type>
- <object-type name="QMetaObject">
- <enum-type name="Call"/>
- <include file-name="qobjectdefs.h" location="global"/>
- <!-- This isn't part of Qt public API -->
- <modify-function signature="connect(const QObject*,int,const QObject*,int,int,int*)" remove="all"/>
- <object-type name="Connection">
- <include file-name="qobjectdefs.h" location="global"/>
- </object-type>
- <modify-function signature="^invokeMethod\(" allow-thread="yes"/>
- </object-type>
- <value-type name="QMetaProperty" >
- <!-- This isn't part of Qt public API -->
- <modify-function signature="enclosingMetaObject()const" remove="all"/>
- </value-type>
- <value-type name="QMetaClassInfo">
- <!-- This isn't part of Qt public API -->
- <modify-function signature="enclosingMetaObject()const" remove="all"/>
- </value-type>
-
- <value-type name="QMetaEnum">
- <modify-function signature="keyToValue(const char*,bool*)const">
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyTuple"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- <modify-function signature="keysToValue(const char*,bool*)const">
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyTuple"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- <!-- This isn't part of Qt public API -->
- <modify-function signature="enclosingMetaObject()const" remove="all"/>
- </value-type>
-
- <!-- From Qt4.6 -->
- <object-type name="QAbstractAnimation" since="4.6">
- <enum-type name="DeletionPolicy"/>
- <enum-type name="Direction"/>
- <enum-type name="State"/>
- </object-type>
-
- <object-type name="QAbstractState" since="4.6">
- <modify-function signature="machine()const">
- <modify-argument index="this">
- <parent index="return" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QAbstractTransition" since="4.6">
- <enum-type name="TransitionType" since="5.5"/>
-
- <modify-function signature="QAbstractTransition(QState*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="addAnimation(QAbstractAnimation*)">
- <modify-argument index="1">
- <reference-count action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="removeAnimation(QAbstractAnimation*)">
- <modify-argument index="1">
- <reference-count action="remove"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="setTargetState(QAbstractState*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="targetState()const">
- <modify-argument index="return">
- <reference-count action="set" variable-name="setTargetState(QAbstractState*)1"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="targetStates()const">
- <modify-argument index="return">
- <reference-count action="set" variable-name="setTargetState(QAbstractState*)1"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="setTargetStates(QList&lt;QAbstractState*&gt;)">
- <modify-argument index="1">
- <reference-count action="set" variable-name="setTargetState(QAbstractState*)1"/>
- </modify-argument>
- </modify-function>
-
- </object-type>
-
- <object-type name="QAnimationGroup" since="4.6">
- <modify-function signature="addAnimation(QAbstractAnimation*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="insertAnimation(int,QAbstractAnimation*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="removeAnimation(QAbstractAnimation*)">
- <modify-argument index="1">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="takeAnimation(int)">
- <modify-argument index="return">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="clear()" >
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qanimationgroup-clear"/>
- </modify-function>
- </object-type>
-
- <!-- We will use inject code to implement the function below -->
- <rejection class="QEasingCurve" function-name="setCustomType"/>
- <rejection class="QEasingCurve" function-name="customType"/>
- <value-type name="QEasingCurve" since="4.6">
- <extra-includes>
- <include file-name="pysideweakref.h" location="global"/>
- <include file-name="glue/qeasingcurve_glue.h" location="local"/>
- </extra-includes>
- <inject-code file="../glue/qtcore.cpp" snippet="qeasingcurve"/>
- <enum-type name="Type"/>
- <add-function signature="setCustomType(PyObject*)">
- <inject-code file="../glue/qtcore.cpp" snippet="qeasingcurve-setcustomtype"/>
- </add-function>
- <add-function signature="customType()" return-type="PyObject">
- <inject-code file="../glue/qtcore.cpp" snippet="qeasingcurve-customtype"/>
- </add-function>
- </value-type>
-
- <value-type name="QJsonArray">
- <extra-includes>
- <include file-name="QStringList" location="global"/>
- </extra-includes>
- </value-type>
-
- <value-type name="QJsonDocument">
- <enum-type name="DataValidation"/>
- <enum-type name="JsonFormat"/>
- </value-type>
-
- <rejection class="QJsonDocument" field-name="BinaryFormatTag"/>
-
- <value-type name="QJsonParseError">
- <enum-type name="ParseError"/>
- </value-type>
-
- <value-type name="QJsonValue">
- <enum-type name="Type"/>
- <extra-includes>
- <include file-name="QVariant" location="global"/>
- <include file-name="QJsonArray" location="global"/>
- <include file-name="QJsonObject" location="global"/>
- </extra-includes>
- </value-type>
-
- <object-type name="QEventTransition" since="4.6">
- <modify-function signature="QEventTransition(QState*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="QEventTransition(QObject*,QEvent::Type,QState*)">
- <modify-argument index="3">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- </object-type>
-
- <object-type name="QFinalState" since="4.6"/>
-
- <object-type name="QHistoryState" since="4.6">
- <enum-type name="HistoryType"/>
- <modify-documentation xpath='description/code'>
- &lt;code>machine = QStateMachine()
-
-s1 = QState()
-s11 = QState(s1)
-s12 = QState(s1)
-
-s1h = QHistoryState(s1)
-s1h.setDefaultState(s11)
-
-machine.addState(s1)
-
-s2 = QState()
-machine.addState(s2)
-
-button = QPushButton()
-# Clicking the button will cause the state machine to enter the child state
-# that s1 was in the last time s1 was exited, or the history state's default
-# state if s1 has never been entered.
-s1.addTransition(button.clicked, s1h)&lt;/code>
- </modify-documentation>
- </object-type>
-
- <value-type name="QMargins" since="4.6"/>
- <value-type name="QMarginsF" since="5.3"/>
-
- <object-type name="QParallelAnimationGroup" since="4.6"/>
-
- <object-type name="QPauseAnimation" since="4.6"/>
-
- <value-type name="QProcessEnvironment" since="4.6"/>
-
- <object-type name="QPropertyAnimation" since="4.6"/>
-
- <object-type name="QSequentialAnimationGroup" since="4.6"/>
-
- <object-type name="QSignalTransition" since="4.6">
- <add-function signature="QSignalTransition(PyObject*,QState*)" return-type="QSignalTransition*">
- <modify-argument index="2">
- <replace-default-expression with="0"/>
- </modify-argument>
- <inject-code file="../glue/qtcore.cpp" snippet="qsignaltransition"/>
- </add-function>
- </object-type>
-
- <object-type name="QState" since="4.6">
- <enum-type name="ChildMode"/>
- <enum-type name="RestorePolicy"/>
- <modify-function signature="addTransition(QAbstractTransition*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="addTransition(const QObject*,const char*,QAbstractState*)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qstate-addtransition-1"/>
- </modify-function>
- <modify-function signature="addTransition(QAbstractState*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <!-- FIXME: the proper signature for this added function would be something like
- addTransition(PySide2.QtCore.Signal, QAbstractState*)
- but that depends on bug #362. -->
- <add-function signature="addTransition(PyObject*,QAbstractState*)" return-type="QSignalTransition*">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qstate-addtransition-2"/>
- </add-function>
-
- <modify-function signature="removeTransition(QAbstractTransition*)">
- <modify-argument index="1">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QStateMachine" since="4.6">
- <enum-type name="Error"/>
- <enum-type name="EventPriority"/>
-
- <value-type name="SignalEvent" since="4.6"/>
- <value-type name="WrappedEvent" since="4.6"/>
-
- <modify-function signature="addState(QAbstractState*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeState(QAbstractState*)">
- <modify-argument index="1">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
-
- <add-function signature="configuration()" return-type="list of QAbstractState" >
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qstatemachine-configuration"/>
- </add-function>
-
- <!-- Replaced by a added function -->
- <modify-function signature="defaultAnimations()const" remove="all"/>
- <add-function signature="defaultAnimations()" return-type="list of QAbstractAnimation" >
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qstatemachine-defaultanimations"/>
- </add-function>
- </object-type>
-
- <object-type name="QVariantAnimation" since="4.6"/>
-
- <value-type name="QVersionNumber" since="5.6">
- <modify-function signature="fromString(const QString &amp;,int*)">
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- </modify-function>
- </value-type>
-
- <!-- From Qt4.6 ^^^ -->
-
- <add-function signature="SIGNAL(const char*)" return-type="str">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qt-signal"/>
- </add-function>
-
- <add-function signature="SLOT(const char*)" return-type="str">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qt-slot"/>
- </add-function>
-
- <add-function signature="QT_TR_NOOP(PyObject)" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="return_argument"><replace from="#" to="1"/></insert-template>
- </inject-code>
- </add-function>
- <add-function signature="QT_TR_NOOP_UTF8(PyObject)" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="return_argument"><replace from="#" to="1"/></insert-template>
- </inject-code>
- </add-function>
- <add-function signature="QT_TRANSLATE_NOOP(PyObject,PyObject)" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="return_argument"><replace from="#" to="2"/></insert-template>
- </inject-code>
- </add-function>
- <add-function signature="QT_TRANSLATE_NOOP3(PyObject,PyObject,PyObject)" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="return_argument"><replace from="#" to="2"/></insert-template>
- </inject-code>
- </add-function>
- <add-function signature="QT_TRANSLATE_NOOP_UTF8(PyObject)" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="return_argument"><replace from="#" to="1"/></insert-template>
- </inject-code>
- </add-function>
-
- <inject-code class="native" position="beginning" file="../glue/qtcore.cpp" snippet="qt-registerresourcedata"/>
- <add-function signature="qRegisterResourceData(int,PyBytes,PyBytes,PyBytes)" return-type="bool">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qt-qregisterresourcedata"/>
- </add-function>
- <add-function signature="qUnregisterResourceData(int,PyBytes,PyBytes,PyBytes)" return-type="bool">
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qt-qunregisterresourcedata"/>
- </add-function>
-
- <object-type name="QFactoryInterface"/>
- <object-type name="QRunnable"/>
-
- <object-type name="QPluginLoader"/>
- <object-type name="QStringListModel"/>
-
- <suppress-warning text="Unable to decide type of property: 'QLibrary::LoadHints' in class 'QPluginLoader'"/>
- <suppress-warning text="enum '_ISalnum' does not have a type entry or is not an enum"/>
- <suppress-warning text="enum 'Qt::Initialization' does not have a type entry or is not an enum"/>
- <suppress-warning text="visibility of function '*' modified in class '*'"/>
- <suppress-warning text="hiding of function '*' in class '*'"/>
- <suppress-warning text="namespace '*' does not have a type entry"/>
- <suppress-warning text="Shadowing: QObject::parent()const and QAbstractItemModel::parent() const"/>
- <suppress-warning text="namespace '*' for enum 'QtMsgType' is not declared"/>
- <suppress-warning text="horribly broken type 'imaxdiv_t'"/>
- <suppress-warning text="horribly broken type '__off64_t'"/>
- <suppress-warning text="horribly broken type 'div_t'"/>
- <suppress-warning text="horribly broken type 'fd_set*'"/>
- <suppress-warning text="horribly broken type 'ldiv_t'"/>
- <suppress-warning text="horribly broken type 'lldiv_t'"/>
- <suppress-warning text="signal '*' in class '*' is overloaded."/>
- <suppress-warning text="enum 'enum_3' does not have a type entry or is not an enum"/>
- <suppress-warning text="Shadowing: QFile::fileName() const and QTemporaryFile::fileName() const"/>
- <suppress-warning text="unhandled enum value: ~0u in Qt::GestureType"/>
- <suppress-warning text="unhandled enum value: (sizeof(void*)&lt;&lt;3) in QSysInfo::Sizes"/>
- <suppress-warning text="unmatched enum ~0u"/>
- <suppress-warning text="unmatched enum (sizeof(void*)&lt;&lt;3)"/>
- <suppress-warning text="^signature 'setCustomType(float)' for function modification in 'QEasingCurve' not found.*$"/>
- <suppress-warning text="enum 'enum_4' does not have a type entry or is not an enum"/>
- <suppress-warning text="enum 'enum_5' does not have a type entry or is not an enum"/>
- <suppress-warning text="enum 'FP_NORMAL' does not have a type entry or is not an enum"/>
- <suppress-warning text="Shadowing: *"/>
- <!-- QCborStreamReader: Suppress warnings about 32/64bit signatures not found depending on qsizetype -->
- <suppress-warning text="^signature 'readStringChunk\(char.*in 'QCborStreamReader' not found.*$"/>
-
- <!-- this enum is defined on Qt global header but only used in QtGui module -->
- <suppress-warning text="enum 'PM_MessageBoxHeight' does not have a type entry or is not an enum"/>
-
- <!-- this function only exists on Windows -->
- <suppress-warning text="^signature 'winEventFilter(MSG*,long*)' for function modification in 'QCoreApplication' not found.*"/>
-
- <!-- this is necessary to avoid warning on other modules -->
- <suppress-warning text="^signature 'operator*(QByteArray,const char*)' for function modification in 'QByteArray' not found.*"/>
- <suppress-warning text="^signature 'operator+(QByteArray,QString)' for function modification in 'QByteArray' not found.*"/>
-
- <!-- This enum is intenaly used -->
- <suppress-warning text="enum 'PM_CbaIconHeight' does not have a type entry or is not an enum"/>
-
- <!-- TODO: this need be removed -->
- <suppress-warning text="^skipping function '.*', unmatched return type '.*$"/>
- <suppress-warning text="^skipping function '.*', unmatched type '.*$"/>
-
- <suppress-warning text="enum 'q_static_assert_result39' does not have a type entry or is not an enum"/>
- <suppress-warning text="horribly broken type ''"/>
- <suppress-warning text="Pure virtual method 'QTextCodec::convertFromUnicode(const QChar*,int,QTextCodec::ConverterState*)const' must be implement but was completely removed on type system."/>
-
- <!-- Qt5.5: No idea how to get rid of the following five enums, which are moved elsewhere since 5.5: -->
- <suppress-warning text="enum 'QLocale::MeasurementSystem' is specified in typesystem, but not declared"/>
- <suppress-warning text="enum 'QState::RestorePolicy' is specified in typesystem, but not declared"/>
- <!-- <suppress-warning text="enum 'QLocale::FormatType' is specified in typesystem, but not declared"/> -->
- <suppress-warning text="enum 'QAbstractAnimation::DeletionPolicy' is specified in typesystem, but not declared"/>
- <!-- <suppress-warning text="enum 'QAbstractAnimation::State' is specified in typesystem, but not declared"/> -->
- <!-- Qt5.5: we also suppress these warnings, instead of adding wrong enums -->
- <suppress-warning text="enum 'InterfaceType' does not have a type entry or is not an enum"/>
- <suppress-warning text="enum 'TextBoundaryType' does not have a type entry or is not an enum"/>
- <suppress-warning text="enum 'RelationFlag' does not have a type entry or is not an enum"/>
- <suppress-warning text="enum 'Role' does not have a type entry or is not an enum"/>
-
- <!-- Anonymous enum in qtbase/src/corelib/global/qtypeinfo.h -->
- <suppress-warning text="Anonymous enum (Q_COMPLEX_TYPE, ... , Q_RELOCATABLE_TYPE) does not have a type entry"/>
-
- <!-- Another anonymous enum / value pair in in qtbase/src/corelib/kernel/qcoreapplication.h -->
- <suppress-warning text="no matching enum 'QT_VERSION'"/>
- <suppress-warning text="unhandled enum value: QT_VERSION in QCoreApplication::ApplicationFlags from header 'qcoreapplication.h'"/>
- <suppress-warning text="unmatched enum QT_VERSION from header 'qcoreapplication.h'"/>
-
- <suppress-warning text="skipping field 'QSysInfo::WindowsVersion' with unmatched type 'const QSysInfo::WinVersion'"/>
- <suppress-warning text="template baseclass 'QListSpecialMethods&lt;T&gt;' of 'QList' is not known"/>
-
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtCore/typesystem_core_mac.xml b/sources/pyside2/PySide2/QtCore/typesystem_core_mac.xml
deleted file mode 100644
index 6e1a55557..000000000
--- a/sources/pyside2/PySide2/QtCore/typesystem_core_mac.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtCore">
- <primitive-type name="Qt::HANDLE" target-lang-api-name="PyObject"/>
- <!-- Qt5: had to move QAbstractEventDispatcher into os-specific files because of Windows -->
- <object-type name="QAbstractEventDispatcher">
- <modify-function signature="processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag>)" allow-thread="yes"/>
- <!-- Qt5: had to add this recursive object def. This was crucial to get rid of "pure virtual" -->
- <object-type name="TimerInfo"/>
- </object-type>
- <object-type name="QSysInfo">
- <enum-type name="Endian"/>
- <enum-type name="Sizes"/>
- <enum-type name="MacVersion" since="5.5"/>
- </object-type>
- <suppress-warning text="skipping field 'QSysInfo::WindowsVersion' with unmatched type 'QSysInfo::WinVersion'"/>
- <suppress-warning text="enum 'QSysInfo::WinVersion' does not have a type entry or is not an enum"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtCore/typesystem_core_win.xml b/sources/pyside2/PySide2/QtCore/typesystem_core_win.xml
deleted file mode 100644
index 8e3fa6f5e..000000000
--- a/sources/pyside2/PySide2/QtCore/typesystem_core_win.xml
+++ /dev/null
@@ -1,90 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtCore">
- <extra-includes>
- <include file-name="windows.h" location="global"/>
- </extra-includes>
- <primitive-type name="Qt::HANDLE" target-lang-api-name="PyObject"/>
- <primitive-type name="HWND">
- <!-- Qt5: Add this include there to insert ti in the global qtcore header (needed by qprocess_wrapper) -->
- <include file-name="wtypes.h" location="global"/>
- <conversion-rule>
- <native-to-target>
- #ifdef IS_PY3K
- return PyCapsule_New(%in, 0, 0);
- #else
- return PyCObject_FromVoidPtr(%in, 0);
- #endif
- </native-to-target>
- <target-to-native>
- <add-conversion type="PyNone">
- %out = 0;
- </add-conversion>
- <add-conversion check="checkPyCapsuleOrPyCObject(%in)" type="PyObject">
- #ifdef IS_PY3K
- %out = (%OUTTYPE)PyCapsule_GetPointer(%in, 0);
- #else
- %out = (%OUTTYPE)PyCObject_AsVoidPtr(%in);
- #endif
- </add-conversion>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
- <inject-code class="native" position="beginning">
- <insert-template name="checkPyCapsuleOrPyCObject_func"/>
- </inject-code>
-
- <!-- Qt5: had to move QAbstractEventDispatcher into os-specific files because of Windows -->
- <object-type name="QWinEventNotifier"/>
- <object-type name="QAbstractEventDispatcher">
- <modify-function signature="processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag>)" allow-thread="yes"/>
- <!-- Qt5: had to add this recursive object def. This was crucial to get rid of "pure virtual" -->
- <object-type name="TimerInfo"/>
- </object-type>
- <object-type name="QSysInfo">
- <enum-type name="Endian"/>
- <enum-type name="Sizes"/>
- <enum-type name="WinVersion" since="5.5"/>
- </object-type>
- <suppress-warning text="skipping field 'QSysInfo::MacintoshVersion' with unmatched type 'QSysInfo::MacVersion'"/>
- <suppress-warning text="enum 'QSysInfo::MacVersion' does not have a type entry or is not an enum"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtCore/typesystem_core_x11.xml b/sources/pyside2/PySide2/QtCore/typesystem_core_x11.xml
deleted file mode 100644
index 88cbf7638..000000000
--- a/sources/pyside2/PySide2/QtCore/typesystem_core_x11.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtCore">
- <primitive-type name="Qt::HANDLE" target-lang-api-name="PyLong">
- <!-- FIXME APIExtractor or shiboken do not support multiple includes by primitive type -->
- <!-- Qt5: XXX move this to QtGui <include file-name="QTextDocument" location="global"/> -->
- </primitive-type>
- <!-- Qt5: had to move QAbstractEventDispatcher into os-specific files because of Windows -->
- <object-type name="QAbstractEventDispatcher">
- <modify-function signature="processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag>)" allow-thread="yes"/>
- <!-- Qt5: had to add this recursive object def. This was crucial to get rid of "pure virtual" -->
- <object-type name="TimerInfo"/>
- </object-type>
- <object-type name="QSysInfo">
- <enum-type name="Endian"/>
- <enum-type name="Sizes"/>
- </object-type>
- <suppress-warning text="skipping field 'QSysInfo::MacintoshVersion' with unmatched type 'QSysInfo::MacVersion'"/>
- <suppress-warning text="skipping field 'QSysInfo::WindowsVersion' with unmatched type 'QSysInfo::MacVersion'"/>
- <suppress-warning text="enum 'QSysInfo::MacVersion' does not have a type entry or is not an enum"/>
- <suppress-warning text="enum 'QSysInfo::WinVersion' does not have a type entry or is not an enum"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtDataVisualization/CMakeLists.txt b/sources/pyside2/PySide2/QtDataVisualization/CMakeLists.txt
deleted file mode 100644
index 46868fe35..000000000
--- a/sources/pyside2/PySide2/QtDataVisualization/CMakeLists.txt
+++ /dev/null
@@ -1,65 +0,0 @@
-project(QtDataVisualization)
-
-set(QtDataVisualization_SRC
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qabstract3daxis_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qcategory3daxis_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qlogvalue3daxisformatter_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qvalue3daxis_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qvalue3daxisformatter_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qabstract3dseries_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qabstractdataproxy_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qbar3dseries_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qbardataitem_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qbardataproxy_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qcustom3ditem_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qcustom3dlabel_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qcustom3dvolume_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qheightmapsurfacedataproxy_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qitemmodelbardataproxy_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qitemmodelscatterdataproxy_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qitemmodelsurfacedataproxy_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qscatter3dseries_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qscatterdataitem_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qscatterdataproxy_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qsurface3dseries_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qsurfacedataitem_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qsurfacedataproxy_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_q3dbars_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_q3dcamera_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_q3dlight_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_q3dobject_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_q3dscatter_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_q3dscene_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_q3dsurface_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qabstract3dgraph_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_q3dinputhandler_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qabstract3dinputhandler_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_qtouch3dinputhandler_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_q3dtheme_wrapper.cpp
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_wrapper.cpp
-# module is always needed
-${QtDataVisualization_GEN_DIR}/qtdatavisualization_module_wrapper.cpp
-)
-
-set(QtDataVisualization_include_dirs ${QtDataVisualization_SOURCE_DIR}
- ${QtDataVisualization_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}DataVisualization_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR})
-
-set(QtDataVisualization_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}DataVisualization_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES})
-
-set(QtDataVisualization_deps QtCore QtGui)
-
-create_pyside_module(NAME QtDataVisualization
- INCLUDE_DIRS QtDataVisualization_include_dirs
- LIBRARIES QtDataVisualization_libraries
- DEPS QtDataVisualization_deps
- TYPESYSTEM_PATH QtDataVisualization_SOURCE_DIR
- SOURCES QtDataVisualization_SRC)
diff --git a/sources/pyside2/PySide2/QtDataVisualization/typesystem_datavisualization.xml b/sources/pyside2/PySide2/QtDataVisualization/typesystem_datavisualization.xml
deleted file mode 100644
index f10aeea3e..000000000
--- a/sources/pyside2/PySide2/QtDataVisualization/typesystem_datavisualization.xml
+++ /dev/null
@@ -1,422 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtDataVisualization">
-
- <load-typesystem name="templates/datavisualization_common.xml" generate="no" />
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no" />
- <namespace-type name="QtDataVisualization">
- <primitive-type name="QBarDataArray">
- <include file-name="qbardataproxy.h" location="global"/>
- <conversion-rule>
- <native-to-target>
- <insert-template name="cppqlistofptrtoqvectors_to_py_conversion">
- <replace from="%INTYPE_0" to="QtDataVisualization::QBarDataItem"/>
- </insert-template>
- </native-to-target>
- <target-to-native>
- <add-conversion type="PySequence">
- <insert-template name="py_to_cppqlistofptrtoqvectors_conversion">
- <replace from="%OUTTYPE_0" to="QtDataVisualization::QBarDataItem"/>
- </insert-template>
- </add-conversion>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
- <primitive-type name="QSurfaceDataArray">
- <include file-name="qsurfacedataproxy.h" location="global"/>
- <conversion-rule>
- <native-to-target>
- <insert-template name="cppqlistofptrtoqvectors_to_py_conversion">
- <replace from="%INTYPE_0" to="QtDataVisualization::QSurfaceDataItem"/>
- </insert-template>
- </native-to-target>
- <target-to-native>
- <add-conversion type="PySequence">
- <insert-template name="py_to_cppqlistofptrtoqvectors_conversion">
- <replace from="%OUTTYPE_0" to="QtDataVisualization::QSurfaceDataItem"/>
- </insert-template>
- </add-conversion>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
-
- <object-type name="QAbstract3DAxis">
- <enum-type name="AxisOrientation"/>
- <enum-type name="AxisType"/>
- </object-type>
- <object-type name="QCategory3DAxis"/>
- <object-type name="QLogValue3DAxisFormatter"/>
- <object-type name="QValue3DAxis"/>
- <object-type name="QValue3DAxisFormatter">
- <modify-function signature="populateCopy(QtDataVisualization::QValue3DAxisFormatter&amp;)const">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QAbstract3DSeries">
- <enum-type name="Mesh"/>
- <enum-type name="SeriesType"/>
- </object-type>
- <object-type name="QAbstractDataProxy">
- <enum-type name="DataType"/>
- </object-type>
- <object-type name="QBar3DSeries">
- <modify-function signature="setDataProxy(QtDataVisualization::QBarDataProxy*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <value-type name="QBarDataItem"/>
- <object-type name="QBarDataProxy">
- <modify-function signature="resetArray(QtDataVisualization::QBarDataArray*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="resetArray(QtDataVisualization::QBarDataArray*,const QStringList&amp;,const QStringList&amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addRow(QVector&lt;QtDataVisualization::QBarDataItem&gt;*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addRow(QVector&lt;QtDataVisualization::QBarDataItem&gt;*, const QString&amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addRows(const QtDataVisualization::QBarDataArray&amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addRows(const QtDataVisualization::QBarDataArray&amp;, const QStringList&amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertRow(int, QVector&lt;QtDataVisualization::QBarDataItem&gt;*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertRow(int, QVector&lt;QtDataVisualization::QBarDataItem&gt;*, const QString&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertRows(int, const QtDataVisualization::QBarDataArray&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertRows(int, const QtDataVisualization::QBarDataArray&amp;, const QStringList&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setRow(int, QVector&lt;QtDataVisualization::QBarDataItem&gt;*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setRow(int, QVector&lt;QtDataVisualization::QBarDataItem&gt;*, const QString&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setRows(int, const QtDataVisualization::QBarDataArray&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setRows(int, const QtDataVisualization::QBarDataArray&amp;, const QStringList&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QCustom3DItem"/>
- <object-type name="QCustom3DLabel"/>
- <object-type name="QCustom3DVolume"/>
- <object-type name="QHeightMapSurfaceDataProxy"/>
- <object-type name="QItemModelBarDataProxy">
- <enum-type name="MultiMatchBehavior"/>
- </object-type>
- <object-type name="QItemModelScatterDataProxy"/>
- <object-type name="QItemModelSurfaceDataProxy">
- <enum-type name="MultiMatchBehavior"/>
- </object-type>
- <object-type name="QScatter3DSeries">
- <modify-function signature="setDataProxy(QtDataVisualization::QScatterDataProxy*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <value-type name="QScatterDataItem"/>
- <object-type name="QScatterDataProxy">
- <modify-function signature="resetArray(QVector&lt;QtDataVisualization::QScatterDataItem&gt;*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addItem(const QtDataVisualization::QScatterDataItem&amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addItems(const QVector&lt;QtDataVisualization::QScatterDataItem&gt;&amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertItem(int, const QtDataVisualization::QScatterDataItem&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertItems(int, const QVector&lt;QtDataVisualization::QScatterDataItem&gt;&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItem(int, const QtDataVisualization::QScatterDataItem&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItems(int, const QVector&lt;QtDataVisualization::QScatterDataItem&gt;&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QSurface3DSeries">
- <enum-type name="DrawFlag" flags="DrawFlags"/>
- <modify-function signature="QSurface3DSeries(QtDataVisualization::QSurfaceDataProxy*,QObject*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setDataProxy(QtDataVisualization::QSurfaceDataProxy*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <value-type name="QSurfaceDataItem"/>
- <object-type name="QSurfaceDataProxy">
- <modify-function signature="addRow(QVector&lt;QtDataVisualization::QSurfaceDataItem&gt;*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertRow(int, QVector&lt;QtDataVisualization::QSurfaceDataItem&gt;*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setRow(int, QVector&lt;QtDataVisualization::QSurfaceDataItem&gt;*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="resetArray(QtDataVisualization::QSurfaceDataArray*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="Q3DBars">
- <modify-function signature="addAxis(QtDataVisualization::QAbstract3DAxis*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="releaseAxis(QtDataVisualization::QAbstract3DAxis*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- <inject-code file="../glue/qtdatavisualization.cpp" snippet="releaseownership"/>
- </modify-function>
- <modify-function signature="setColumnAxis(QtDataVisualization::QCategory3DAxis*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setRowAxis(QtDataVisualization::QCategory3DAxis*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="Q3DCamera">
- <enum-type name="CameraPreset"/>
- </object-type>
- <object-type name="Q3DLight"/>
- <object-type name="Q3DObject"/>
- <object-type name="Q3DScatter">
- <modify-function signature="addAxis(QtDataVisualization::QValue3DAxis*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="releaseAxis(QtDataVisualization::QValue3DAxis*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- <inject-code file="../glue/qtdatavisualization.cpp" snippet="releaseownership"/>
- </modify-function>
- <modify-function signature="setAxisX(QtDataVisualization::QValue3DAxis*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setAxisY(QtDataVisualization::QValue3DAxis*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setAxisZ(QtDataVisualization::QValue3DAxis*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="Q3DScene"/>
- <object-type name="Q3DSurface">
- <modify-function signature="addAxis(QtDataVisualization::QValue3DAxis*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="releaseAxis(QtDataVisualization::QValue3DAxis*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- <inject-code file="../glue/qtdatavisualization.cpp" snippet="releaseownership"/>
- </modify-function>
- <modify-function signature="setAxisX(QtDataVisualization::QValue3DAxis*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setAxisY(QtDataVisualization::QValue3DAxis*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setAxisZ(QtDataVisualization::QValue3DAxis*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QAbstract3DGraph">
- <enum-type name="ElementType"/>
- <enum-type name="OptimizationHint" flags="OptimizationHints"/>
- <enum-type name="SelectionFlag" flags="SelectionFlags"/>
- <enum-type name="ShadowQuality"/>
- <modify-function signature="addCustomItem(QtDataVisualization::QCustom3DItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addInputHandler(QtDataVisualization::QAbstract3DInputHandler*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addTheme(QtDataVisualization::Q3DTheme*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="releaseCustomItem(QtDataVisualization::QCustom3DItem*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- <inject-code file="../glue/qtdatavisualization.cpp" snippet="releaseownership"/>
- </modify-function>
- <modify-function signature="releaseInputHandler(QtDataVisualization::QAbstract3DInputHandler*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- <inject-code file="../glue/qtdatavisualization.cpp" snippet="releaseownership"/>
- </modify-function>
- <modify-function signature="releaseTheme(QtDataVisualization::Q3DTheme*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- <inject-code file="../glue/qtdatavisualization.cpp" snippet="releaseownership"/>
- </modify-function>
- <modify-function signature="setActiveInputHandler(QtDataVisualization::QAbstract3DInputHandler*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setActiveTheme(QtDataVisualization::Q3DTheme*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="Q3DInputHandler"/>
- <object-type name="QAbstract3DInputHandler">
- <enum-type name="InputView"/>
- </object-type>
- <object-type name="QTouch3DInputHandler"/>
- <object-type name="Q3DTheme">
- <enum-type name="ColorStyle"/>
- <enum-type name="Theme"/>
- </object-type>
- <extra-includes>
- <include file-name="qutils.h" location="global"/>
- </extra-includes>
- </namespace-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtGui/CMakeLists.txt b/sources/pyside2/PySide2/QtGui/CMakeLists.txt
deleted file mode 100644
index e16f077c7..000000000
--- a/sources/pyside2/PySide2/QtGui/CMakeLists.txt
+++ /dev/null
@@ -1,264 +0,0 @@
-project(QtGui)
-
-if (${QT_MAJOR_VERSION} GREATER_EQUAL 6)
- qt6_wrap_cpp(QPYTEXTOBJECT_MOC "${pyside2_SOURCE_DIR}/qpytextobject.h")
-else()
- qt5_wrap_cpp(QPYTEXTOBJECT_MOC "${pyside2_SOURCE_DIR}/qpytextobject.h")
-endif()
-
-set(QtGui_DROPPED_ENTRIES)
-
-get_property(QtGui_enabled_features TARGET Qt${QT_MAJOR_VERSION}::Gui PROPERTY INTERFACE_QT_ENABLED_FEATURES)
-
-set(QtGui_SRC
-${QtGui_GEN_DIR}/qabstractopenglfunctions_wrapper.cpp
-${QtGui_GEN_DIR}/qabstracttextdocumentlayout_paintcontext_wrapper.cpp
-${QtGui_GEN_DIR}/qabstracttextdocumentlayout_selection_wrapper.cpp
-${QtGui_GEN_DIR}/qabstracttextdocumentlayout_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessible_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessibleeditabletextinterface_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessibleevent_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessibleobject_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessiblestatechangeevent_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessibletablecellinterface_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessibletablemodelchangeevent_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessibletextcursorevent_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessibletextinsertevent_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessibletextinterface_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessibletextremoveevent_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessibletextselectionevent_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessibletextupdateevent_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessiblevaluechangeevent_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessiblevalueinterface_wrapper.cpp
-${QtGui_GEN_DIR}/qactionevent_wrapper.cpp
-${QtGui_GEN_DIR}/qbackingstore_wrapper.cpp
-${QtGui_GEN_DIR}/qbitmap_wrapper.cpp
-${QtGui_GEN_DIR}/qbrush_wrapper.cpp
-${QtGui_GEN_DIR}/qclipboard_wrapper.cpp
-${QtGui_GEN_DIR}/qcloseevent_wrapper.cpp
-${QtGui_GEN_DIR}/qcolor_wrapper.cpp
-${QtGui_GEN_DIR}/qconicalgradient_wrapper.cpp
-${QtGui_GEN_DIR}/qcontextmenuevent_wrapper.cpp
-${QtGui_GEN_DIR}/qcursor_wrapper.cpp
-${QtGui_GEN_DIR}/qdesktopservices_wrapper.cpp
-${QtGui_GEN_DIR}/qdoublevalidator_wrapper.cpp
-${QtGui_GEN_DIR}/qdrag_wrapper.cpp
-${QtGui_GEN_DIR}/qdragenterevent_wrapper.cpp
-${QtGui_GEN_DIR}/qdragleaveevent_wrapper.cpp
-${QtGui_GEN_DIR}/qdragmoveevent_wrapper.cpp
-${QtGui_GEN_DIR}/qdropevent_wrapper.cpp
-${QtGui_GEN_DIR}/qenterevent_wrapper.cpp
-${QtGui_GEN_DIR}/qexposeevent_wrapper.cpp
-${QtGui_GEN_DIR}/qfileopenevent_wrapper.cpp
-${QtGui_GEN_DIR}/qfocusevent_wrapper.cpp
-${QtGui_GEN_DIR}/qfont_wrapper.cpp
-${QtGui_GEN_DIR}/qfontdatabase_wrapper.cpp
-${QtGui_GEN_DIR}/qfontinfo_wrapper.cpp
-${QtGui_GEN_DIR}/qfontmetrics_wrapper.cpp
-${QtGui_GEN_DIR}/qfontmetricsf_wrapper.cpp
-${QtGui_GEN_DIR}/qgradient_wrapper.cpp
-${QtGui_GEN_DIR}/qguiapplication_wrapper.cpp
-${QtGui_GEN_DIR}/qhelpevent_wrapper.cpp
-${QtGui_GEN_DIR}/qhideevent_wrapper.cpp
-${QtGui_GEN_DIR}/qhoverevent_wrapper.cpp
-${QtGui_GEN_DIR}/qicon_wrapper.cpp
-${QtGui_GEN_DIR}/qicondragevent_wrapper.cpp
-${QtGui_GEN_DIR}/qiconengine_availablesizesargument_wrapper.cpp
-${QtGui_GEN_DIR}/qiconengine_wrapper.cpp
-${QtGui_GEN_DIR}/qimage_wrapper.cpp
-${QtGui_GEN_DIR}/qimageiohandler_wrapper.cpp
-${QtGui_GEN_DIR}/qimagereader_wrapper.cpp
-${QtGui_GEN_DIR}/qimagewriter_wrapper.cpp
-${QtGui_GEN_DIR}/qinputevent_wrapper.cpp
-${QtGui_GEN_DIR}/qinputmethod_wrapper.cpp
-${QtGui_GEN_DIR}/qinputmethodevent_attribute_wrapper.cpp
-${QtGui_GEN_DIR}/qinputmethodevent_wrapper.cpp
-${QtGui_GEN_DIR}/qinputmethodqueryevent_wrapper.cpp
-${QtGui_GEN_DIR}/qintvalidator_wrapper.cpp
-${QtGui_GEN_DIR}/qkeyevent_wrapper.cpp
-${QtGui_GEN_DIR}/qkeysequence_wrapper.cpp
-${QtGui_GEN_DIR}/qlineargradient_wrapper.cpp
-${QtGui_GEN_DIR}/qmatrix_wrapper.cpp
-${QtGui_GEN_DIR}/qmatrix2x2_wrapper.cpp
-${QtGui_GEN_DIR}/qmatrix2x3_wrapper.cpp
-${QtGui_GEN_DIR}/qmatrix2x4_wrapper.cpp
-${QtGui_GEN_DIR}/qmatrix3x2_wrapper.cpp
-${QtGui_GEN_DIR}/qmatrix3x3_wrapper.cpp
-${QtGui_GEN_DIR}/qmatrix3x4_wrapper.cpp
-${QtGui_GEN_DIR}/qmatrix4x2_wrapper.cpp
-${QtGui_GEN_DIR}/qmatrix4x3_wrapper.cpp
-${QtGui_GEN_DIR}/qmatrix4x4_wrapper.cpp
-${QtGui_GEN_DIR}/qmouseevent_wrapper.cpp
-${QtGui_GEN_DIR}/qmoveevent_wrapper.cpp
-${QtGui_GEN_DIR}/qmovie_wrapper.cpp
-${QtGui_GEN_DIR}/qnativegestureevent_wrapper.cpp
-${QtGui_GEN_DIR}/qoffscreensurface_wrapper.cpp
-${QtGui_GEN_DIR}/qopenglcontextgroup_wrapper.cpp
-${QtGui_GEN_DIR}/qopengldebuglogger_wrapper.cpp
-${QtGui_GEN_DIR}/qopengldebugmessage_wrapper.cpp
-${QtGui_GEN_DIR}/qopenglextrafunctions_wrapper.cpp
-${QtGui_GEN_DIR}/qopenglframebufferobjectformat_wrapper.cpp
-${QtGui_GEN_DIR}/qopenglfunctions_wrapper.cpp
-# Compile error on Windows: ${QtGui_GEN_DIR}/qopenglpaintdevice_wrapper.cpp
-${QtGui_GEN_DIR}/qopenglpixeltransferoptions_wrapper.cpp
-${QtGui_GEN_DIR}/qopenglshaderprogram_wrapper.cpp
-${QtGui_GEN_DIR}/qopengltexture_wrapper.cpp
-${QtGui_GEN_DIR}/qopengltextureblitter_wrapper.cpp
-${QtGui_GEN_DIR}/qopenglversionprofile_wrapper.cpp
-${QtGui_GEN_DIR}/qopenglvertexarrayobject_wrapper.cpp
-${QtGui_GEN_DIR}/qopenglvertexarrayobject_binder_wrapper.cpp
-${QtGui_GEN_DIR}/qopenglwindow_wrapper.cpp
-${QtGui_GEN_DIR}/qpagedpaintdevice_margins_wrapper.cpp
-${QtGui_GEN_DIR}/qpagedpaintdevice_wrapper.cpp
-${QtGui_GEN_DIR}/qpagelayout_wrapper.cpp
-${QtGui_GEN_DIR}/qpagesize_wrapper.cpp
-${QtGui_GEN_DIR}/qpaintdevice_wrapper.cpp
-${QtGui_GEN_DIR}/qpaintdevicewindow_wrapper.cpp
-${QtGui_GEN_DIR}/qpaintengine_wrapper.cpp
-${QtGui_GEN_DIR}/qpaintenginestate_wrapper.cpp
-${QtGui_GEN_DIR}/qpainter_pixmapfragment_wrapper.cpp
-${QtGui_GEN_DIR}/qpainter_wrapper.cpp
-${QtGui_GEN_DIR}/qpainterpath_element_wrapper.cpp
-${QtGui_GEN_DIR}/qpainterpath_wrapper.cpp
-${QtGui_GEN_DIR}/qpainterpathstroker_wrapper.cpp
-${QtGui_GEN_DIR}/qpaintevent_wrapper.cpp
-${QtGui_GEN_DIR}/qpalette_wrapper.cpp
-${QtGui_GEN_DIR}/qpdfwriter_wrapper.cpp
-${QtGui_GEN_DIR}/qpen_wrapper.cpp
-${QtGui_GEN_DIR}/qpicture_wrapper.cpp
-${QtGui_GEN_DIR}/qpictureio_wrapper.cpp
-${QtGui_GEN_DIR}/qpixmap_wrapper.cpp
-${QtGui_GEN_DIR}/qpixmapcache_key_wrapper.cpp
-${QtGui_GEN_DIR}/qpixmapcache_wrapper.cpp
-${QtGui_GEN_DIR}/qpixelformat_wrapper.cpp
-${QtGui_GEN_DIR}/qpointingdeviceuniqueid_wrapper.cpp
-${QtGui_GEN_DIR}/qpolygon_wrapper.cpp
-${QtGui_GEN_DIR}/qpolygonf_wrapper.cpp
-${QtGui_GEN_DIR}/qpytextobject_wrapper.cpp
-${QtGui_GEN_DIR}/qquaternion_wrapper.cpp
-${QtGui_GEN_DIR}/qradialgradient_wrapper.cpp
-${QtGui_GEN_DIR}/qregexpvalidator_wrapper.cpp
-${QtGui_GEN_DIR}/qregion_wrapper.cpp
-${QtGui_GEN_DIR}/qresizeevent_wrapper.cpp
-${QtGui_GEN_DIR}/qsessionmanager_wrapper.cpp
-${QtGui_GEN_DIR}/qshortcutevent_wrapper.cpp
-${QtGui_GEN_DIR}/qshowevent_wrapper.cpp
-${QtGui_GEN_DIR}/qstandarditem_wrapper.cpp
-${QtGui_GEN_DIR}/qstandarditemmodel_wrapper.cpp
-${QtGui_GEN_DIR}/qstatustipevent_wrapper.cpp
-${QtGui_GEN_DIR}/qopenglbuffer_wrapper.cpp
-${QtGui_GEN_DIR}/qopenglcontext_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessible_state_wrapper.cpp
-${QtGui_GEN_DIR}/qaccessibleinterface_wrapper.cpp
-${QtGui_GEN_DIR}/qscreen_wrapper.cpp
-${QtGui_GEN_DIR}/qopenglshader_wrapper.cpp
-#${QtGui_GEN_DIR}/qopenglshaderprogram_wrapper.cpp
-${QtGui_GEN_DIR}/qopenglframebufferobject_wrapper.cpp
-${QtGui_GEN_DIR}/qrasterwindow_wrapper.cpp
-${QtGui_GEN_DIR}/qrawfont_wrapper.cpp
-${QtGui_GEN_DIR}/qscrollevent_wrapper.cpp
-${QtGui_GEN_DIR}/qscrollprepareevent_wrapper.cpp
-${QtGui_GEN_DIR}/qstatictext_wrapper.cpp
-${QtGui_GEN_DIR}/qstylehints_wrapper.cpp
-${QtGui_GEN_DIR}/qsurface_wrapper.cpp
-${QtGui_GEN_DIR}/qsurfaceformat_wrapper.cpp
-${QtGui_GEN_DIR}/qsyntaxhighlighter_wrapper.cpp
-${QtGui_GEN_DIR}/qtabletevent_wrapper.cpp
-${QtGui_GEN_DIR}/qtextblock_iterator_wrapper.cpp
-${QtGui_GEN_DIR}/qtextblock_wrapper.cpp
-${QtGui_GEN_DIR}/qtextblockformat_wrapper.cpp
-${QtGui_GEN_DIR}/qtextblockgroup_wrapper.cpp
-${QtGui_GEN_DIR}/qtextblockuserdata_wrapper.cpp
-${QtGui_GEN_DIR}/qtextcharformat_wrapper.cpp
-${QtGui_GEN_DIR}/qtextcursor_wrapper.cpp
-${QtGui_GEN_DIR}/qtextdocument_wrapper.cpp
-${QtGui_GEN_DIR}/qtextdocumentfragment_wrapper.cpp
-${QtGui_GEN_DIR}/qtextdocumentwriter_wrapper.cpp
-${QtGui_GEN_DIR}/qtextformat_wrapper.cpp
-${QtGui_GEN_DIR}/qtextfragment_wrapper.cpp
-${QtGui_GEN_DIR}/qtextframe_iterator_wrapper.cpp
-${QtGui_GEN_DIR}/qtextframe_wrapper.cpp
-${QtGui_GEN_DIR}/qtextframeformat_wrapper.cpp
-${QtGui_GEN_DIR}/qtextimageformat_wrapper.cpp
-${QtGui_GEN_DIR}/qtextinlineobject_wrapper.cpp
-${QtGui_GEN_DIR}/qtextitem_wrapper.cpp
-${QtGui_GEN_DIR}/qtextlayout_formatrange_wrapper.cpp
-${QtGui_GEN_DIR}/qtextlayout_wrapper.cpp
-${QtGui_GEN_DIR}/qtextlength_wrapper.cpp
-${QtGui_GEN_DIR}/qtextline_wrapper.cpp
-${QtGui_GEN_DIR}/qtextlist_wrapper.cpp
-${QtGui_GEN_DIR}/qtextlistformat_wrapper.cpp
-${QtGui_GEN_DIR}/qtextobject_wrapper.cpp
-${QtGui_GEN_DIR}/qtextobjectinterface_wrapper.cpp
-${QtGui_GEN_DIR}/qtextoption_tab_wrapper.cpp
-${QtGui_GEN_DIR}/qtextoption_wrapper.cpp
-${QtGui_GEN_DIR}/qtexttable_wrapper.cpp
-${QtGui_GEN_DIR}/qtexttablecell_wrapper.cpp
-${QtGui_GEN_DIR}/qtexttablecellformat_wrapper.cpp
-${QtGui_GEN_DIR}/qtexttableformat_wrapper.cpp
-${QtGui_GEN_DIR}/qtoolbarchangeevent_wrapper.cpp
-${QtGui_GEN_DIR}/qtouchdevice_wrapper.cpp
-${QtGui_GEN_DIR}/qtouchevent_touchpoint_wrapper.cpp
-${QtGui_GEN_DIR}/qtouchevent_wrapper.cpp
-${QtGui_GEN_DIR}/qtransform_wrapper.cpp
-${QtGui_GEN_DIR}/qt_wrapper.cpp
-${QtGui_GEN_DIR}/qvalidator_wrapper.cpp
-${QtGui_GEN_DIR}/qvector2d_wrapper.cpp
-${QtGui_GEN_DIR}/qvector3d_wrapper.cpp
-${QtGui_GEN_DIR}/qvector4d_wrapper.cpp
-${QtGui_GEN_DIR}/qwhatsthisclickedevent_wrapper.cpp
-${QtGui_GEN_DIR}/qwheelevent_wrapper.cpp
-${QtGui_GEN_DIR}/qwindow_wrapper.cpp
-${QtGui_GEN_DIR}/qwindowstatechangeevent_wrapper.cpp
-# module is always needed
-${QtGui_GEN_DIR}/qtgui_module_wrapper.cpp
-)
-
-if (Qt${QT_MAJOR_VERSION}Gui_VERSION VERSION_EQUAL 5.14.0
- OR Qt${QT_MAJOR_VERSION}Gui_VERSION VERSION_GREATER 5.14.0)
- list(APPEND QtGui_SRC ${QtGui_GEN_DIR}/qcolorspace_wrapper.cpp)
-endif()
-
-# cf qtbase/src/gui/opengl/opengl.pri
-list(FIND QtGui_enabled_features "opengles2" _opengles2Index)
-# ### fixme: For cmake >= 3.3: if(opengles2 IN_LIST QtGui_enabled_features)
-if(_opengles2Index GREATER -1)
- list(APPEND QtGui_DROPPED_ENTRIES QOpenGLTimeMonitor QOpenGLTimerQuery)
- message(STATUS "Qt${QT_MAJOR_VERSION}Gui: Dropping Desktop OpenGL classes (GLES2)")
-else()
- list(APPEND QtGui_SRC
- ${QtGui_GEN_DIR}/qopengltimemonitor_wrapper.cpp
- ${QtGui_GEN_DIR}/qopengltimerquery_wrapper.cpp)
- message(STATUS "Qt${QT_MAJOR_VERSION}Gui: Adding Desktop OpenGL classes")
-endif()
-
-configure_file("${QtGui_SOURCE_DIR}/typesystem_gui.xml.in"
- "${QtGui_BINARY_DIR}/typesystem_gui.xml" @ONLY)
-
-configure_file("${QtGui_SOURCE_DIR}/QtGui_global.post.h.in"
- "${QtGui_BINARY_DIR}/QtGui_global.post.h" @ONLY)
-
-set(QtGui_include_dirs ${QtGui_SOURCE_DIR}
- ${QtGui_BINARY_DIR}
- ${pyside2_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- )
-set(QtGui_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES})
-set(QtGui_deps QtCore)
-
-create_pyside_module(NAME QtGui
- INCLUDE_DIRS QtGui_include_dirs
- LIBRARIES QtGui_libraries
- DEPS QtGui_deps
- TYPESYSTEM_PATH QtGui_SOURCE_DIR
- SOURCES QtGui_SRC
- STATIC_SOURCES QPYTEXTOBJECT_MOC
- TYPESYSTEM_NAME ${QtGui_BINARY_DIR}/typesystem_gui.xml
- DROPPED_ENTRIES QtGui_DROPPED_ENTRIES)
-
-install(FILES ${pyside2_SOURCE_DIR}/qpytextobject.h DESTINATION include/PySide2/QtGui/)
-
diff --git a/sources/pyside2/PySide2/QtGui/QtGui_global.post.h.in b/sources/pyside2/PySide2/QtGui/QtGui_global.post.h.in
deleted file mode 100644
index 6d3a3eeac..000000000
--- a/sources/pyside2/PySide2/QtGui/QtGui_global.post.h.in
+++ /dev/null
@@ -1 +0,0 @@
-#include "qpytextobject.h" // PySide class
diff --git a/sources/pyside2/PySide2/QtGui/typesystem_gui.xml.in b/sources/pyside2/PySide2/QtGui/typesystem_gui.xml.in
deleted file mode 100644
index dfd5a9c5b..000000000
--- a/sources/pyside2/PySide2/QtGui/typesystem_gui.xml.in
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtGui">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="QtGui/typesystem_gui_@AUTO_OS@.xml" generate="yes"/>
- <load-typesystem name="QtGui/typesystem_gui_common.xml" generate="yes"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml b/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml
deleted file mode 100644
index 13f8f3cbf..000000000
--- a/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml
+++ /dev/null
@@ -1,3051 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtGui">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="templates/core_common.xml" generate="no"/>
- <load-typesystem name="templates/gui_common.xml" generate="no"/>
- <load-typesystem name="templates/openglfunctions_common.xml" generate="no"/>
-
-
- <rejection class="^Q.*$" argument-type="^QPlatform.*$"/>
- <function signature="qAlpha(uint)"/>
- <function signature="qBlue(uint)"/>
- <function signature="qGray(int,int,int)"/>
- <function signature="qGray(uint)"/>
- <function signature="qGreen(uint)"/>
- <function signature="qIsGray(uint)"/>
- <function signature="qRed(uint)"/>
- <function signature="qRgb(int,int,int)"/>
- <function signature="qRgba(int,int,int,int)"/>
- <function signature="qFuzzyCompare(QMatrix,QMatrix)"/>
- <function signature="qFuzzyCompare(QTransform,QTransform)"/>
- <function signature="qFuzzyCompare(QQuaternion,QQuaternion)"/>
- <function signature="qFuzzyCompare(QMatrix4x4,QMatrix4x4)"/>
- <function signature="qFuzzyCompare(QVector2D,QVector2D)"/>
- <function signature="qFuzzyCompare(QVector3D,QVector3D)"/>
- <function signature="qFuzzyCompare(QVector4D,QVector4D)"/>
- <rejection class="*" function-name="qobject_interface_iid&lt;QStyleFactoryInterface*&gt;"/>
- <rejection class="*" function-name="qobject_interface_iid&lt;QAccessibleFactoryInterface*&gt;"/>
- <rejection class="*" function-name="qobject_interface_iid&lt;QInputContextFactoryInterface*&gt;"/>
- <rejection class="*" function-name="qobject_interface_iid&lt;QGraphicsItem*&gt;"/>
- <rejection class="*" function-name="qobject_interface_iid&lt;QGraphicsLayout*&gt;"/>
- <rejection class="*" function-name="qobject_interface_iid&lt;QAccessibleBridgeFactoryInterface*&gt;"/>
- <rejection class="*" function-name="qobject_interface_iid&lt;QImageIOHandlerFactoryInterface*&gt;"/>
- <rejection class="*" function-name="qobject_interface_iid&lt;QAccessibleInterface*&gt;"/>
- <rejection class="*" function-name="qobject_interface_iid&lt;QTextObjectInterface*&gt;"/>
- <rejection class="*" function-name="qobject_interface_iid&lt;QGraphicsLayoutItem*&gt;"/>
- <rejection class="*" function-name="qobject_interface_iid&lt;QIconEngineFactoryInterface*&gt;"/>
- <rejection class="*" function-name="qobject_interface_iid&lt;QPictureFormatInterface*&gt;"/>
-
- <rejection class="*" function-name="qobject_cast&lt;QGraphicsLayout*&gt;"/>
- <rejection class="*" function-name="qobject_cast&lt;QGraphicsItem*&gt;"/>
- <rejection class="*" function-name="qobject_cast&lt;QGraphicsLayoutItem*&gt;"/>
- <rejection class="*" function-name="qobject_cast&lt;QGraphicsLayoutItem*&gt;"/>
-
- <rejection class="*" function-name="qGenericMatrixFromMatrix4x4"/>
- <rejection class="*" function-name="qDrawBorderPixmap"/>
- <rejection class="*" function-name="qDrawPixmaps"/>
- <rejection class="*" function-name="qGenericMatrixToMatrix4x4"/>
-
- <rejection class="*" function-name="d_func"/>
- <rejection class="*" field-name="d_ptr"/>
- <rejection class="*" field-name="d"/>
- <rejection class="^QOpenGL.*$" argument-type="^(const )?GLboolean ?\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="^GLchar\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="^(const )?GLchar ?\*(const)?\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="^char\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="^(const )?char ?\*\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="GLintptr"/>
- <rejection class="^QOpenGL.*$" argument-type="GLsizeiptr"/>
- <rejection class="^QOpenGL.*$" argument-type="GLsync"/>
- <rejection class="^QOpenGL.*$" argument-type="^GLubyte( const)?\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="^(const )?QMatrix.x. ?\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="qopengl_GLintptr"/>
- <rejection class="^QOpenGL.*$" argument-type="qopengl_GLsizeiptr"/>
- <rejection class="^QOpenGL.*$" argument-type="QOpenGLTextureHelper*"/>
- <rejection class="^QOpenGL.*$" argument-type="^(const )?QVector.D ?\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="^(const )?void ?\*\*$"/>
-
- <!--
- Event classes have a lot of non-documented protected fields, those fields
- are removed from PySide because they are Qt implementation details,
- besides the fact they are accessible by ordinary event methods.
- -->
-
- <rejection class="^QAccessible.*Event$" field-name="^m_.*$"/>
-
- <rejection class="QEnterEvent" field-name="l"/>
- <rejection class="QEnterEvent" field-name="w"/>
- <rejection class="QEnterEvent" field-name="s"/>
-
- <rejection class="QInputEvent" field-name="modState"/>
- <rejection class="QInputEvent" field-name="modState"/>
-
- <rejection class="QMouseEvent" field-name="p"/>
- <rejection class="QMouseEvent" field-name="g"/>
- <rejection class="QMouseEvent" field-name="b"/>
- <rejection class="QMouseEvent" field-name="mouseState"/>
- <rejection class="QNativeGestureEvent" field-name="^m.*$"/>
-
- <rejection class="QHoverEvent" field-name="p"/>
- <rejection class="QHoverEvent" field-name="op"/>
-
- <rejection class="QWheelEvent" field-name="p"/>
- <rejection class="QWheelEvent" field-name="g"/>
- <rejection class="QWheelEvent" field-name="mouseState"/>
- <rejection class="QWheelEvent" field-name="o"/>
-
- <rejection class="QTabletEvent" field-name="mPos"/>
- <rejection class="QTabletEvent" field-name="mGPos"/>
- <rejection class="QTabletEvent" field-name="mHiResGlobalPos"/>
- <rejection class="QTabletEvent" field-name="mDev"/>
- <rejection class="QTabletEvent" field-name="mPointerType"/>
- <rejection class="QTabletEvent" field-name="mXT"/>
- <rejection class="QTabletEvent" field-name="mYT"/>
- <rejection class="QTabletEvent" field-name="mZ"/>
- <rejection class="QTabletEvent" field-name="mPress"/>
- <rejection class="QTabletEvent" field-name="mTangential"/>
- <rejection class="QTabletEvent" field-name="mRot"/>
- <rejection class="QTabletEvent" field-name="mUnique"/>
- <rejection class="QTabletEvent" field-name="mExtra"/>
-
- <rejection class="QKeyEvent" field-name="txt"/>
- <rejection class="QKeyEvent" field-name="k"/>
- <rejection class="QKeyEvent" field-name="c"/>
- <rejection class="QKeyEvent" field-name="auto"/>
-
- <rejection class="QPaintEvent" field-name="m_rect"/>
- <rejection class="QPaintEvent" field-name="m_region"/>
- <rejection class="QPaintEvent" field-name="m_erased"/>
-
- <rejection class="QMoveEvent" field-name="p"/>
- <rejection class="QMoveEvent" field-name="oldp"/>
-
- <rejection class="QResizeEvent" field-name="s"/>
- <rejection class="QResizeEvent" field-name="olds"/>
-
- <rejection class="QContextMenuEvent" field-name="p"/>
- <rejection class="QContextMenuEvent" field-name="gp"/>
- <rejection class="QContextMenuEvent" field-name="reas"/>
-
- <rejection class="QDropEvent" field-name="p"/>
- <rejection class="QDropEvent" field-name="mouseState"/>
- <rejection class="QDropEvent" field-name="modState"/>
- <rejection class="QDropEvent" field-name="act"/>
- <rejection class="QDropEvent" field-name="drop_action"/>
- <rejection class="QDropEvent" field-name="default_action"/>
- <rejection class="QDropEvent" field-name="mdata"/>
- <rejection class="QDropEvent" field-name="fmts"/>
-
- <rejection class="QDragMoveEvent" field-name="rect"/>
-
- <rejection class="QShortcutEvent" field-name="sequence"/>
- <rejection class="QShortcutEvent" field-name="ambig"/>
- <rejection class="QShortcutEvent" field-name="sid"/>
-
- <rejection class="QTouchEvent" field-name="_device"/>
- <rejection class="QTouchEvent" field-name="_widget"/>
- <rejection class="QTouchEvent" field-name="_window"/>
- <rejection class="QTouchEvent" field-name="_deviceType"/>
- <rejection class="QTouchEvent" field-name="_touchPointStates"/>
- <rejection class="QTouchEvent" field-name="_touchPoints"/>
-
- <rejection class="QAbstractTextDocumentLayout::PaintContext" field-name="selections"/>
- <rejection class="QBrush" function-name="cleanUp"/>
- <rejection class="QFont" enum-name="ResolveProperties"/>
- <rejection class="QMotifStyle" field-name="focus"/>
- <rejection class="QPictureIO" function-name="defineIOHandler"/>
- <rejection class="QPolygon" function-name="putPoints"/>
- <rejection class="QPolygon" function-name="setPoints"/>
- <rejection class="QPolygon" function-name="setPoint"/>
- <rejection class="QPolygon" function-name="points"/>
- <rejection class="QPolygon" function-name="point"/>
- <rejection class="QActionGroup" function-name="selected"/>
- <rejection class="QPaintEngine" function-name="fix_neg_rect"/>
-
- <!-- For Qt::mightBeRichText(QString), Qt::convertFromPlainText(QString,Qt::WhiteSpaceMode)
- Match on files from '/QtGui/' (shadow build) or '/gui/' (developer build)
- or '/QtGui.framework' (macOS) -->
- <namespace-type name="Qt" files="^.*/(gui|QtGui)[/.].*\.h$" extends="PySide2.QtCore"/>
-
- <primitive-type name="WId" target-lang-api-name="PyLong">
- <conversion-rule>
- <native-to-target file="../glue/qtgui.cpp" snippet="return-pylong-voidptr"/>
- <target-to-native>
- <add-conversion type="PyLong" file="../glue/qtgui.cpp" snippet="conversion-pylong"/>
- </target-to-native>
- </conversion-rule>
- </primitive-type>
-
- <value-type name="QAccessible">
- <value-type name="State"/>
- <enum-type name="Event"/>
- <enum-type name="Role"/>
- <enum-type name="Text"/>
- <enum-type name="RelationFlag" flags="Relation"/>
- <enum-type name="InterfaceType"/>
- <enum-type name="TextBoundaryType"/>
- </value-type>
-
- <object-type name="QAccessibleEditableTextInterface"/>
- <object-type name="QAccessibleInterface"/>
- <object-type name="QAccessibleObject"/>
- <object-type name="QAccessibleTableCellInterface"/>
- <object-type name="QAccessibleTextInterface"/>
- <object-type name="QAccessibleValueInterface"/>
-
- <object-type name="QAccessibleEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QAccessible::InvalidEvent"/>
- <object-type name="QAccessibleStateChangeEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QAccessible::StateChanged"/>
- <object-type name="QAccessibleTableModelChangeEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QAccessible::TableModelChanged">
- <enum-type name="ModelChangeType"/>
- </object-type>
- <object-type name="QAccessibleTextCursorEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QAccessible::TextCaretMoved"/>
- <object-type name="QAccessibleTextInsertEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QAccessible::TextInserted"/>
- <object-type name="QAccessibleTextRemoveEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QAccessible::TextRemoved"/>
- <object-type name="QAccessibleTextSelectionEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QAccessible::TextSelectionChanged"/>
- <object-type name="QAccessibleTextUpdateEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QAccessible::TextUpdated"/>
- <object-type name="QAccessibleValueChangeEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QAccessible::ValueChanged"/>
-
- <value-type name="QTransform">
- <enum-type name="TransformationType"/>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%f, %f, %f, %f, %f, %f, %f, %f, %f"/>
- <replace from="%REPR_ARGS"
- to="%CPPSELF.m11(), %CPPSELF.m12(), %CPPSELF.m13(), %CPPSELF.m21(), %CPPSELF.m22(), %CPPSELF.m23(), %CPPSELF.m31(), %CPPSELF.m32(), %CPPSELF.m33()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="ddddddddd"/>
- <replace from="%REDUCE_ARGS"
- to="%CPPSELF.m11(), %CPPSELF.m12(), %CPPSELF.m13(), %CPPSELF.m21(), %CPPSELF.m22(), %CPPSELF.m23(), %CPPSELF.m31(), %CPPSELF.m32(), %CPPSELF.m33()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <modify-function signature="map(qreal,qreal,qreal*,qreal*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,number*,number*">
- <replace from="$TYPE" to="qreal"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <!-- ### This is just an overload to "map(qreal,qreal,qreal*,qreal*)const" and can be discarded in Python -->
- <modify-function signature="map(int,int,int*,int*)const" remove="all"/>
- <!-- ### -->
-
- <modify-function signature="inverted(bool*)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyTuple"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*"/>
- </inject-code>
- </modify-function>
- <add-function signature="quadToQuad(QPolygonF&amp;,QPolygonF&amp;)" return-type="PyObject*" static="true">
- <inject-code file="../glue/qtgui.cpp" snippet="qtransform-quadtoquad"/>
- </add-function>
- <add-function signature="quadToSquare(QPolygonF &amp;)" return-type="PyObject*" static="true">
- <inject-code file="../glue/qtgui.cpp" snippet="qtransform-quadtosquare"/>
- </add-function>
-
- <add-function signature="squareToQuad(QPolygonF &amp;)" return-type="PyObject*" static="true">
- <inject-code file="../glue/qtgui.cpp" snippet="qtransform-squaretoquad"/>
- </add-function>
- <!-- Disambiguate from Qt3DCore/qtransform.h -->
- <include file-name="QtGui/qtransform.h" location="global"/>
- </value-type>
-
- <value-type name="QStaticText">
- <enum-type name="PerformanceHint"/>
- </value-type>
- <value-type name="QTextFragment"/>
- <value-type name="QBitmap" >
- <modify-function signature="fromData(QSize,const uchar*,QImage::Format)">
- <modify-argument index="2">
- <replace-type modified-type="PyBuffer"/>
- </modify-argument>
- <inject-code file="../glue/qtgui.cpp" snippet="qbitmap-fromdata"/>
- </modify-function>
- </value-type>
- <value-type name="QTextInlineObject"/>
- <value-type name="QTextDocumentFragment"/>
- <value-type name="QTextOption">
- <enum-type name="Flag" flags="Flags"/>
- <enum-type name="TabType"/>
- <enum-type name="WrapMode"/>
- <value-type name="Tab"/>
- </value-type>
- <value-type name="QTextLine" >
- <enum-type name="CursorPosition"/>
- <enum-type name="Edge"/>
- <modify-function signature="cursorToX(int*,QTextLine::Edge)const" remove="all"/>
- <modify-function signature="cursorToX(int,QTextLine::Edge)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qtextline-cursortox"/>
- </modify-function>
- <modify-function signature="xToCursor(qreal,QTextLine::CursorPosition)const">
- <modify-argument index="2">
- <rename to="edge"/>
- </modify-argument>
- </modify-function>
- </value-type>
- <value-type name="QTextTableFormat"/>
- <value-type name="QTextImageFormat"/>
- <value-type name="QTextFrameFormat" >
- <enum-type name="BorderStyle"/>
- <enum-type name="Position"/>
- </value-type>
- <value-type name="QTextLength">
- <enum-type name="Type"/>
- </value-type>
- <value-type name="QPainterPath">
- <enum-type name="ElementType"/>
- <value-type name="Element">
- <include file-name="QPainterPath" location="global"/>
- </value-type>
- </value-type>
- <value-type name="QPalette">
- <enum-type name="ColorGroup"/>
- <enum-type name="ColorRole"/>
- </value-type>
- <object-type name="QInputMethod">
- <enum-type name="Action"/>
- </object-type>
- <value-type name="QKeySequence">
- <enum-type name="SequenceFormat"/>
- <enum-type name="SequenceMatch"/>
- <enum-type name="StandardKey"/>
-
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%i, %i, %i, %i"/>
- <replace from="%REPR_ARGS"
- to="(*%CPPSELF)[0], (*%CPPSELF)[1], (*%CPPSELF)[2], (*%CPPSELF)[3]"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="iiii"/>
- <replace from="%REDUCE_ARGS" to="(*%CPPSELF)[0], (*%CPPSELF)[1], (*%CPPSELF)[2], (*%CPPSELF)[3]"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <modify-function signature="operator[](uint)const" remove="all"/>
- <add-function signature="__getitem__">
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qkeysequence-getitem"/>
- </add-function>
-
- <!-- ### Not necessary due the PySide QVariant conversion rules -->
- <modify-function signature="operator QVariant()const" remove="all"/>
- </value-type>
- <value-type name="QPicture" >
- <modify-function signature="load(QIODevice*,const char*)" allow-thread="yes"/>
- <modify-function signature="load(const QString&amp;,const char*)" allow-thread="yes"/>
- <modify-function signature="save(QIODevice*,const char*)" allow-thread="yes"/>
- <modify-function signature="save(const QString&amp;,const char*)" allow-thread="yes"/>
- <!-- See bug 759 -->
- <modify-function signature="data()const">
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <inject-code file="../glue/qtgui.cpp" snippet="qpicture-data"/>
- </modify-function>
- <modify-function signature="setData(const char*,uint)">
- <modify-argument index="1">
- <replace-type modified-type="PyBuffer"/>
- <conversion-rule class="target">
- <insert-template name="const_char_pybuffer"/>
- </conversion-rule>
- <conversion-rule class="native">
- <insert-template name="pybuffer_const_char"/>
- </conversion-rule>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- <conversion-rule class="native">
- <insert-template name="uint_remove"/>
- </conversion-rule>
- </modify-argument>
- </modify-function>
- </value-type>
- <value-type name="QRegion" >
- <enum-type name="RegionType"/>
- <!-- ### This operator does not make sense in Python. -->
- <modify-function signature="operator&amp;=(QRegion)" remove="all"/>
- <modify-function signature="operator&amp;=(QRect)" remove="all"/>
- <!-- ### -->
- </value-type>
-
- <value-type name="QTextBlock">
- <value-type name="iterator" >
- <include file-name="QTextBlock" location="global"/>
- <!-- ### These operators where removed because they don't make sense in Python.
- The iterator methods (__iter__, next) replace this functionality. -->
- <modify-function signature="operator++()" remove="all"/>
- <modify-function signature="operator--()" remove="all"/>
- <!-- ### -->
- <add-function signature="__iter__()" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="__iter__"/>
- </inject-code>
- </add-function>
- <add-function signature="__next__()" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="__next__">
- <replace from="%CPPSELF_TYPE" to="QTextBlock::iterator"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
- <add-function signature="__iter__()" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="__iter_parent__">
- <replace from="%CPPSELF_TYPE" to="QTextBlock::iterator"/>
- </insert-template>
- </inject-code>
- </add-function>
- <modify-function signature="setUserData(QTextBlockUserData*)">
- <inject-code class="target" position="end" file="../glue/qtgui.cpp" snippet="qtextblock-setuserdata"/>
- </modify-function>
- <modify-function signature="userData()const">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtgui.cpp" snippet="qtextblock-userdata"/>
- </modify-function>
- </value-type>
- <value-type name="QTextBlockFormat">
- <enum-type name="LineHeightTypes" since="4.8" revision="4800"/>
- <enum-type name="MarkerType" since="5.14"/>
- </value-type>
- <value-type name="QTextTableCellFormat"/>
- <value-type name="QTextCharFormat" >
- <enum-type name="FontPropertiesInheritanceBehavior"/>
- <enum-type name="UnderlineStyle"/>
- <enum-type name="VerticalAlignment"/>
- </value-type>
- <value-type name="QTextFormat" >
- <enum-type name="FormatType"/>
- <enum-type name="ObjectTypes"/>
- <enum-type name="PageBreakFlag" flags="PageBreakFlags"/>
- <enum-type name="Property"/>
- </value-type>
- <value-type name="QTextListFormat">
- <enum-type name="Style"/>
- </value-type>
- <value-type name="QPolygon">
- <extra-includes>
- <include file-name="QMatrix" location="global"/>
- <include file-name="QTransform" location="global"/>
- </extra-includes>
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qpolygon-reduce">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="N"/>
- <replace from="%REDUCE_ARGS" to="points"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <!-- ### "QPolygon(int, const int*)" is an internal constructor. -->
- <modify-function signature="QPolygon(int,const int*)" remove="all"/>
- <!-- ### A QVector parameter, for no defined type, will generate wrong code. -->
- <modify-function signature="operator+=(QVector&lt;QPoint&gt;)" remove="all"/>
- <modify-function signature="operator&lt;&lt;(QPoint)">
- <inject-code file="../glue/qtgui.cpp" snippet="qpolygon-operatorlowerlower"/>
- </modify-function>
- <modify-function signature="operator&lt;&lt;(QVector&lt;QPoint&gt;)">
- <inject-code file="../glue/qtgui.cpp" snippet="qpolygon-operatorlowerlower"/>
- </modify-function>
- <!-- ### -->
- </value-type>
- <value-type name="QPolygonF">
- <extra-includes>
- <include file-name="QMatrix" location="global"/>
- <include file-name="QTransform" location="global"/>
- </extra-includes>
- <!-- ### A QVector parameter, for no defined type, will generate wrong code. -->
- <modify-function signature="operator+=(QVector&lt;QPointF&gt;)" remove="all"/>
- <!-- ### See bug 776 -->
- <modify-function signature="operator&lt;&lt;(QPointF)" remove="all"/>
- <!-- ### See bug 777 -->
- <modify-function signature="operator&lt;&lt;(QVector&lt;QPointF&gt;)" remove="all"/>
- <!-- ### -->
- </value-type>
- <value-type name="QIcon" >
- <enum-type name="Mode"/>
- <enum-type name="State"/>
- <modify-function signature="QIcon(QIconEngine*)">
- <modify-argument index="1">
- <no-null-pointer/>
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </value-type>
-
- <value-type name="QPixmap" >
- <!--<conversion-rule>-->
- <!--<target-to-native replace="no">-->
- <!--<add-conversion type="QVariant" check="%CHECKTYPE[QVariant](%in)">-->
- <!--QVariant in = %CONVERTTOCPP[QVariant](%in);-->
- <!--%out = in.value&lt;%OUTTYPE&gt;();-->
- <!--</add-conversion>-->
- <!--</target-to-native>-->
- <!--</conversion-rule>-->
- <add-function signature="QPixmap(const QImage&amp;)">
- <modify-argument index="1">
- <rename to="image"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qpixmap"/>
- </add-function>
- <modify-function signature="QPixmap(const char*const[])">
- <modify-argument index="1">
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="load_xpm"/>
- </inject-code>
- </modify-function>
-
- <!-- ### Operator ! doesn't make sense in Python. -->
- <modify-function signature="operator!()const" remove="all"/>
-
- <modify-function signature="loadFromData(const uchar*,uint,const char*,QFlags&lt;Qt::ImageConversionFlag&gt;)">
- <inject-documentation format="target" mode="append">
- This method must be used with an QPixmap object, not the class:
-
- ::
-
- # Wrong
- pixmap = QPixmap.loadFromData(...)
-
- # Right
- pixmap = QPixmap().loadFromData(...)
-
- </inject-documentation>
- <modify-argument index="1">
- <replace-type modified-type="PyBytes"/>
- <conversion-rule class="native">
- <insert-template name="pybytes_const_uchar"/>
- </conversion-rule>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- <conversion-rule class="native">
- <insert-template name="pybytes_uint"/>
- </conversion-rule>
- </modify-argument>
- </modify-function>
- </value-type>
- <value-type name="QTextCursor" >
- <extra-includes>
- <include file-name="QTextBlock" location="global"/>
- <include file-name="QTextDocumentFragment" location="global"/>
- </extra-includes>
- <enum-type name="MoveMode"/>
- <enum-type name="MoveOperation"/>
- <enum-type name="SelectionType"/>
- <modify-function signature="selectedTableCells(int*,int*,int*,int*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="int"/>
- </insert-template>
- </inject-code>
- <inject-code class="native" position="end">
- <insert-template name="fix_native_return_number*,number*,number*,number*">
- <replace from="$TYPE" to="int"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="currentFrame()const">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertTable(int,int,const QTextTableFormat &amp;)">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertTable(int,int)">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- </value-type>
-
- <!-- Qt5: this _should_ be obsolete, but QImage is still using it... -->
- <value-type name="QMatrix">
- <extra-includes>
- <include file-name="QPainterPath" location="global"/>
- </extra-includes>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%f, %f, %f, %f, %f, %f"/>
- <replace from="%REPR_ARGS"
- to="%CPPSELF.m11(), %CPPSELF.m12(), %CPPSELF.m21(), %CPPSELF.m22(), %CPPSELF.dx(), %CPPSELF.dy()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="dddddd"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.m11(), %CPPSELF.m12(), %CPPSELF.m21(), %CPPSELF.m22(), %CPPSELF.dx(), %CPPSELF.dy()"/>
- </insert-template>
- </inject-code>
- </add-function>
- <modify-function signature="map(int,int,int*,int*)const">
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <modify-argument index="4">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="qmatrix_map"/>
- </inject-code>
- </modify-function>
- <modify-function signature="map(qreal,qreal,qreal*,qreal*)const">
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <modify-argument index="4">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="qmatrix_map"/>
- </inject-code>
- </modify-function>
- <modify-function signature="map(const QPoint&amp;)const">
- <modify-argument index="return">
- <replace-type modified-type="QPoint"/>
- </modify-argument>
- <inject-code file="../glue/qtgui.cpp" snippet="qmatrix-map-point" />
- </modify-function>
- <modify-function signature="inverted(bool*)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyTuple"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*"/>
- </inject-code>
- </modify-function>
- </value-type>
-
- <value-type name="QConicalGradient" polymorphic-id-expression="%1-&gt;type() == QGradient::ConicalGradient"/>
- <value-type name="QFontInfo"/>
- <value-type name="QRadialGradient" polymorphic-id-expression="%1-&gt;type() == QGradient::RadialGradient"/>
- <value-type name="QFont" >
- <enum-type name="Capitalization"/>
- <enum-type name="SpacingType"/>
- <enum-type name="Stretch"/>
- <enum-type name="Style"/>
- <enum-type name="StyleHint"/>
- <enum-type name="StyleStrategy"/>
- <enum-type name="Weight"/>
- <enum-type name="HintingPreference" since="4.8" revision="4800"/>
- <extra-includes>
- <include file-name="QStringList" location="global"/>
- </extra-includes>
- <modify-function signature="setStyleHint(QFont::StyleHint,QFont::StyleStrategy)">
- <modify-argument index="2">
- <rename to="strategy"/>
- </modify-argument>
- </modify-function>
- </value-type>
- <value-type name="QTextTableCell" >
- <extra-includes>
- <include file-name="QTextCursor" location="global"/>
- </extra-includes>
- </value-type> <!--
- <function signature="QImageCleanupFunction(void*)">
- <extra-includes>
- <include file-name="QImage" location="global"/>
- </extra-includes>
- </function> -->
- <primitive-type name="QImageCleanupFunction"/>
- <value-type name="QImage">
- <enum-type name="Format"/>
- <enum-type name="InvertMode"/>
- <extra-includes>
- <include file-name="QStringList" location="global"/>
- <include file-name="QMatrix" location="global"/>
- </extra-includes>
-
- <modify-function signature="load(const QString&amp;, const char*)" allow-thread="yes"/>
- <modify-function signature="load(QIODevice*,const char*)" allow-thread="yes"/>
- <modify-function signature="save(const QString&amp;,const char*,int)const" allow-thread="yes"/>
- <modify-function signature="save(QIODevice*,const char*,int)const" allow-thread="yes"/>
-
- <modify-function signature="QImage(uchar*,int,int,int,QImage::Format,QImageCleanupFunction,void*)">
- <modify-argument index="1">
- <replace-type modified-type="PyBuffer"/>
- </modify-argument>
- <inject-code>
- <insert-template name="qimage_buffer_constructor">
- <replace from="%ARGS" to="%2, %3, %4, %5"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="QImage(uchar*,int,int,QImage::Format,QImageCleanupFunction,void*)">
- <modify-argument index="1">
- <replace-type modified-type="PyBuffer"/>
- </modify-argument>
- <inject-code>
- <insert-template name="qimage_buffer_constructor">
- <replace from="%ARGS" to="%2, %3, %4"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <add-function signature="QImage(QString&amp;,int,int,int,QImage::Format)">
- <inject-code>
- <insert-template name="qimage_buffer_constructor">
- <replace from="%ARGS" to="%2, %3, %4, %5"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="QImage(QString&amp;,int,int,QImage::Format)">
- <inject-code>
- <insert-template name="qimage_buffer_constructor">
- <replace from="%ARGS" to="%2, %3, %4"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <!-- The non-const versions are already used -->
- <modify-function signature="QImage(const uchar*,int,int,int,QImage::Format,QImageCleanupFunction,void*)" remove="all"/>
- <modify-function signature="QImage(const uchar*,int,int,QImage::Format,QImageCleanupFunction,void*)" remove="all"/>
- <!-- ### -->
-
- <modify-function signature="QImage(const char*const[])">
- <modify-argument index="1">
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="load_xpm"/>
- </inject-code>
- </modify-function>
- <!-- ### There is already an fromData with a QByteArray type (that is convertible from Python's str) as the first type. -->
- <modify-function signature="fromData(const uchar*,int,const char*)" remove="all"/>
- <!-- ### There is already an loadFromData with a QByteArray type (that is convertible from Python's str) as the first type. -->
- <modify-function signature="loadFromData(const uchar*,int,const char*)" remove="all"/>
-
- <modify-function signature="constBits()const" since="4.7">
- <inject-code file="../glue/qtgui.cpp" snippet="qimage-constbits"/>
- </modify-function>
- <modify-function signature="bits()">
- <inject-code file="../glue/qtgui.cpp" snippet="qimage-bits"/>
- </modify-function>
- <modify-function signature="constScanLine(int)const" since="4.7">
- <inject-code file="../glue/qtgui.cpp" snippet="qimage-constscanline"/>
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="scanLine(int)">
- <inject-code file="../glue/qtgui.cpp" snippet="qimage-scanline"/>
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- </modify-function>
- <!--
- Only the non-const version of bits() and scanLine() is exported to Python
- If the user don't want to detach the QImage data he must use constBits or constScanLine
- as Python doesn't have the concept of constness.
- -->
- <modify-function signature="bits()const" remove="all"/>
- <modify-function signature="scanLine(int)const" remove="all"/>
-
- <modify-function signature="invertPixels(QImage::InvertMode)">
- <modify-argument index="1">
- <rename to="mode"/>
- </modify-argument>
- </modify-function>
- </value-type>
- <value-type name="QCursor" >
- <extra-includes>
- <include file-name="QPixmap" location="global"/>
- <include file-name="Qt" location="global"/>
- </extra-includes>
- </value-type>
- <value-type name="QFontDatabase" >
- <extra-includes>
- <include file-name="QStringList" location="global"/>
- </extra-includes>
- <enum-type name="SystemFont"/>
- <enum-type name="WritingSystem"/>
- </value-type>
- <value-type name="QPen">
- <extra-includes>
- <include file-name="QBrush" location="global"/>
- </extra-includes>
- </value-type>
- <value-type name="QBrush">
- <extra-includes>
- <include file-name="QPixmap" location="global"/>
- </extra-includes>
- </value-type>
-
- <value-type name="QColor">
- <enum-type name="NameFormat"/>
- <enum-type name="Spec"/>
- <extra-includes>
- <include file-name="QVariant" location="global"/>
- </extra-includes>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="qcolor_repr"/>
- </inject-code>
- </add-function>
- <add-function signature="__str__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="qcolor_repr"/>
- </inject-code>
- </add-function>
- <add-function signature="__setstate__(PyObject*)" return-type="PyObject">
- <inject-code file="../glue/qtgui.cpp" snippet="qcolor-setstate"/>
- </add-function>
- <add-function signature="__reduce__" return-type="PyObject">
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qcolor-reduce"/>
- </add-function>
-
- <add-function signature="toTuple" return-type="PyObject">
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qcolor-totuple"/>
- </add-function>
- <!-- ### "QColor(QColor::Spec)" is an internal method. -->
- <modify-function signature="QColor(QColor::Spec)" remove="all"/>
- <!-- ### Constructor removed because we already have an overload using QString. -->
- <modify-function signature="QColor(const char*)" remove="all"/>
- <!-- ### -->
- <add-function signature="QColor(QVariant)">
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qcolor"/>
- </add-function>
- <!-- get* methods. Inject code -->
- <modify-function signature="getCmyk(int*,int*,int*,int*,int*)">
- <modify-argument index="0">
- <replace-type modified-type="PyObject*"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="5">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
-
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*,number*">
- <replace from="$TYPE" to="int"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="getCmykF(qreal*,qreal*,qreal*,qreal*,qreal*)">
- <modify-argument index="0">
- <replace-type modified-type="PyObject*"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="5">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
-
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*,number*">
- <replace from="$TYPE" to="qreal"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="getHsl(int*,int*,int*,int*)const" since="4.6">
- <modify-argument index="0">
- <replace-type modified-type="PyObject*"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="int"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="getHslF(qreal*,qreal*,qreal*,qreal*)const" since="4.6">
- <modify-argument index="0">
- <replace-type modified-type="PyObject*"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="qreal"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="getHsv(int*,int*,int*,int*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject*"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="int"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="getHsvF(qreal*,qreal*,qreal*,qreal*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject*"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="qreal"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="getRgb(int*,int*,int*,int*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject*"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="int"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="getRgbF(qreal*,qreal*,qreal*,qreal*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject*"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="qreal"/>
- </insert-template>
- </inject-code>
- </modify-function>
- </value-type>
-
- <value-type name="QColorSpace" since="5.14">
- <enum-type name="NamedColorSpace"/>
- <enum-type name="Primaries"/>
- <enum-type name="TransferFunction"/>
- </value-type>
-
- <value-type name="QFontMetricsF" >
-
- <modify-function signature="boundingRect(QChar)const" rename="boundingRectChar">
- <modify-argument index="1">
- <replace-type modified-type="char"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="QFontCharFix"/>
- </inject-code>
- </modify-function>
-
- <modify-function signature="width(QChar)const" rename="widthChar">
- <modify-argument index="1">
- <replace-type modified-type="char"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="QFontCharFix"/>
- </inject-code>
- </modify-function>
-
- <modify-function signature="boundingRect(QRectF,int,QString,int,int*)const">
- <modify-argument index="5">
- <replace-type modified-type="PyObject"/>
- <array/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qfontmetricsf-boundingrect"/>
- </modify-function>
-
- <modify-function signature="size(int,QString,int,int*)const">
- <modify-argument index="4">
- <replace-type modified-type="PyObject"/>
- <array/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qfontmetricsf-size"/>
- </modify-function>
- </value-type>
- <value-type name="QFontMetrics" >
-
- <modify-function signature="boundingRect(QChar)const" rename="boundingRectChar">
- <modify-argument index="1">
- <replace-type modified-type="char"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="QFontCharFix"/>
- </inject-code>
- </modify-function>
-
- <modify-function signature="width(QChar)const" rename="widthChar">
- <modify-argument index="1">
- <replace-type modified-type="char"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="QFontCharFix"/>
- </inject-code>
- </modify-function>
-
- <modify-function signature="boundingRect(int,int,int,int,int,QString,int,int*)const">
- <modify-argument index="8">
- <replace-type modified-type="PyObject"/>
- <array/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qfontmetrics-boundingrect-1"/>
- </modify-function>
-
- <modify-function signature="boundingRect(QRect,int,QString,int,int*)const">
- <modify-argument index="5">
- <replace-type modified-type="PyObject"/>
- <array/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qfontmetrics-boundingrect-2"/>
- </modify-function>
-
- <modify-function signature="size(int,QString,int,int*)const">
- <modify-argument index="4">
- <replace-type modified-type="PyObject"/>
- <array/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qfontmetrics-size"/>
- </modify-function>
- </value-type>
- <value-type name="QGradient" polymorphic-id-expression="%1-&gt;type() == QGradient::NoGradient">
- <enum-type name="CoordinateMode"/>
- <enum-type name="InterpolationMode"/>
- <enum-type name="Preset" since="5.12"/>
- <enum-type name="Spread"/>
- <enum-type name="Type"/>
- </value-type>
- <value-type name="QLinearGradient" polymorphic-id-expression="%1-&gt;type() == QGradient::LinearGradient"/>
- <object-type name="QPaintDevice">
- <enum-type name="PaintDeviceMetric"/>
- </object-type>
- <object-type name="QPagedPaintDevice">
- <value-type name="Margins"/>
- <enum-type name="PageSize"/>
- <enum-type name="PdfVersion" since="5.10"/>
- </object-type>
- <object-type name="QAbstractTextDocumentLayout">
- <value-type name="PaintContext" >
- <include file-name="QAbstractTextDocumentLayout" location="global"/>
- </value-type>
- <value-type name="Selection"/>
- <modify-function signature="setPaintDevice(QPaintDevice*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="draw(QPainter*,QAbstractTextDocumentLayout::PaintContext)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="drawInlineObject(QPainter*,QRectF,QTextInlineObject,int,QTextFormat)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="update(const QRectF &amp;)" allow-thread="yes"/>
- </object-type>
- <object-type name="QPyTextObject"/>
-
- <object-type name="QDesktopServices" since="4.2">
- <modify-function signature="openUrl(const QUrl&amp;)" allow-thread="yes"/>
- </object-type>
- <object-type name="QDoubleValidator">
- <enum-type name="Notation"/>
- </object-type>
- <object-type name="QIconEngine">
- <object-type name="AvailableSizesArgument"/>
- <enum-type name="IconEngineHook"/>
- <modify-function signature="paint(QPainter*,QRect,QIcon::Mode,QIcon::State)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="read(QDataStream&amp;)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="write(QDataStream&amp;)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <!-- ### This makes little sense in Python. Could be reassessed later. -->
- <modify-function signature="virtual_hook(int,void*)" remove="all"/>
- </object-type>
- <object-type name="QImageWriter">
- <enum-type name="ImageWriterError"/>
- <modify-function signature="setDevice(QIODevice*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="write(const QImage&amp;)" allow-thread="yes"/>
- </object-type>
- <object-type name="QIntValidator"/>
-
- <object-type name="QPainterPathStroker" copyable="false"/>
- <object-type name="QPictureIO">
- <modify-function signature="setIODevice(QIODevice*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="read()" allow-thread="yes"/>
- <modify-function signature="write()" allow-thread="yes"/>
- </object-type>
- <object-type name="QPixmapCache">
- <value-type name="Key"/>
- <add-function signature="find(QPixmapCache::Key&amp;)">
- <inject-code file="../glue/qtgui.cpp" snippet="qpixmapcache-find"/>
- </add-function>
- </object-type>
-
- <object-type name="QRegExpValidator"/>
-
- <object-type name="QStandardItem">
- <enum-type name="ItemType"/>
- <modify-function signature="operator&lt;(QStandardItem)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="read(QDataStream&amp;)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="write(QDataStream&amp;)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
-
- <modify-function signature="appendColumn(const QList&lt;QStandardItem*&gt; &amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="appendRow(const QList&lt;QStandardItem*&gt; &amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="appendRow(QStandardItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="appendRows(const QList&lt;QStandardItem*&gt; &amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="insertColumn(int,const QList&lt;QStandardItem*&gt; &amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertRow(int,const QList&lt;QStandardItem*&gt; &amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertRows(int,const QList&lt;QStandardItem*&gt; &amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="setChild(int,int,QStandardItem*)">
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qstandarditem-setchild-1"/>
- <modify-argument index="3">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setChild(int,QStandardItem*)">
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qstandarditem-setchild-2"/>
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="takeChild(int,int)">
- <modify-argument index="return">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="clone()const">
- <modify-argument index="return">
- <define-ownership class="native" owner="c++"/>
- <define-ownership class="target" owner="target"/>
- </modify-argument>
- </modify-function>
-
- <!-- ??? -->
- <modify-function signature="operator&lt;(QStandardItem)const" remove="all"/>
- </object-type>
- <object-type name="QSyntaxHighlighter">
- <modify-function signature="setCurrentBlockUserData(QTextBlockUserData*)">
- <modify-argument index="1">
- <define-ownership class="target" owner="c++"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setDocument(QTextDocument*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="document()const">
- <modify-argument index="this">
- <parent index="return" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QTextBlockGroup"/>
- <object-type name="QTextBlockUserData"/>
- <object-type name="QTextItem">
- <enum-type name="RenderFlag" flags="RenderFlags"/>
- </object-type>
- <object-type name="QTextList" >
- <!--### Obsolete in 4.3-->
- <modify-function signature="isEmpty()const" remove="all"/>
- </object-type>
- <object-type name="QTextObject"/>
- <object-type name="QTextObjectInterface" >
- <modify-function signature="drawObject(QPainter*,QRectF,QTextDocument*,int,QTextFormat)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- </object-type>
-
- <object-type name="QValidator">
- <enum-type name="State"/>
- <modify-function signature="fixup(QString &amp;)const">
- <modify-argument index="return">
- <replace-type modified-type="QString"/>
- </modify-argument>
- <inject-code class="native" position="end">
- <insert-template name="return_QString_native"/>
- </inject-code>
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="qstring-return"/>
- </modify-function>
- <modify-function signature="validate(QString &amp;,int &amp;)const">
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- <conversion-rule class="native">
- <insert-template name="validator_conversionrule"/>
- </conversion-rule>
- </modify-argument>
- <inject-code class="target" position="end">
- <insert-template name="return_tuple_QValidator_QString_int"/>
- </inject-code>
- </modify-function>
- </object-type>
-
- <object-type name="QActionEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::ActionAdded || %1-&gt;type() == QEvent::ActionRemoved || %1-&gt;type() == QEvent::ActionChanged"/>
- <object-type name="QCloseEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::Close"/>
- <object-type name="QContextMenuEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::ContextMenu">
- <enum-type name="Reason"/>
- </object-type>
-
- <object-type name="QDragEnterEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::DragEnter"/>
- <object-type name="QDragLeaveEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::DragLeave"/>
- <object-type name="QDragMoveEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::DragMove"/>
- <object-type name="QDropEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::Drop">
- <modify-function signature="source()const">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QEnterEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::Enter"/>
- <object-type name="QExposeEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::Expose"/>
- <object-type name="QFileOpenEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::FileOpen"/>
- <object-type name="QFocusEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::FocusIn || %1-&gt;type() == QEvent::FocusOut"/>
- <object-type name="QHelpEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::ToolTip || %1-&gt;type() == QEvent::WhatsThis"/>
- <object-type name="QHideEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::Hide"/>
- <object-type name="QHoverEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::HoverEnter || %1-&gt;type() == QEvent::HoverLeave || %1-&gt;type() == QEvent::HoverMove"/>
- <object-type name="QIconDragEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::IconDrag"/>
-
- <object-type name="QInputMethodEvent" copyable="no" polymorphic-id-expression="%1-&gt;type() == QEvent::InputMethod">
- <!-- only declare this if ndef QT_NO_INPUTMETHOD -->
- <enum-type name="AttributeType"/>
- <value-type name="Attribute">
- <include file-name="QInputMethodEvent" location="global"/>
- </value-type>
- <!-- endif ndef QT_NO_INPUTMETHOD -->
- </object-type>
- <object-type name="QInputMethodQueryEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::InputMethodQuery"/>
-
- <object-type name="QMoveEvent" copyable = "false" polymorphic-id-expression="%1-&gt;type() == QEvent::Move"/>
- <object-type name="QNativeGestureEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::NativeGesture"/>
- <object-type name="QResizeEvent" copyable = "false" polymorphic-id-expression="%1-&gt;type() == QEvent::Resize"/>
- <object-type name="QShortcutEvent" copyable = "false" polymorphic-id-expression="%1-&gt;type() == QEvent::Shortcut">
- </object-type>
- <object-type name="QShowEvent" copyable= "false" polymorphic-id-expression="%1-&gt;type() == QEvent::Show"/>
- <object-type name="QStatusTipEvent" copyable= "false" polymorphic-id-expression="%1-&gt;type() == QEvent::StatusTip"/>
- <object-type name="QTabletEvent" copyable= "false" polymorphic-id-expression="%1-&gt;type() == QEvent::TabletMove || %1-&gt;type() == QEvent::TabletPress || %1-&gt;type() == QEvent::TabletRelease">
- <enum-type name="PointerType"/>
- <enum-type name="TabletDevice"/>
- </object-type>
- <object-type name="QToolBarChangeEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::ToolBarChange"/>
- <object-type name="QWhatsThisClickedEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::WhatsThisClicked"/>
- <object-type name="QWheelEvent" copyable= "false" polymorphic-id-expression="%1-&gt;type() == QEvent::Wheel"/>
- <!-- Qt5.5: suppress this nameless enum -->
- <suppress-warning text="enum 'QWheelEvent::DefaultDeltasPerStep' does not have a type entry or is not an enum"/>
-
- <object-type name="QWindowStateChangeEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::WindowStateChange"/>
- <object-type name="QInputEvent" copyable="false"/>
- <object-type name="QKeyEvent" copyable= "false" polymorphic-id-expression="%1-&gt;type() == QEvent::KeyPress || %1-&gt;type() == QEvent::KeyRelease || %1-&gt;type() == QEvent::ShortcutOverride">
- <add-function signature="operator!=(QKeySequence::StandardKey)">
- <inject-code class="target" file="../glue/qtgui.cpp" snippet="qkeyevent-operatornotequal"/>
- </add-function>
- </object-type>
- <object-type name="QMouseEvent" copyable= "false" polymorphic-id-expression="%1-&gt;type() == QEvent::MouseButtonDblClick || %1-&gt;type() == QEvent::MouseButtonPress || %1-&gt;type() == QEvent::MouseButtonRelease || %1-&gt;type() == QEvent::MouseMove"/>
- <object-type name="QPaintEvent" copyable= "false" polymorphic-id-expression="%1-&gt;type() == QEvent::Paint"/>
- <object-type name="QScrollEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::Scroll">
- <enum-type name="ScrollState"/>
- </object-type>
- <object-type name="QScrollPrepareEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::ScrollPrepare"/>
-
- <object-type name="QTextFrame" >
- <extra-includes>
- <include file-name="QTextCursor" location="global"/>
- </extra-includes>
- <value-type name="iterator" >
- <include file-name="QTextFrame" location="global"/>
- <!-- ### These operators where removed because they don't make sense in Python.
- Instead iterator methods (__iter__, next) should be implemented.
- See bug 688 -->
- <modify-function signature="operator++()" remove="all"/>
- <modify-function signature="operator--()" remove="all"/>
- <!-- ### -->
- <add-function signature="__iter__()" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="__iter__"/>
- </inject-code>
- </add-function>
- <add-function signature="__next__()" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="__next__">
- <replace from="%CPPSELF_TYPE" to="QTextFrame::iterator"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
- <add-function signature="__iter__()" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="__iter_parent__">
- <replace from="%CPPSELF_TYPE" to="QTextFrame::iterator"/>
- </insert-template>
- </inject-code>
- </add-function>
- </object-type>
- <object-type name="QImageIOHandler">
- <extra-includes>
- <include file-name="QRect" location="global"/>
- </extra-includes>
- <enum-type name="ImageOption"/>
- <enum-type name="Transformation" flags="Transformations" since="5.5"/>
- <modify-function signature="setDevice(QIODevice*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QImageReader">
- <extra-includes>
- <include file-name="QColor" location="global"/>
- <include file-name="QRect" location="global"/>
- <include file-name="QSize" location="global"/>
- <include file-name="QStringList" location="global"/>
- <include file-name="QImage" location="global"/>
- </extra-includes>
- <enum-type name="ImageReaderError"/>
- <!-- ### This method does not make sense in Python.
- Update: perhaps it does, but no one is missing it. -->
- <modify-function signature="read(QImage*)" remove="all"/>
- <modify-function signature="read()" allow-thread="yes"/>
- <modify-function signature="setDevice(QIODevice*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QMovie">
- <extra-includes>
- <include file-name="QColor" location="global"/>
- <include file-name="QImage" location="global"/>
- <include file-name="QPixmap" location="global"/>
- <include file-name="QRect" location="global"/>
- <include file-name="QSize" location="global"/>
- </extra-includes>
- <enum-type name="CacheMode"/>
- <enum-type name="MovieState"/>
- <!-- ### "cacheMode()" is an internal method. -->
- <modify-function signature="setDevice(QIODevice*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QDrag">
- <extra-includes>
- <include file-name="QPoint" location="global"/>
- <include file-name="QPixmap" location="global"/>
- </extra-includes>
- <modify-function signature="QDrag(QObject*)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="source()const">
- <modify-argument index="return">
- <define-ownership owner="target"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="target()const">
- <modify-argument index="return">
- <define-ownership owner="target"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setMimeData(QMimeData*)">
- <modify-argument index="1">
- <!-- TODO: maybe this is not the best solution -->
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="exec(QFlags&lt;Qt::DropAction&gt;)" rename="exec_" allow-thread="yes"/>
- <modify-function signature="exec(QFlags&lt;Qt::DropAction&gt;,Qt::DropAction)" rename="exec_" allow-thread="yes"/>
- </object-type>
-
- <object-type name="QStandardItemModel" polymorphic-id-expression="qobject_cast&lt;QStandardItemModel*&gt;(%1)">
- <extra-includes>
- <include file-name="QStringList" location="global"/>
- <include file-name="QSize" location="global"/>
- </extra-includes>
- <modify-function signature="takeItem(int,int)">
- <modify-argument index="return">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="takeHorizontalHeaderItem(int)">
- <modify-argument index="return">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="takeVerticalHeaderItem(int)">
- <modify-argument index="return">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="verticalHeaderItem(int)const">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="horizontalHeaderItem(int)const">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="invisibleRootItem()const">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="item(int,int)const">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="itemFromIndex(const QModelIndex&amp;)const">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="itemPrototype()const">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="appendRow(const QList&lt;QStandardItem*&gt;&amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="appendRow(QStandardItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="insertRow(int,QStandardItem*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setHorizontalHeaderItem(int,QStandardItem*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="setItem(int,int,QStandardItem*)">
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qstandarditemmodel-setitem-1"/>
- <modify-argument index="3">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItem(int,QStandardItem*)">
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qstandarditemmodel-setitem-2"/>
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItemPrototype(const QStandardItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="setVerticalHeaderItem(int,QStandardItem*)">
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qstandarditemmodel-setverticalheaderitem"/>
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="takeColumn(int)">
- <modify-argument index="return">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="takeRow(int)">
- <modify-argument index="return">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="findItems(const QString&amp;,QFlags&lt;Qt::MatchFlag&gt;,int)const">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="insertColumn(int,const QList&lt;QStandardItem*&gt;&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="insertRow(int,const QList&lt;QStandardItem*&gt;&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="appendColumn(const QList&lt;QStandardItem*&gt;&amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="clear()">
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qstandarditemmodel-clear"/>
- </modify-function>
- </object-type>
- <object-type name="QClipboard">
- <extra-includes>
- <include file-name="QImage" location="global"/>
- <include file-name="QPixmap" location="global"/>
- </extra-includes>
- <enum-type name="Mode"/>
- <modify-function signature="setMimeData(QMimeData*,QClipboard::Mode)" allow-thread="yes">
- <modify-argument index="1">
- <!-- TODO: maybe this is not the best solution -->
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="text(QString&amp;,QClipboard::Mode)const">
- <modify-argument index="2">
- <replace-default-expression with="QClipboard::Clipboard"/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(retval, subtype)"/>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtgui.cpp" snippet="qclipboard-text"/>
- </modify-function>
- </object-type>
- <object-type name="QPaintEngineState">
- <extra-includes>
- <include file-name="QPainterPath" location="global"/>
- </extra-includes>
- </object-type>
- <object-type name="QTextLayout">
- <extra-includes>
- <include file-name="QTextOption" location="global"/>
- </extra-includes>
- <enum-type name="CursorMode"/>
- <value-type name="FormatRange">
- <include file-name="QTextLayout" location="global"/>
- </value-type>
- </object-type>
- <object-type name="QTextDocument">
- <extra-includes>
- <include file-name="QTextBlock" location="global"/>
- <include file-name="QTextFormat" location="global"/>
- <include file-name="QTextCursor" location="global"/>
- </extra-includes>
- <enum-type name="FindFlag" flags="FindFlags"/>
- <enum-type name="MarkdownFeature" flags="MarkdownFeatures" since="5.14"/>
- <enum-type name="MetaInformation"/>
- <enum-type name="ResourceType"/>
- <enum-type name="Stacks" since="4.7"/>
- <modify-function signature="setDocumentLayout(QAbstractTextDocumentLayout*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="object(int)const">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="objectForFormat(const QTextFormat&amp;)const">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="createObject(const QTextFormat&amp;)">
- <modify-argument index="return">
- <define-ownership class="native" owner="c++"/>
- <define-ownership class="target" owner="target"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="print(QPagedPaintDevice*)const" rename="print_"/>
- </object-type>
- <object-type name="QTextDocumentWriter" since="4.5"/>
- <object-type name="QTextTable">
- <extra-includes>
- <include file-name="QTextCursor" location="global"/>
- </extra-includes>
- </object-type>
- <object-type name="QPaintEngine">
- <enum-type name="DirtyFlag" flags="DirtyFlags"/>
- <enum-type name="PaintEngineFeature" flags="PaintEngineFeatures"/>
- <enum-type name="PolygonDrawMode"/>
- <enum-type name="Type"/>
- <modify-function signature="begin(QPaintDevice*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="updateState(QPaintEngineState)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="drawTextItem(QPointF,QTextItem)">
- <modify-argument index="2" invalidate-after-use="yes"/>
- </modify-function>
- <extra-includes>
- <include file-name="QVarLengthArray" location="global"/>
- </extra-includes>
- <!-- ### "setPaintDevice(QPaintDevice*)" is an internal method. -->
- <modify-function signature="setPaintDevice(QPaintDevice*)" remove="all"/>
- </object-type>
- <object-type name="QPainter">
- <extra-includes>
- <include file-name="QPainterPath" location="global"/>
- <include file-name="QPixmap" location="global"/>
- </extra-includes>
- <enum-type name="CompositionMode"/>
- <enum-type name="PixmapFragmentHint" flags="PixmapFragmentHints" since="4.7"/>
- <enum-type name="RenderHint" flags="RenderHints"/>
- <value-type name="PixmapFragment" since="4.7">
- <include file-name="QPainter" location="global"/>
- </value-type>
-
- <!-- ### "drawText(...)" is an internal method. -->
- <modify-function signature="drawText(const QPointF&amp;,const QString&amp;,int,int)" remove="all"/>
-
-
- <modify-function signature="drawConvexPolygon(const QPoint*,int)" remove="all"/>
- <add-function signature="drawConvexPolygon(QVector&lt;QPoint>)">
- <inject-code>
- <insert-template name="qpainter_drawlist"/>
- </inject-code>
- </add-function>
- <modify-function signature="drawConvexPolygon(const QPointF*,int)" remove="all"/>
- <add-function signature="drawConvexPolygon(QVector&lt;QPointF>)">
- <inject-code>
- <insert-template name="qpainter_drawlist"/>
- </inject-code>
- </add-function>
- <!-- ### Overloads using QVector<T> does the job of these methods -->
- <modify-function signature="drawLines(const QLine*,int)" remove="all"/>
- <modify-function signature="drawLines(const QLineF*,int)" remove="all"/>
- <modify-function signature="drawLines(const QPoint*,int)" remove="all"/>
- <modify-function signature="drawLines(const QPointF*,int)" remove="all"/>
- <modify-function signature="drawRects(const QRect*,int)" remove="all"/>
- <modify-function signature="drawRects(const QRectF*,int)" remove="all"/>
- <!-- ### -->
- <modify-function signature="drawPoints(const QPoint*,int)" remove="all"/>
- <add-function signature="drawPoints(QVector&lt;QPoint>)">
- <inject-code>
- <insert-template name="qpainter_drawlist"/>
- </inject-code>
- </add-function>
- <modify-function signature="drawPoints(const QPointF*,int)" remove="all"/>
- <add-function signature="drawPoints(QVector&lt;QPointF>)">
- <inject-code>
- <insert-template name="qpainter_drawlist"/>
- </inject-code>
- </add-function>
- <modify-function signature="drawPolygon(const QPoint*,int,Qt::FillRule)" remove="all"/>
- <add-function signature="drawPolygon(QVector&lt;QPoint>,Qt::FillRule)">
- <inject-code file="../glue/qtgui.cpp" snippet="qpainter-drawpolygon"/>
- </add-function>
- <modify-function signature="drawPolygon(const QPointF*,int,Qt::FillRule)" remove="all"/>
- <add-function signature="drawPolygon(QVector&lt;QPointF>,Qt::FillRule)">
- <inject-code file="../glue/qtgui.cpp" snippet="qpainter-drawpolygon"/>
- </add-function>
- <modify-function signature="drawPolyline(const QPoint*,int)" remove="all"/>
- <add-function signature="drawPolyline(QVector&lt;QPoint>)">
- <inject-code>
- <insert-template name="qpainter_drawlist"/>
- </inject-code>
- </add-function>
- <modify-function signature="drawPolyline(const QPointF*,int)" remove="all"/>
- <add-function signature="drawPolyline(QVector&lt;QPointF>)">
- <inject-code>
- <insert-template name="qpainter_drawlist"/>
- </inject-code>
- </add-function>
- <modify-function signature="drawRoundRect(int,int,int,int,int,int)">
- <modify-argument index="5">
- <rename to="xRound"/>
- </modify-argument>
- <modify-argument index="6">
- <rename to="yRound"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="drawTiledPixmap(const QRect&amp;,const QPixmap&amp;,const QPoint&amp;)">
- <modify-argument index="3">
- <rename to="pos"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="QPainter(QPaintDevice*)">
- <modify-argument index="1">
- <no-null-pointer/>
- </modify-argument>
- </modify-function>
- <modify-function signature="begin(QPaintDevice*)">
- <modify-argument index="1">
- <no-null-pointer/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setRedirected(const QPaintDevice*,QPaintDevice*,const QPoint&amp;)">
- <modify-argument index="1">
- <no-null-pointer/>
- </modify-argument>
- </modify-function>
- <modify-function signature="restoreRedirected(const QPaintDevice*)">
- <modify-argument index="1">
- <no-null-pointer/>
- </modify-argument>
- </modify-function>
- <modify-function signature="drawText(QRectF,int,QString,QRectF*)">
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="QRectF"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,QRectF*"/>
- </inject-code>
- </modify-function>
- <modify-function signature="drawText(QRect,int,QString,QRect*)">
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="QRect"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,QRect*"/>
- </inject-code>
- </modify-function>
- <modify-function signature="drawText(int,int,int,int,int,QString,QRect*)">
- <modify-argument index="7">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,QRect*"/>
- </inject-code>
- </modify-function>
- </object-type>
-
- <value-type name="QGenericMatrix" generate="no"/>
- <value-type name="QMatrix2x2" since="4.6">
- <modify-function signature="QMatrix2x2(const float*)" remove="all"/>
- <modify-function signature="copyDataTo(float*) const" remove="all"/>
- <modify-function signature="constData()const" remove="all"/>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code_matrix">
- <replace from="%MATRIX_SIZE" to="4"/>
- <replace from="%MATRIX_TYPE" to="float"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code_matrix">
- <replace from="%MATRIX_TYPE" to="float"/>
- <replace from="%MATRIX_SIZE" to="4"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="QMatrix2x2(PySequence*)">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_constructor">
- <replace from="%SIZE" to="4"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="data()" return-type="float">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_data_function">
- <replace from="%MATRIX_SIZE" to="4"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
-
- <value-type name="QMatrix2x3" since="4.6">
- <modify-function signature="QMatrix2x3(const float*)" remove="all"/>
- <modify-function signature="copyDataTo(float*) const" remove="all"/>
- <modify-function signature="constData()const" remove="all"/>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code_matrix">
- <replace from="%MATRIX_SIZE" to="6"/>
- <replace from="%MATRIX_TYPE" to="float"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code_matrix">
- <replace from="%MATRIX_TYPE" to="float"/>
- <replace from="%MATRIX_SIZE" to="6"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="QMatrix2x3(PySequence*)">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_constructor">
- <replace from="%SIZE" to="6"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="data()" return-type="float">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_data_function">
- <replace from="%MATRIX_SIZE" to="6"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
-
- <value-type name="QMatrix2x4" since="4.6">
- <modify-function signature="QMatrix2x4(const float*)" remove="all"/>
- <modify-function signature="copyDataTo(float*) const" remove="all"/>
- <modify-function signature="constData()const" remove="all"/>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code_matrix">
- <replace from="%MATRIX_SIZE" to="8"/>
- <replace from="%MATRIX_TYPE" to="float"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code_matrix">
- <replace from="%MATRIX_TYPE" to="float"/>
- <replace from="%MATRIX_SIZE" to="8"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="QMatrix2x4(PySequence*)">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_constructor">
- <replace from="%SIZE" to="8"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="data()" return-type="float">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_data_function">
- <replace from="%MATRIX_SIZE" to="8"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
-
- <value-type name="QMatrix3x2" since="4.6">
- <modify-function signature="QMatrix3x2(const float*)" remove="all"/>
- <modify-function signature="copyDataTo(float*) const" remove="all"/>
- <modify-function signature="constData()const" remove="all"/>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code_matrix">
- <replace from="%MATRIX_SIZE" to="6"/>
- <replace from="%MATRIX_TYPE" to="float"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code_matrix">
- <replace from="%MATRIX_TYPE" to="float"/>
- <replace from="%MATRIX_SIZE" to="6"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="QMatrix3x2(PySequence*)">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_constructor">
- <replace from="%SIZE" to="6"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="data()" return-type="float">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_data_function">
- <replace from="%MATRIX_SIZE" to="6"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
-
- <value-type name="QMatrix3x3" since="4.6">
- <modify-function signature="QMatrix3x3(const float*)" remove="all"/>
- <modify-function signature="copyDataTo(float*) const" remove="all"/>
- <modify-function signature="constData()const" remove="all"/>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code_matrix">
- <replace from="%MATRIX_SIZE" to="9"/>
- <replace from="%MATRIX_TYPE" to="float"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code_matrix">
- <replace from="%MATRIX_TYPE" to="float"/>
- <replace from="%MATRIX_SIZE" to="9"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="QMatrix3x3(PySequence*)">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_constructor">
- <replace from="%SIZE" to="9"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="data()" return-type="float">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_data_function">
- <replace from="%MATRIX_SIZE" to="9"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
-
- <value-type name="QMatrix3x4" since="4.6">
- <modify-function signature="QMatrix3x4(const float*)" remove="all"/>
- <modify-function signature="copyDataTo(float*) const" remove="all"/>
- <modify-function signature="constData()const" remove="all"/>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code_matrix">
- <replace from="%MATRIX_SIZE" to="12"/>
- <replace from="%MATRIX_TYPE" to="float"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code_matrix">
- <replace from="%MATRIX_TYPE" to="float"/>
- <replace from="%MATRIX_SIZE" to="12"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="QMatrix3x4(PySequence*)">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_constructor">
- <replace from="%SIZE" to="12"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="data()" return-type="float">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_data_function">
- <replace from="%MATRIX_SIZE" to="12"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
-
- <value-type name="QMatrix4x2" since="4.6">
- <modify-function signature="QMatrix4x2(const float*)" remove="all"/>
- <modify-function signature="copyDataTo(float*) const" remove="all"/>
- <modify-function signature="constData()const" remove="all"/>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code_matrix">
- <replace from="%MATRIX_SIZE" to="8"/>
- <replace from="%MATRIX_TYPE" to="float"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code_matrix">
- <replace from="%MATRIX_TYPE" to="float"/>
- <replace from="%MATRIX_SIZE" to="8"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="QMatrix4x2(PySequence*)">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_constructor">
- <replace from="%SIZE" to="8"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="data()" return-type="float">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_data_function">
- <replace from="%MATRIX_SIZE" to="8"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
-
- <value-type name="QMatrix4x3" since="4.6">
- <modify-function signature="QMatrix4x3(const float*)" remove="all"/>
- <modify-function signature="copyDataTo(float*) const" remove="all"/>
- <modify-function signature="constData()const" remove="all"/>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code_matrix">
- <replace from="%MATRIX_SIZE" to="12"/>
- <replace from="%MATRIX_TYPE" to="float"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code_matrix">
- <replace from="%MATRIX_TYPE" to="float"/>
- <replace from="%MATRIX_SIZE" to="12"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="QMatrix4x3(PySequence*)">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_constructor">
- <replace from="%SIZE" to="12"/>
- </insert-template>
- </inject-code>
- </add-function>
- <add-function signature="data()" return-type="float">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_data_function">
- <replace from="%MATRIX_SIZE" to="12"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
-
- <value-type name="QMatrix4x4" since="4.6">
-
- <!-- Qt5: HAIRY TRICK ALERT ahead!
- Qt5 partially replaced 'qreal' by float.
- That had the side effect that all matrix types did not work any longer.
-
- Reason (I guess):
-
- The signature "QList<qreal>" is needed by the __reduce__ methods,
- but created by some other object used elsewhere.
- After the matrix type was changed, "QList<float>" was created nowhere.
-
- I don't know an explicit way to produce the right conversion function, so what I did
- was to create a dummy function and immediately delete it again.
- This has the desired effect of creating the implicitly needed "QList<float>"
- conversion, although the dummy function goes away.
-
- Q: Do you know a better solution?
- -->
- <add-function signature="__dummy(const QList&lt;float &gt; &amp;)"/>
- <modify-function signature="__dummy(const QList&lt;float &gt; &amp;)" remove="all"/>
- <!-- that was the trick ^^^^^^^^^^^^^^^^^^^^^^ -->
-
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code_matrix">
- <replace from="%MATRIX_SIZE" to="16"/>
- <replace from="%MATRIX_TYPE" to="float"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code_matrix">
- <replace from="%MATRIX_TYPE" to="float"/>
- <replace from="%MATRIX_SIZE" to="16"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <!-- ### "QMatrix4x4(const float*,int,int)" is an internal constructor. -->
- <modify-function signature="QMatrix4x4(const float*,int,int)" remove="all"/>
-
- <modify-function signature="QMatrix4x4(const float*)">
- <modify-argument index="1">
- <replace-type modified-type="PySequence"/>
- <array/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qmatrix4x4"/>
- </modify-function>
- <modify-function signature="data()">
- <inject-code class="target" position="beginning">
- <insert-template name="matrix_data_function">
- <replace from="%MATRIX_SIZE" to="16"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="copyDataTo(float*)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyTupleObject*"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qmatrix4x4-copydatato"/>
- </modify-function>
-
- <modify-function signature="inverted(bool*)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyTuple"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*"/>
- </inject-code>
- </modify-function>
-
- <!-- ### "constData() const" and "data() const" are unnecessary in Python and their function is performed by "data()". -->
- <modify-function signature="data()const" remove="all"/>
- <modify-function signature="constData()const" remove="all"/>
- <!-- ### -->
- <modify-function signature="operator()(int,int)const" remove="all"/>
- <modify-function signature="operator()(int,int)" remove="all"/>
- <add-function signature="__mgetitem__" return-type="PyObject*">
- <inject-code file="../glue/qtgui.cpp" snippet="qmatrix4x4-mgetitem"/>
- </add-function>
- </value-type>
-
- _______ end of matrix block _______ -->
-
- <value-type name="QQuaternion" since="4.6">
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%f, %f, %f, %f"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.scalar(), %CPPSELF.x(), %CPPSELF.y(), %CPPSELF.z()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="dddd"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.scalar(), %CPPSELF.x(), %CPPSELF.y(), %CPPSELF.z()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <!-- Qt5.5: XXX support the output variables! For now, I just suppressed the new methods. -->
- <modify-function signature="getAxisAndAngle(float*,float*,float*,float*)const" since="5.5" remove="all"/>
- <modify-function signature="getAxisAndAngle(QVector3D*,float*)const" since="5.5" remove="all"/>
- <modify-function signature="getEulerAngles(float*,float*,float*)const" since="5.5" remove="all"/>
- </value-type>
-
- <object-type name="QTouchEvent" since="4.6">
- <value-type name="TouchPoint" since="4.6">
- <enum-type name="InfoFlag" flags="InfoFlags"/>
- </value-type>
- </object-type>
-
- <object-type name="QTouchDevice">
- <enum-type name="CapabilityFlag" flags="Capabilities"/>
- <enum-type name="DeviceType"/>
- </object-type>
-
- <value-type name="QVector2D" since="4.6">
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%f, %f"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.x(), %CPPSELF.y()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="dd"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.x(), %CPPSELF.y()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="toTuple" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="to_tuple">
- <replace from="%TT_FORMAT" to="dd"/>
- <replace from="%TT_ARGS" to="%CPPSELF.x(), %CPPSELF.y()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- </value-type>
- <value-type name="QVector3D" since="4.6">
- <extra-includes>
- <include file-name="QMatrix4x4" location="global"/>
- </extra-includes>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%f, %f, %f"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.x(), %CPPSELF.y(), %CPPSELF.z()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="ddd"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.x(), %CPPSELF.y(), %CPPSELF.z()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="toTuple" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="to_tuple">
- <replace from="%TT_FORMAT" to="ddd"/>
- <replace from="%TT_ARGS" to="%CPPSELF.x(), %CPPSELF.y(), %CPPSELF.z()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- </value-type>
- <value-type name="QVector4D" since="4.6">
- <extra-includes>
- <include file-name="QMatrix4x4" location="global"/>
- </extra-includes>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="repr_code">
- <replace from="%REPR_FORMAT" to="%f, %f, %f, %f"/>
- <replace from="%REPR_ARGS" to="%CPPSELF.x(), %CPPSELF.y(), %CPPSELF.z(), %CPPSELF.w()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="__reduce__" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="reduce_code">
- <replace from="%REDUCE_FORMAT" to="dddd"/>
- <replace from="%REDUCE_ARGS" to="%CPPSELF.x(), %CPPSELF.y(), %CPPSELF.z(), %CPPSELF.w()"/>
- </insert-template>
- </inject-code>
- </add-function>
-
- <add-function signature="toTuple" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="to_tuple">
- <replace from="%TT_FORMAT" to="dddd"/>
- <replace from="%TT_ARGS" to="%CPPSELF.x(), %CPPSELF.y(), %CPPSELF.z(), %CPPSELF.w()"/>
- </insert-template>
- </inject-code>
- </add-function>
- </value-type>
-
- <suppress-warning text="template baseclass 'QListSpecialMethods&lt;T&gt;' of 'QList' is not known"/>
- <suppress-warning text="template baseclass 'QGenericMatrix&lt;float&gt;' of '*' is not known"/>
-
- <!-- Qt5: note: the unnamed enum cannot be rejected by
- <rejection class="QMatrix4x4" enum-name="enum_1"/>
- Instead, we have to suppress the warning. Why that?
-
- Compare also the note at the beginning of typesystem_widgets_common.xml .
- This seems to be a related problem with unnamed structures in shiboken.
- -->
- <suppress-warning text="enum 'QMatrix4x4::enum_1' is specified in typesystem, but not declared"/>
-
- <object-type name="QSessionManager">
- <extra-includes>
- </extra-includes>
- <enum-type name="RestartHint"/>
- <!-- ### -->
- </object-type>
-
- <!-- This enum is present on QtCore -->
- <suppress-warning text="enum 'QCoreApplication::ApplicationFlags' is specified in typesystem, but not declared"/>
-
- <!-- Qt5: here the new QWindow stuff and what it pulls in -->
- <object-type name="QBackingStore"/>
- <object-type name="QSurface">
- <enum-type name="SurfaceClass"/>
- <enum-type name="SurfaceType"/>
- </object-type>
- <rejection class="QSurface" field-name="m_reserved"/>
- <value-type name="QSurfaceFormat">
- <enum-type name="ColorSpace" since="5.10"/>
- <enum-type name="FormatOption" flags="FormatOptions"/>
- <enum-type name="OpenGLContextProfile"/>
- <enum-type name="RenderableType"/>
- <enum-type name="SwapBehavior"/>
- </value-type>
- <object-type name="QOffscreenSurface" since="5.1"/>
- <primitive-type name="QPlatformSurface">
- <extra-includes>
- <include file-name="QtGui/qpa/qplatformsurface.h" location="global"/>
- </extra-includes>
- </primitive-type>
-
- <object-type name="QWindow" delete-in-main-thread="true">
- <enum-type name="AncestorMode"/>
- <enum-type name="Visibility"/>
- <modify-function signature="raise()" rename="raise_"/>
- <!-- see QWidget::nativeEvent(), QAbstractNativeEventFilter::nativeEventFilter() -->
- <modify-function signature="nativeEvent(const QByteArray &amp;,void*,long*)">
- <modify-argument index="3">
- <remove-argument/>
- <conversion-rule class="native">
- <insert-template name="return_native_eventfilter_conversion_variables"/>
- </conversion-rule>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- <conversion-rule class="native">
- <insert-template name="return_native_eventfilter_conversion"/>
- </conversion-rule>
- </modify-argument>
- <inject-code position="end">
- <insert-template name="return_native_eventfilter"/>
- </inject-code>
- </modify-function>
- <modify-function signature="fromWinId(WId)">
- <modify-argument index="1">
- <replace-type modified-type="long"/>
- </modify-argument>
- <inject-code file="../glue/qtgui.cpp" snippet="qwindow-fromWinId"/>
- </modify-function>
- <modify-function signature="show()" allow-thread="yes"/>
- <modify-function signature="showFullScreen()" allow-thread="yes"/>
- <modify-function signature="showMaximized()" allow-thread="yes"/>
- <modify-function signature="showMinimized()" allow-thread="yes"/>
- <modify-function signature="showNormal()" allow-thread="yes"/>
- </object-type>
-
- <object-type name="QGuiApplication">
- <extra-includes>
- <include file-name="QBasicTimer" location="global"/>
- <include file-name="QFont" location="global"/>
- <include file-name="QFontMetrics" location="global"/>
- <include file-name="QPalette" location="global"/>
- <include file-name="QIcon" location="global"/>
- <include file-name="QLocale" location="global"/>
- </extra-includes>
- <modify-function signature="QGuiApplication(int&amp;,char**,int)" access="private"/>
- <add-function signature="QGuiApplication(QStringList)">
- <inject-code file="../glue/qtgui.cpp" snippet="qguiapplication-1"/>
- </add-function>
- <add-function signature="QGuiApplication()">
- <inject-code file="../glue/qtgui.cpp" snippet="qguiapplication-2"/>
- </add-function>
- <inject-code class="native" position="beginning" file="../glue/qtgui.cpp" snippet="qguiapplication-init"/>
- <modify-function signature="exec()" rename="exec_" allow-thread="yes"/>
-
- </object-type>
-
- <object-type name="QOpenGLBuffer" since="5.0">
- <enum-type name="Access"/>
- <enum-type name="RangeAccessFlag" flags="RangeAccessFlags"/>
- <enum-type name="Type"/>
- <enum-type name="UsagePattern"/>
- </object-type>
- <object-type name="QOpenGLContext">
- <enum-type name="OpenGLModuleType"/>
- </object-type>
- <object-type name="QOpenGLContextGroup" since="5.0"/>
- <object-type name="QOpenGLDebugLogger" since="5.1">
- <enum-type name="LoggingMode"/>
- </object-type>
- <value-type name="QOpenGLDebugMessage" since="5.1">
- <enum-type name="Source" flags="Sources"/>
- <enum-type name="Type" flags="Types"/>
- <enum-type name="Severity" flags="Severities"/>
- </value-type>
- <object-type name="QOpenGLFramebufferObject" since="5.0">
- <enum-type name="Attachment"/>
- <enum-type name="FramebufferRestorePolicy" since="5.7"/>
- </object-type>
- <value-type name="QOpenGLFramebufferObjectFormat"/>
- <!-- Compile error on Windows: QOpenGLPaintDevice::QOpenGLPaintDevice(const QOpenGLPaintDevice &)': attempting to reference a deleted function
- <object-type name="QOpenGLPaintDevice" since="5.0"/>
- -->
- <object-type name="QOpenGLExtraFunctions" since="5.6">
- <!-- Exlusions due to compile errors -->
- <modify-function signature="glEndTransformFeedback()" remove="all"/>
- <modify-function signature="glPauseTransformFeedback()" remove="all"/>
- <modify-function signature="glResumeTransformFeedback()" remove="all"/>
- <modify-function signature="^glClearBuffer.*\(.*\*.*$">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glDebugMessageControl(unsigned int,unsigned int,unsigned int,int,const unsigned int*,unsigned char)">
- <modify-argument index="5"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glDeleteProgramPipelines(int,const unsigned int*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glDeleteQueries(int,const unsigned int*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glDeleteSamplers(int,const unsigned int*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glDeleteTransformFeedbacks(int,const unsigned int*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glDeleteVertexArrays(int,const unsigned int*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glDrawBuffers(int,const unsigned int*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGenProgramPipelines(int,unsigned int*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGenQueries(int,unsigned int*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGenSamplers(int,unsigned int*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGenTransformFeedbacks(int,unsigned int*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGenVertexArrays(int,unsigned int*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetActiveUniformBlockiv(unsigned int,unsigned int,unsigned int,int*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetActiveUniformsiv(unsigned int,int,const unsigned int*,unsigned int,int*)">
- <modify-argument index="3"><array/></modify-argument>
- <modify-argument index="5"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetFramebufferParameteriv(unsigned int,unsigned int,int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetIntegeri_v(unsigned int,unsigned int,int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetInternalformativ(unsigned int,unsigned int,unsigned int,int,int*)">
- <modify-argument index="5"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetMultisamplefv(unsigned int,unsigned int,float*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetProgramInterfaceiv(unsigned int,unsigned int,unsigned int,int*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetProgramPipelineiv(unsigned int,unsigned int,int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetProgramResourceiv(unsigned int,unsigned int,unsigned int,int,const unsigned int*,int,int*,int*)">
- <modify-argument index="5"><array/></modify-argument>
- <modify-argument index="7"><array/></modify-argument>
- <modify-argument index="8"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetQueryObjectuiv(unsigned int,unsigned int,unsigned int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetQueryiv(unsigned int,unsigned int,int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetSamplerParameterfv(unsigned int,unsigned int,float*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetSamplerParameteriv(unsigned int,unsigned int,int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetTexLevelParameteriv(unsigned int,int,unsigned int,int*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetTexLevelParameterfv(unsigned int,int,unsigned int,float*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetUniformuiv(unsigned int,int,unsigned int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetVertexAttribIiv(unsigned int,unsigned int,int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetVertexAttribIuiv(unsigned int,unsigned int,unsigned int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glInvalidateFramebuffer(unsigned int,int,const unsigned int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glInvalidateSubFramebuffer(unsigned int,int,const unsigned int*,int,int,int,int)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniform1fv(unsigned int,int,int,const float*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniform1iv(unsigned int,int,int,const int*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniform1uiv(unsigned int,int,int,const unsigned int*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniform2fv(unsigned int,int,int,const float*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniform2iv(unsigned int,int,int,const int*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniform2uiv(unsigned int,int,int,const unsigned int*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniform3fv(unsigned int,int,int,const float*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniform3iv(unsigned int,int,int,const int*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniform3uiv(unsigned int,int,int,const unsigned int*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniform4fv(unsigned int,int,int,const float*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniform4iv(unsigned int,int,int,const int*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniform4uiv(unsigned int,int,int,const unsigned int*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniformMatrix2fv(unsigned int,int,int,unsigned char,const float*)">
- <modify-argument index="5"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniformMatrix2x3fv(unsigned int,int,int,unsigned char,const float*)">
- <modify-argument index="5"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniformMatrix2x4fv(unsigned int,int,int,unsigned char,const float*)">
- <modify-argument index="5"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniformMatrix3fv(unsigned int,int,int,unsigned char,const float*)">
- <modify-argument index="5"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniformMatrix3x2fv(unsigned int,int,int,unsigned char,const float*)">
- <modify-argument index="5"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniformMatrix3x4fv(unsigned int,int,int,unsigned char,const float*)">
- <modify-argument index="5"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniformMatrix4fv(unsigned int,int,int,unsigned char,const float*)">
- <modify-argument index="5"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniformMatrix4x2fv(unsigned int,int,int,unsigned char,const float*)">
- <modify-argument index="5"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glProgramUniformMatrix4x3fv(unsigned int,int,int,unsigned char,const float*)">
- <modify-argument index="5"><array/></modify-argument>
- </modify-function>
- <modify-function signature="^glSamplerParameterI?u?[fi]v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="^glTexParameterI?u?[fi]v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glUniform1uiv(int,int,const unsigned int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glUniform2uiv(int,int,const unsigned int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glUniform3uiv(int,int,const unsigned int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glUniform4uiv(int,int,const unsigned int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glUniformMatrix2x3fv(int,int,unsigned char,const float*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glUniformMatrix2x4fv(int,int,unsigned char,const float*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glUniformMatrix3x2fv(int,int,unsigned char,const float*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glUniformMatrix3x4fv(int,int,unsigned char,const float*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glUniformMatrix4x2fv(int,int,unsigned char,const float*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glUniformMatrix4x3fv(int,int,unsigned char,const float*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glVertexAttribI4iv(unsigned int,const int*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glVertexAttribI4uiv(unsigned int,const unsigned int*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetStringi(unsigned int,unsigned int)">
- <modify-argument index="return">
- <replace-type modified-type="QString"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qstring-return"/>
- </modify-function>
- </object-type>
- <object-type name="QOpenGLFunctions" since="5.0">
- <enum-type name="OpenGLFeature" flags="OpenGLFeatures"/>
- <modify-function signature="glGetAttachedShaders(unsigned int,int,int*,unsigned int*)">
- <modify-argument index="3"><array/></modify-argument>
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetBufferParameteriv(unsigned int,unsigned int,int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetFloatv(unsigned int,float*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetFramebufferAttachmentParameteriv(unsigned int,unsigned int,unsigned int,int*)">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetIntegerv(unsigned int,int*)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetProgramiv(unsigned int,unsigned int,int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetRenderbufferParameteriv(unsigned int,unsigned int,int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetShaderiv(unsigned int,unsigned int,int*)">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetShaderPrecisionFormat(unsigned int,unsigned int,int*,int*)">
- <modify-argument index="3"><array/></modify-argument>
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="^glDelete.*s\(.*$">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="^glGen[A-Z].*s\(.*$">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="^gl(Get)?TexParameterI?u?[fi]v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="^glUniformMatrix\dfv\(.*$">
- <modify-argument index="4"><array/></modify-argument>
- </modify-function>
- <modify-function signature="^gl(Get)?Uniform\d?.v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="^glVertexAttrib\dfv\(.*$">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="^glGetVertexAttrib[fi]v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
- </modify-function>
- <modify-function signature="glGetString(unsigned int)">
- <modify-argument index="return">
- <replace-type modified-type="QString"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="glGetString_return_QString"/>
- </inject-code>
- </modify-function>
- <modify-function signature="glShaderBinary(int,const unsigned int*,unsigned int,const void *,int)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QAbstractOpenGLFunctions" since="5.1"/>
- <!-- Classes are result of a macro expansion in src/gui/opengl/qopenglversionfunctions.h
- <object-type name="QOpenGLFunctions_1_0" since="5.1"/>
- <object-type name="QOpenGLFunctions_1_1" since="5.1"/>
- <object-type name="QOpenGLFunctions_1_2" since="5.1"/>
- <object-type name="QOpenGLFunctions_1_3" since="5.1"/>
- <object-type name="QOpenGLFunctions_1_4" since="5.1"/>
- <object-type name="QOpenGLFunctions_1_5" since="5.1"/>
- <object-type name="QOpenGLFunctions_2_0" since="5.1">
- <object-type name="QOpenGLFunctions_2_1" since="5.1"/>
- <object-type name="QOpenGLFunctions_3_0" since="5.1"/>
- <object-type name="QOpenGLFunctions_3_1" since="5.1"/>
- <object-type name="QOpenGLFunctions_3_2_Compatibility" since="5.1"/>
- <object-type name="QOpenGLFunctions_3_2_Core" since="5.1"/>
- <object-type name="QOpenGLFunctions_3_3_Compatibility" since="5.1"/>
- <object-type name="QOpenGLFunctions_3_3_Core" since="5.1"/>
- <object-type name="QOpenGLFunctions_4_0_Compatibility" since="5.1"/>
- <object-type name="QOpenGLFunctions_4_0_Core" since="5.1"/>
- <object-type name="QOpenGLFunctions_4_1_Compatibility" since="5.1"/>
- <object-type name="QOpenGLFunctions_4_1_Core" since="5.1"/>
- <object-type name="QOpenGLFunctions_4_2_Compatibility" since="5.1"/>
- <object-type name="QOpenGLFunctions_4_2_Core" since="5.1"/>
- <object-type name="QOpenGLFunctions_4_3_Compatibility" since="5.1"/>
- <object-type name="QOpenGLFunctions_4_3_Core" since="5.1"/>
- <object-type name="QOpenGLFunctions_4_4_Compatibility" since="5.5/>
- <object-type name="QOpenGLFunctions_4_4_Core" since="5.5"/>
- <object-type name="QOpenGLFunctions_4_5_Compatibility since="5.5""/>
- <object-type name="QOpenGLFunctions_4_5_Core" since="5.5"/>
- <object-type name="QOpenGLFunctions_ES2" since="5.1"/>
- -->
- <value-type name="QOpenGLPixelTransferOptions"/>
- <object-type name="QOpenGLShader" since="5.0">
- <enum-type name="ShaderTypeBit" flags="ShaderType"/>
- </object-type>
- <object-type name="QOpenGLShaderProgram" since="5.0">
- <modify-function signature="setAttributeArray(int,const float*,int,int)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="setAttributeArray(const char*,const float*,int,int)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="setAttributeArray(int,const float*,int,int)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="setAttributeValue(int,const float*,int,int)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="setAttributeValue(const char*,const float*,int,int)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="setUniformValueArray(int,const float*,int,int)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="setUniformValueArray(int,const int*,int)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="setUniformValueArray(int,const unsigned int*,int)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="setUniformValueArray(const char*,const float*,int,int)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="setUniformValueArray(const char*,const int*,int)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <modify-function signature="setUniformValueArray(const char*,const unsigned int*,int)">
- <modify-argument index="2"><array/></modify-argument>
- </modify-function>
- <!-- Add explicit signatures for the setUniformValue functions -->
- <modify-function signature="^setUniformValue\(const char\*,(float|int|uint)\)$" remove="all"/>
- <!-- No need for a signature for GLuint, since Qt (internally) calls the same function: glUniform1i -->
- <add-function signature="setUniformValue1f(const char*, float)" return-type="void">
- <inject-code file="../glue/qtgui.cpp" snippet="qopenglshaderprogram_setuniformvalue_float"/>
- </add-function>
- <add-function signature="setUniformValue1i(const char*, int)" return-type="void">
- <inject-code file="../glue/qtgui.cpp" snippet="qopenglshaderprogram_setuniformvalue_int"/>
- </add-function>
- <add-function signature="setUniformValue1f(int, float)" return-type="void">
- <inject-code file="../glue/qtgui.cpp" snippet="qopenglshaderprogram_setuniformvalue_float"/>
- </add-function>
- <add-function signature="setUniformValue1i(int, int)" return-type="void">
- <inject-code file="../glue/qtgui.cpp" snippet="qopenglshaderprogram_setuniformvalue_int"/>
- </add-function>
- </object-type>
- <object-type name="QOpenGLTexture" since="5.2">
- <enum-type name="BindingTarget"/>
- <enum-type name="CoordinateDirection"/>
- <enum-type name="ComparisonFunction"/>
- <enum-type name="ComparisonMode"/>
- <enum-type name="CubeMapFace"/>
- <enum-type name="DepthStencilMode"/>
- <enum-type name="Feature" flags="Features"/>
- <enum-type name="Filter"/>
- <enum-type name="MipMapGeneration"/>
- <enum-type name="PixelFormat"/>
- <enum-type name="PixelType"/>
- <enum-type name="SwizzleComponent"/>
- <enum-type name="SwizzleValue"/>
- <enum-type name="Target"/>
- <enum-type name="TextureFormat"/>
- <enum-type name="TextureFormatClass"/>
- <enum-type name="TextureUnitReset"/>
- <enum-type name="WrapMode"/>
- <modify-function signature="borderColor(unsigned int*)const" remove="all"/>
- <modify-function signature="borderColor(int*)const" remove="all"/>
- <modify-function signature="borderColor(float*)const" remove="all"/>
- <!-- Work around link error introduced by qtbase/d15b02ff291e3124d9bb8ac3b06b704c292f52ab, can be removed once
- qtbase/1bfabe35d8178c93e66acef21c01e08980f9ed0d has landed -->
- <modify-function signature="setData(int,int,int,int,int,int,int,QOpenGLTexture::PixelFormat,QOpenGLTexture::PixelType,const void*,QOpenGLPixelTransferOptions*const)" remove="all"/>
- </object-type>
- <object-type name="QOpenGLTextureBlitter">
- <enum-type name="Origin"/>
- </object-type>
- <object-type name="QOpenGLTimeMonitor" since="5.1"/>
- <object-type name="QOpenGLTimerQuery" since="5.1"/>
- <object-type name="QOpenGLWindow" since="5.4">
- <enum-type name="UpdateBehavior"/>
- </object-type>
- <value-type name="QOpenGLVersionProfile" since="5.1"/>
- <object-type name="QOpenGLVertexArrayObject">
- <object-type name="Binder"/>
- </object-type>
- <value-type name="QPageLayout">
- <enum-type name="Mode"/>
- <enum-type name="Orientation"/>
- <enum-type name="Unit"/>
- </value-type>
- <value-type name="QPageSize">
- <enum-type name="PageSizeId"/>
- <enum-type name="Unit"/>
- <enum-type name="SizeMatchPolicy"/>
- </value-type>
- <object-type name="QPaintDeviceWindow"/>
- <value-type name="QPixelFormat">
- <enum-type name="AlphaUsage"/>
- <enum-type name="AlphaPosition"/>
- <enum-type name="AlphaPremultiplied"/>
- <enum-type name="ByteOrder"/>
- <enum-type name="ColorModel"/>
- <enum-type name="TypeInterpretation"/>
- <enum-type name="YUVLayout"/>
- </value-type>
- <object-type name="QPdfWriter"/>
- <value-type name="QPointingDeviceUniqueId"/>
- <value-type name="QRawFont">
- <enum-type name="AntialiasingType"/>
- <enum-type name="LayoutFlag" flags="LayoutFlags"/>
- <modify-function signature="advancesForGlyphIndexes(const quint32*,QPointF*,int)const" remove="all"/>
- <modify-function signature="advancesForGlyphIndexes(const quint32*,QPointF*,int,QFlags&lt;QRawFont::LayoutFlag&gt;)const" remove="all"/>
- <modify-function signature="glyphIndexesForChars(const QChar*,int,quint32*,int*)const" remove="all"/>
- <modify-function signature="loadFromData(const QByteArray&amp;,qreal, QFont::HintingPreference)" allow-thread="yes"/>
- <modify-function signature="loadFromFile(const QString&amp;,qreal, QFont::HintingPreference)" allow-thread="yes"/>
- </value-type>
- <object-type name="QRasterWindow"/>
- <object-type name="QScreen">
- <modify-function signature="grabWindow(WId,int,int,int,int)">
- <modify-argument index="1">
- <replace-type modified-type="long"/>
- </modify-argument>
- <inject-code file="../glue/qtgui.cpp" snippet="qscreen-grabWindow"/>
- </modify-function>
- </object-type>
- <object-type name="QStyleHints"/>
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtGui/typesystem_gui_mac.xml b/sources/pyside2/PySide2/QtGui/typesystem_gui_mac.xml
deleted file mode 100644
index 8b071a18b..000000000
--- a/sources/pyside2/PySide2/QtGui/typesystem_gui_mac.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtGui">
- <rejection class="*" function-name="qt_mac_set_cursor"/>
- <rejection class="*" function-name="macMenu"/>
-
- <primitive-type name="Qt::HANDLE" target-lang-api-name="PyObject"/>
-
- <suppress-warning text="enum 'QSysInfo::Endian' is specified in typesystem, but not declared"/>
- <suppress-warning text="type 'QGtkStyle' is specified in typesystem, but not defined. This could potentially lead to compilation errors."/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtGui/typesystem_gui_win.xml b/sources/pyside2/PySide2/QtGui/typesystem_gui_win.xml
deleted file mode 100644
index 6386cbd25..000000000
--- a/sources/pyside2/PySide2/QtGui/typesystem_gui_win.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtGui"/>
diff --git a/sources/pyside2/PySide2/QtGui/typesystem_gui_x11.xml b/sources/pyside2/PySide2/QtGui/typesystem_gui_x11.xml
deleted file mode 100644
index 6386cbd25..000000000
--- a/sources/pyside2/PySide2/QtGui/typesystem_gui_x11.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtGui"/>
diff --git a/sources/pyside2/PySide2/QtHelp/CMakeLists.txt b/sources/pyside2/PySide2/QtHelp/CMakeLists.txt
deleted file mode 100644
index 267703f6e..000000000
--- a/sources/pyside2/PySide2/QtHelp/CMakeLists.txt
+++ /dev/null
@@ -1,60 +0,0 @@
-project(QtHelp)
-
-set(QtHelp_SRC
-${QtHelp_GEN_DIR}/qhelpcontentitem_wrapper.cpp
-${QtHelp_GEN_DIR}/qhelpcontentmodel_wrapper.cpp
-${QtHelp_GEN_DIR}/qhelpcontentwidget_wrapper.cpp
-${QtHelp_GEN_DIR}/qhelpenginecore_wrapper.cpp
-${QtHelp_GEN_DIR}/qhelpengine_wrapper.cpp
-${QtHelp_GEN_DIR}/qhelpindexmodel_wrapper.cpp
-${QtHelp_GEN_DIR}/qhelpindexwidget_wrapper.cpp
-${QtHelp_GEN_DIR}/qhelpsearchengine_wrapper.cpp
-${QtHelp_GEN_DIR}/qhelpsearchquerywidget_wrapper.cpp
-${QtHelp_GEN_DIR}/qhelpsearchquery_wrapper.cpp
-${QtHelp_GEN_DIR}/qhelpsearchresult_wrapper.cpp
-${QtHelp_GEN_DIR}/qhelpsearchresultwidget_wrapper.cpp
-# module is always needed
-${QtHelp_GEN_DIR}/qthelp_module_wrapper.cpp
-)
-
-if (Qt${QT_MAJOR_VERSION}Help_VERSION VERSION_EQUAL 5.13.0
- OR Qt${QT_MAJOR_VERSION}Help_VERSION VERSION_GREATER 5.13.0)
- list(APPEND QtHelp_SRC
- ${QtHelp_GEN_DIR}/qcompressedhelpinfo_wrapper.cpp
- ${QtHelp_GEN_DIR}/qhelpfilterdata_wrapper.cpp
- ${QtHelp_GEN_DIR}/qhelpfilterengine_wrapper.cpp)
-endif()
-
-if (Qt${QT_MAJOR_VERSION}Help_VERSION VERSION_EQUAL 5.15.0
- OR Qt${QT_MAJOR_VERSION}Help_VERSION VERSION_GREATER 5.15.0)
- list(APPEND QtHelp_SRC
- ${QtHelp_GEN_DIR}/qhelpfiltersettingswidget_wrapper.cpp
- ${QtHelp_GEN_DIR}/qhelplink_wrapper.cpp)
-endif()
-
-
-set(QtHelp_include_dirs ${QtHelp_SOURCE_DIR}
- ${QtHelp_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Help_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtWidgets_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtCore_GEN_DIR}
- )
-set(QtHelp_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Help_LIBRARIES})
-
-set(QtHelp_deps QtWidgets)
-
-create_pyside_module(NAME QtHelp
- INCLUDE_DIRS QtHelp_include_dirs
- LIBRARIES QtHelp_libraries
- DEPS QtHelp_deps
- TYPESYSTEM_PATH QtHelp_SOURCE_DIR
- SOURCES QtHelp_SRC)
diff --git a/sources/pyside2/PySide2/QtHelp/typesystem_help.xml b/sources/pyside2/PySide2/QtHelp/typesystem_help.xml
deleted file mode 100644
index 76013d1ac..000000000
--- a/sources/pyside2/PySide2/QtHelp/typesystem_help.xml
+++ /dev/null
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-
-<typesystem package="PySide2.QtHelp">
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
-
- <value-type name="QCompressedHelpInfo" since="5.13"/>
- <value-type name="QHelpContentItem">
- <modify-function signature="parent()const">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- </modify-function>
- </value-type>
- <object-type name="QHelpContentModel" polymorphic-id-expression="qobject_cast&lt;QHelpContentModel*&gt;(%1)"/>
- <object-type name="QHelpContentWidget"/>
- <object-type name="QHelpEngine"/>
- <object-type name="QHelpEngineCore"/>
- <value-type name="QHelpFilterData" since="5.13"/>
- <object-type name="QHelpFilterEngine" since="5.13"/>
- <object-type name="QHelpFilterSettingsWidget" since="5.15"/>
- <object-type name="QHelpIndexModel"/>
- <object-type name="QHelpIndexWidget"/>
- <value-type name="QHelpLink" since="5.15"/>
- <object-type name="QHelpSearchEngine"/>
- <value-type name="QHelpSearchQuery">
- <enum-type name="FieldName"/>
- </value-type>
- <object-type name="QHelpSearchQueryWidget"/>
- <object-type name="QHelpSearchResult"/>
- <object-type name="QHelpSearchResultWidget"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtLocation/CMakeLists.txt b/sources/pyside2/PySide2/QtLocation/CMakeLists.txt
deleted file mode 100644
index fa21310b7..000000000
--- a/sources/pyside2/PySide2/QtLocation/CMakeLists.txt
+++ /dev/null
@@ -1,75 +0,0 @@
-project(QtLocation)
-
-set(QtLocation_OPTIONAL_SRC )
-set(QtLocation_DROPPED_ENTRIES )
-
-set(QtLocation_SRC
-${QtLocation_GEN_DIR}/qgeocodereply_wrapper.cpp
-${QtLocation_GEN_DIR}/qgeomaneuver_wrapper.cpp
-${QtLocation_GEN_DIR}/qgeoroute_wrapper.cpp
-${QtLocation_GEN_DIR}/qgeoroutereply_wrapper.cpp
-${QtLocation_GEN_DIR}/qgeoroutesegment_wrapper.cpp
-${QtLocation_GEN_DIR}/qgeoserviceprovider_wrapper.cpp
-${QtLocation_GEN_DIR}/qplace_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacecontentreply_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacedetailsreply_wrapper.cpp
-${QtLocation_GEN_DIR}/qplaceicon_wrapper.cpp
-${QtLocation_GEN_DIR}/qplaceidreply_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacemanager_wrapper.cpp
-${QtLocation_GEN_DIR}/qplaceuser_wrapper.cpp
-${QtLocation_GEN_DIR}/qgeocodingmanager_wrapper.cpp
-${QtLocation_GEN_DIR}/qgeocodingmanagerengine_wrapper.cpp
-${QtLocation_GEN_DIR}/qgeorouterequest_wrapper.cpp
-${QtLocation_GEN_DIR}/qgeoroutingmanager_wrapper.cpp
-${QtLocation_GEN_DIR}/qgeoroutingmanagerengine_wrapper.cpp
-${QtLocation_GEN_DIR}/qgeoserviceproviderfactory_wrapper.cpp
-${QtLocation_GEN_DIR}/qplaceattribute_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacecategory_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacecontactdetail_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacecontent_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacecontentrequest_wrapper.cpp
-${QtLocation_GEN_DIR}/qplaceeditorial_wrapper.cpp
-${QtLocation_GEN_DIR}/qplaceimage_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacemanagerengine_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacematchreply_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacematchrequest_wrapper.cpp
-${QtLocation_GEN_DIR}/qplaceproposedsearchresult_wrapper.cpp
-${QtLocation_GEN_DIR}/qplaceratings_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacereply_wrapper.cpp
-${QtLocation_GEN_DIR}/qplaceresult_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacereview_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacesearchreply_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacesearchrequest_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacesearchresult_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacesearchsuggestionreply_wrapper.cpp
-${QtLocation_GEN_DIR}/qplacesupplier_wrapper.cpp
-# module is always needed
-${QtLocation_GEN_DIR}/qtlocation_module_wrapper.cpp
-)
-
-if (Qt${QT_MAJOR_VERSION}Location_VERSION VERSION_EQUAL 5.11.0
- OR Qt${QT_MAJOR_VERSION}Location_VERSION VERSION_GREATER 5.11.0)
- list(APPEND QtLocation_SRC
- ${QtLocation_GEN_DIR}/qgeoserviceproviderfactoryv2_wrapper.cpp)
-endif()
-
-set(QtLocation_include_dirs ${QtLocation_SOURCE_DIR}
- ${QtLocation_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Location_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtPositioning_GEN_DIR})
-
-set(QtLocation_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Location_LIBRARIES})
-
-set(QtLocation_deps QtCore QtPositioning)
-
-create_pyside_module(NAME QtLocation
- INCLUDE_DIRS QtLocation_include_dirs
- LIBRARIES QtLocation_libraries
- DEPS QtLocation_deps
- TYPESYSTEM_PATH QtLocation_SOURCE_DIR
- SOURCES QtLocation_SRC
- DROPPED_ENTRIES QtLocation_DROPPED_ENTRIES)
diff --git a/sources/pyside2/PySide2/QtLocation/typesystem_location.xml b/sources/pyside2/PySide2/QtLocation/typesystem_location.xml
deleted file mode 100644
index 2d39e6549..000000000
--- a/sources/pyside2/PySide2/QtLocation/typesystem_location.xml
+++ /dev/null
@@ -1,116 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtLocation">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="QtPositioning/typesystem_positioning.xml" generate="no"/>
- <object-type name="QGeoCodeReply">
- <enum-type name="Error"/>
- </object-type>
- <value-type name="QGeoManeuver">
- <enum-type name="InstructionDirection"/>
- </value-type>
- <value-type name="QGeoRoute"/>
- <object-type name="QGeoRouteReply">
- <enum-type name="Error"/>
- </object-type>
- <value-type name="QGeoRouteSegment"/>
- <object-type name="QGeoServiceProvider">
- <enum-type name="Error"/>
- <enum-type name="RoutingFeature" flags="RoutingFeatures"/>
- <enum-type name="GeocodingFeature" flags="GeocodingFeatures"/>
- <enum-type name="MappingFeature" flags="MappingFeatures"/>
- <enum-type name="PlacesFeature" flags="PlacesFeatures"/>
- <enum-type name="NavigationFeature" flags="NavigationFeatures"/>
- </object-type>
- <value-type name="QPlace"/>
- <object-type name="QPlaceContentReply"/>
- <object-type name="QPlaceDetailsReply"/>
- <value-type name="QPlaceIcon"/>
- <object-type name="QPlaceIdReply">
- <enum-type name="OperationType"/>
- </object-type>
- <object-type name="QPlaceManager"/>
- <value-type name="QPlaceUser"/>
- <object-type name="QGeoCodingManager"/>
- <object-type name="QGeoCodingManagerEngine"/>
- <object-type name="QGeoRouteRequest">
- <enum-type name="TravelMode" flags="TravelModes"/>
- <enum-type name="FeatureType" flags="FeatureTypes"/>
- <enum-type name="FeatureWeight" flags="FeatureWeights"/>
- <enum-type name="RouteOptimization" flags="RouteOptimizations"/>
- <enum-type name="SegmentDetail" flags="SegmentDetails"/>
- <enum-type name="ManeuverDetail" flags="ManeuverDetails"/>
- </object-type>
- <object-type name="QGeoRoutingManager"/>
- <object-type name="QGeoRoutingManagerEngine"/>
- <object-type name="QGeoServiceProviderFactory"/>
- <object-type name="QGeoServiceProviderFactoryV2" since="5.11"/>
- <value-type name="QPlaceAttribute"/>
- <value-type name="QPlaceCategory"/>
- <value-type name="QPlaceContactDetail"/>
- <value-type name="QPlaceContent">
- <enum-type name="Type"/>
- </value-type>
- <value-type name="QPlaceContentRequest"/>
- <object-type name="QPlaceEditorial"/>
- <object-type name="QPlaceImage"/>
- <object-type name="QPlaceManagerEngine"/>
- <object-type name="QPlaceMatchReply"/>
- <value-type name="QPlaceMatchRequest"/>
- <object-type name="QPlaceProposedSearchResult"/>
- <value-type name="QPlaceRatings"/>
- <object-type name="QPlaceReply">
- <enum-type name="Error"/>
- <enum-type name="Type"/>
- </object-type>
- <object-type name="QPlaceResult"/>
- <object-type name="QPlaceReview"/>
- <object-type name="QPlaceSearchReply"/>
- <object-type name="QPlaceSearchRequest">
- <enum-type name="RelevanceHint"/>
- </object-type>
- <object-type name="QPlaceSearchResult">
- <enum-type name="SearchResultType"/>
- </object-type>
- <object-type name="QPlaceSearchSuggestionReply"/>
- <value-type name="QPlaceSupplier"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtMacExtras/CMakeLists.txt b/sources/pyside2/PySide2/QtMacExtras/CMakeLists.txt
deleted file mode 100644
index 6e3d0f25c..000000000
--- a/sources/pyside2/PySide2/QtMacExtras/CMakeLists.txt
+++ /dev/null
@@ -1,33 +0,0 @@
-project(QtMacExtras)
-
-set(QtMacExtras_SRC
-${QtMacExtras_GEN_DIR}/qmacpasteboardmime_wrapper.cpp
-${QtMacExtras_GEN_DIR}/qmactoolbar_wrapper.cpp
-${QtMacExtras_GEN_DIR}/qmactoolbaritem_wrapper.cpp
-
-# module is always needed
-${QtMacExtras_GEN_DIR}/qtmacextras_module_wrapper.cpp
-)
-
-set(QtMacExtras_include_dirs ${QtMacExtras_SOURCE_DIR}
- ${QtMacExtras_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}MacExtras_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${libpyside_SOURCE_DIR})
-
-set(QtMacExtras_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}MacExtras_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES})
-
-set(QtMacExtras_deps QtCore QtGui)
-
-create_pyside_module(NAME QtMacExtras
- INCLUDE_DIRS QtMacExtras_include_dirs
- LIBRARIES QtMacExtras_libraries
- DEPS QtMacExtras_deps
- TYPESYSTEM_PATH QtMacExtras_SOURCE_DIR
- SOURCES QtMacExtras_SRC)
diff --git a/sources/pyside2/PySide2/QtMacExtras/typesystem_macextras.xml b/sources/pyside2/PySide2/QtMacExtras/typesystem_macextras.xml
deleted file mode 100644
index d62ce48b8..000000000
--- a/sources/pyside2/PySide2/QtMacExtras/typesystem_macextras.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtMacExtras">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
-
- <function signature="qRegisterDraggedTypes(QStringList)" since="5.2"/>
-
- <object-type name="QMacPasteboardMime" since="5.2">
- <enum-type name="QMacPasteboardMimeType"/>
- </object-type>
- <object-type name="QMacToolBar" since="5.3"/>
- <object-type name="QMacToolBarItem" since="5.3">
- <enum-type name="StandardItem"/>
- </object-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtMultimedia/CMakeLists.txt b/sources/pyside2/PySide2/QtMultimedia/CMakeLists.txt
deleted file mode 100644
index 64e6a3a4e..000000000
--- a/sources/pyside2/PySide2/QtMultimedia/CMakeLists.txt
+++ /dev/null
@@ -1,130 +0,0 @@
-project(QtMultimedia)
-
-set(QtMultimedia_SRC
-${QtMultimedia_GEN_DIR}/qabstractaudiodeviceinfo_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qabstractaudioinput_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qabstractaudiooutput_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qabstractvideobuffer_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qabstractvideofilter_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qabstractvideosurface_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudiobuffer_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudiodecoder_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudiodecodercontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudiodeviceinfo_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudioencodersettingscontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudioencodersettings_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudioformat_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudioinputselectorcontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudioinput_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudiooutputselectorcontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudiooutput_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudioprobe_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudiorecorder_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudiorolecontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qaudio_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcameracapturebufferformatcontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcameracapturedestinationcontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcameracontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcameraexposurecontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcameraexposure_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcamerafeedbackcontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcamerafocus_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcameraflashcontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcamerafocuscontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcamerafocuszone_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcamera_frameraterange_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcameraimagecapturecontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcameraimagecapture_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcameraimageprocessing_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcameraimageprocessingcontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcamerainfocontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcamerainfo_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcameralockscontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcameraviewfindersettingscontrol2_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcameraviewfindersettingscontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcameraviewfindersettings_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcamera_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qcamerazoomcontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qimageencodercontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qimageencodersettings_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediaaudioprobecontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediaavailabilitycontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediabindableinterface_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediacontainercontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediacontent_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediacontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediagaplessplaybackcontrol_wrapper.cpp
-# Causes compile errors: ${QtMultimedia_GEN_DIR}/qmediametadata_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmedianetworkaccesscontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediaobject_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediaplayercontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediaplayer_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediaplaylist_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediarecordercontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediarecorder_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediaresource_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediaservice_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediaservicecamerainfointerface_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediaservicedefaultdeviceinterface_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediaservicefeaturesinterface_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediaserviceproviderhint_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediaservicesupporteddevicesinterface_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediaservicesupportedformatsinterface_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediastreamscontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediatimeinterval_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediatimerange_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmediavideoprobecontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmetadatareadercontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmetadatawritercontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qmultimedia_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qradiodatacontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qradiodata_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qradiotunercontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qradiotuner_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qsoundeffect_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qsound_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qvideodeviceselectorcontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qvideoencodersettingscontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qvideoencodersettings_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qvideofilterrunnable_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qvideoframe_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qvideoprobe_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qvideorenderercontrol_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qvideosurfaceformat_wrapper.cpp
-${QtMultimedia_GEN_DIR}/qvideowindowcontrol_wrapper.cpp
-
-# module is always needed
-${QtMultimedia_GEN_DIR}/qtmultimedia_module_wrapper.cpp
-)
-
-if (Qt${QT_MAJOR_VERSION}Multimedia_VERSION VERSION_EQUAL 5.11.0
- OR Qt${QT_MAJOR_VERSION}Multimedia_VERSION VERSION_GREATER 5.11.0)
- list(APPEND QtMultimedia_SRC
- ${QtMultimedia_GEN_DIR}/qcustomaudiorolecontrol_wrapper.cpp)
-endif()
-
-set(QtMultimedia_include_dirs ${QtMultimedia_SOURCE_DIR}
- ${QtMultimedia_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Network_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Multimedia_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtNetwork_GEN_DIR})
-
-set(QtMultimedia_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Multimedia_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Network_LIBRARIES}
- )
-set(QtMultimedia_deps QtCore QtGui QtNetwork)
-
-create_pyside_module(NAME QtMultimedia
- INCLUDE_DIRS QtMultimedia_include_dirs
- LIBRARIES QtMultimedia_libraries
- DEPS QtMultimedia_deps
- TYPESYSTEM_PATH QtMultimedia_SOURCE_DIR
- SOURCES QtMultimedia_SRC)
diff --git a/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia.xml b/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia.xml
deleted file mode 100644
index 323c50ba8..000000000
--- a/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtMultimedia">
- <load-typesystem name="QtMultimedia/typesystem_multimedia_common.xml" generate="yes"/>
- <load-typesystem name="QtMultimedia/typesystem_multimedia_forward_declarations.xml" generate="yes"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml b/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml
deleted file mode 100644
index 0c1012136..000000000
--- a/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_common.xml
+++ /dev/null
@@ -1,372 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtMultimedia">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
- <load-typesystem name="QtNetwork/typesystem_network.xml" generate="no"/>
-
- <namespace-type name="QAudio">
- <enum-type name="Error"/>
- <enum-type name="Mode"/>
- <enum-type name="Role" since="5.6"/>
- <enum-type name="State"/>
- <enum-type name="VolumeScale" since="5.8"/>
- </namespace-type>
-
- <value-type name="QVideoSurfaceFormat">
- <enum-type name="Direction"/>
- <enum-type name="YCbCrColorSpace"/>
- </value-type>
- <object-type name="QAbstractVideoBuffer">
- <enum-type name="HandleType"/>
- <enum-type name="MapMode"/>
- <modify-function signature="map(QAbstractVideoBuffer::MapMode,int*,int*)" remove="all"/>
- <!-- TODO: discuss a way to have this working with the virtual method.
- <modify-function signature="map(QAbstractVideoBuffer::MapMode,int*,int*)">
- <modify-argument index="0">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_arg,int*,int*"/>
- </inject-code>
- </modify-function>
- -->
- <!-- TODO: PYSIDE-354, arrays are not supported -->
- <modify-function signature="mapPlanes(QAbstractVideoBuffer::MapMode,int*,int[4],uchar*[4])" remove="all"/>
- </object-type>
- <object-type name="QAbstractVideoSurface">
- <enum-type name="Error"/>
- </object-type>
- <object-type name="QAbstractVideoFilter">
- <modify-function signature="createFilterRunnable()">
- <modify-argument index="return">
- <define-ownership class="native" owner="c++"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <value-type name="QVideoFrame">
- <enum-type name="FieldType"/>
- <enum-type name="PixelFormat"/>
- <modify-function signature="bits()">
- <inject-code file="../glue/qtmultimedia.cpp" snippet="qvideoframe-bits"/>
- </modify-function>
- <modify-function signature="bits(int)" remove="all"/>
- <modify-function signature="bits(int)const" remove="all"/>
- </value-type>
-
- <value-type name="QAudioBuffer"/>
- <object-type name="QAudioDecoder">
- <enum-type name="Error"/>
- <enum-type name="State"/>
- </object-type>
- <value-type name="QAudioFormat">
- <enum-type name="Endian"/>
- <enum-type name="SampleType"/>
- </value-type>
- <value-type name="QAudioDeviceInfo"/>
- <object-type name="QAbstractAudioDeviceInfo"/>
-
- <object-type name="QAbstractAudioOutput">
- <modify-function signature="start()">
- <modify-argument index="return">
- <define-ownership class="target" owner="c++"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="start(QIODevice*)">
- <modify-argument index="1">
- <define-ownership class="target" owner="c++"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QAbstractAudioInput">
- <modify-function signature="start()">
- <modify-argument index="return">
- <define-ownership class="target" owner="c++"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="start(QIODevice*)">
- <modify-argument index="1">
- <define-ownership class="target" owner="c++"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QAudioDecoderControl"/>
- <object-type name="QAudioProbe"/>
- <value-type name="QAudioEncoderSettings"/>
- <object-type name="QAudioEncoderSettingsControl">
- <modify-function signature="supportedSampleRates(const QAudioEncoderSettings &amp;,bool*)const" remove="all"/>
- </object-type>
-
- <object-type name="QAudioInput">
- <modify-function signature="start()">
- <modify-argument index="return">
- <define-ownership class="target" owner="c++"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="start(QIODevice*)">
- <modify-argument index="1">
- <define-ownership class="target" owner="c++"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QAudioInputSelectorControl"/>
-
- <object-type name="QAudioOutput">
- <modify-function signature="start()">
- <modify-argument index="return">
- <define-ownership class="target" owner="c++"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="start(QIODevice*)">
- <modify-argument index="1">
- <define-ownership class="target" owner="c++"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QAudioOutputSelectorControl"/>
- <object-type name="QAudioRecorder"/>
- <object-type name="QAudioRoleControl"/>
-
- <object-type name="QCamera">
- <value-type name="FrameRateRange"/>
- <enum-type name="CaptureMode" flags="CaptureModes"/>
- <enum-type name="Error"/>
- <enum-type name="LockChangeReason"/>
- <enum-type name="LockStatus"/>
- <enum-type name="LockType" flags="LockTypes"/>
- <enum-type name="Position"/>
- <enum-type name="State"/>
- <enum-type name="Status"/>
- <modify-function signature="setViewfinder(QVideoWidget*)">
- <modify-argument index="1">
- <replace-type modified-type="QObject*"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtmultimedia.cpp" snippet="upcast"/>
- </modify-function>
- <modify-function signature="setViewfinder(QGraphicsVideoItem*)">
- <modify-argument index="1">
- <replace-type modified-type="QObject*"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtmultimedia.cpp" snippet="upcast"/>
- </modify-function>
- </object-type>
- <object-type name="QCameraCaptureBufferFormatControl"/>
- <object-type name="QCameraCaptureDestinationControl"/>
- <object-type name="QCameraControl">
- <enum-type name="PropertyChangeType"/>
- </object-type>
- <object-type name="QCameraExposure">
- <enum-type name="FlashMode" flags="FlashModes"/>
- <enum-type name="ExposureMode"/>
- <enum-type name="MeteringMode"/>
- <modify-function signature="supportedApertures(bool*)const" remove="all"/>
- <modify-function signature="supportedIsoSensitivities(bool*)const" remove="all"/>
- <modify-function signature="supportedShutterSpeeds(bool*)const" remove="all"/>
- </object-type>
- <object-type name="QCameraExposureControl">
- <enum-type name="ExposureParameter"/>
- <modify-function signature="supportedParameterRange(QCameraExposureControl::ExposureParameter,bool*)const" remove="all"/>
- </object-type>
- <object-type name="QCameraFeedbackControl">
- <enum-type name="EventType"/>
- </object-type>
- <value-type name="QCameraFocusZone">
- <enum-type name="FocusZoneStatus"/>
- </value-type>
- <object-type name="QCameraFocus">
- <enum-type name="FocusMode" flags="FocusModes"/>
- <enum-type name="FocusPointMode"/>
- </object-type>
- <object-type name="QCameraFlashControl"/>
- <object-type name="QCameraFocusControl"/>
- <value-type name="QCameraInfo"/>
- <object-type name="QCameraInfoControl"/>
- <object-type name="QCameraImageCapture">
- <enum-type name="CaptureDestination" flags="CaptureDestinations"/>
- <enum-type name="DriveMode"/>
- <enum-type name="Error"/>
- <modify-function signature="supportedResolutions(const QImageEncoderSettings &amp;,bool*)const" remove="all"/>
- </object-type>
- <object-type name="QCameraImageCaptureControl"/>
- <object-type name="QCameraImageProcessing">
- <enum-type name="WhiteBalanceMode"/>
- <enum-type name="ColorFilter"/>
- </object-type>
- <object-type name="QCameraImageProcessingControl">
- <enum-type name="ProcessingParameter"/>
- </object-type>
- <object-type name="QCameraLocksControl"/>
- <value-type name="QCameraViewfinderSettings"/>
- <object-type name="QCameraViewfinderSettingsControl">
- <enum-type name="ViewfinderParameter"/>
- </object-type>
- <object-type name="QCameraViewfinderSettingsControl2"/>
- <object-type name="QCameraZoomControl"/>
-
- <value-type name="QImageEncoderSettings"/>
- <object-type name="QImageEncoderControl">
- <modify-function signature="supportedResolutions(const QImageEncoderSettings &amp;,bool*)const" remove="all"/>
- </object-type>
-
- <object-type name="QMediaAudioProbeControl"/>
- <object-type name="QMediaAvailabilityControl"/>
- <object-type name="QMediaBindableInterface"/>
- <object-type name="QMediaContainerControl"/>
- <value-type name="QMediaContent"/>
- <object-type name="QMediaGaplessPlaybackControl"/>
- <object-type name="QMediaControl"/>
- <object-type name="QCustomAudioRoleControl" since="5.11"/>
- <object-type name="QMediaNetworkAccessControl"/>
- <!-- Causes compile errors
- <namespace-type name="QMediaMetaData"/>
- -->
- <object-type name="QMediaObject"/>
- <object-type name="QMediaPlayer">
- <enum-type name="State"/>
- <enum-type name="MediaStatus"/>
- <enum-type name="Flag" flags="Flags"/>
- <enum-type name="Error"/>
- <modify-function signature="setVideoOutput(QVideoWidget*)">
- <modify-argument index="1">
- <replace-type modified-type="QObject*"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtmultimedia.cpp" snippet="upcast"/>
- </modify-function>
- <modify-function signature="setVideoOutput(QGraphicsVideoItem*)">
- <modify-argument index="1">
- <replace-type modified-type="QObject*"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtmultimedia.cpp" snippet="upcast"/>
- </modify-function>
- </object-type>
- <object-type name="QMediaPlayerControl"/>
- <object-type name="QMediaPlaylist">
- <enum-type name="PlaybackMode"/>
- <enum-type name="Error"/>
- </object-type>
- <object-type name="QMediaRecorder">
- <enum-type name="Error"/>
- <enum-type name="State"/>
- <enum-type name="Status"/>
- <modify-function signature="supportedAudioSampleRates(const QAudioEncoderSettings &amp;,bool*)const" remove="all"/>
- <modify-function signature="supportedFrameRates(const QVideoEncoderSettings &amp;,bool*)const" remove="all"/>
- <modify-function signature="supportedResolutions(const QVideoEncoderSettings &amp;,bool*)const" remove="all"/>
- </object-type>
- <object-type name="QMediaRecorderControl"/>
- <value-type name="QMediaResource"/>
- <object-type name="QMediaService"/>
- <interface-type name="QMediaServiceCameraInfoInterface"/>
- <interface-type name="QMediaServiceDefaultDeviceInterface"/>
- <interface-type name="QMediaServiceFeaturesInterface"/>
- <value-type name="QMediaServiceProviderHint">
- <enum-type name="Type"/>
- <enum-type name="Feature" flags="Features"/>
- </value-type>
- <interface-type name="QMediaServiceSupportedDevicesInterface"/>
- <interface-type name="QMediaServiceSupportedFormatsInterface"/>
- <object-type name="QMediaStreamsControl">
- <enum-type name="StreamType"/>
- </object-type>
- <value-type name="QMediaTimeInterval"/>
- <value-type name="QMediaTimeRange"/>
- <object-type name="QMediaVideoProbeControl"/>
-
- <object-type name="QMetaDataReaderControl"/>
- <object-type name="QMetaDataWriterControl"/>
-
- <namespace-type name="QMultimedia">
- <enum-type name="SupportEstimate"/>
- <enum-type name="EncodingQuality"/>
- <enum-type name="EncodingMode"/>
- <enum-type name="AvailabilityStatus"/>
- </namespace-type>
-
- <object-type name="QRadioData">
- <enum-type name="Error"/>
- <enum-type name="ProgramType"/>
- </object-type>
- <object-type name="QRadioDataControl"/>
- <object-type name="QRadioTuner">
- <enum-type name="Band"/>
- <enum-type name="Error"/>
- <enum-type name="SearchMode"/>
- <enum-type name="State"/>
- <enum-type name="StereoMode"/>
- </object-type>
- <object-type name="QRadioTunerControl"/>
- <object-type name="QSound">
- <enum-type name="Loop"/>
- </object-type>
- <object-type name="QSoundEffect">
- <enum-type name="Loop"/>
- <enum-type name="Status"/>
- </object-type>
-
- <object-type name="QVideoDeviceSelectorControl"/>
- <value-type name="QVideoEncoderSettings"/>
- <object-type name="QVideoEncoderSettingsControl">
- <modify-function signature="supportedFrameRates(const QVideoEncoderSettings &amp;,bool*)const" remove="all"/>
- <modify-function signature="supportedResolutions(const QVideoEncoderSettings &amp;,bool*)const" remove="all"/>
- </object-type>
- <object-type name="QVideoFilterRunnable">
- <enum-type name="RunFlag" flags="RunFlags"/>
- </object-type>
- <object-type name="QVideoProbe"/>
- <object-type name="QVideoRendererControl"/>
- <object-type name="QVideoWindowControl"/>
-
- <suppress-warning text="Final class 'QMediaObject' set to non-final, as it is extended by other classes"/>
- <suppress-warning text="Pure virtual method 'QAbstractVideoBuffer::map(QAbstractVideoBuffer::MapMode,int*,int*)' must be implement but was completely removed on type system."/>
- <suppress-warning text="Pure virtual method 'QImageEncoderControl::supportedResolutions(QImageEncoderSettings,bool*)const' must be implement but was completely removed on type system."/>
- <suppress-warning text="Pure virtual method 'QCameraExposureControl::supportedParameterRange(QCameraExposureControl::ExposureParameter,bool*)const' must be implement but was completely removed on type system."/>
- <suppress-warning text="Pure virtual method 'QVideoEncoderSettingsControl::supportedFrameRates(QVideoEncoderSettings,bool*)const' must be implement but was completely removed on type system."/>
- <suppress-warning text="Pure virtual method 'QVideoEncoderSettingsControl::supportedResolutions(QVideoEncoderSettings,bool*)const' must be implement but was completely removed on type system."/>
- <suppress-warning text="Pure virtual method 'QAudioEncoderSettingsControl::supportedSampleRates(QAudioEncoderSettings,bool*)const' must be implement but was completely removed on type system."/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_forward_declarations.xml b/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_forward_declarations.xml
deleted file mode 100644
index 733e9b262..000000000
--- a/sources/pyside2/PySide2/QtMultimedia/typesystem_multimedia_forward_declarations.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtMultimedia">
- <custom-type name="QVideoWidget"/>
- <custom-type name="QGraphicsVideoItem"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtMultimediaWidgets/CMakeLists.txt b/sources/pyside2/PySide2/QtMultimediaWidgets/CMakeLists.txt
deleted file mode 100644
index 052db6c42..000000000
--- a/sources/pyside2/PySide2/QtMultimediaWidgets/CMakeLists.txt
+++ /dev/null
@@ -1,42 +0,0 @@
-project(QtMultimediaWidgets)
-
-set(QtMultimediaWidgets_SRC
-${QtMultimediaWidgets_GEN_DIR}/qcameraviewfinder_wrapper.cpp
-${QtMultimediaWidgets_GEN_DIR}/qgraphicsvideoitem_wrapper.cpp
-${QtMultimediaWidgets_GEN_DIR}/qvideowidget_wrapper.cpp
-${QtMultimediaWidgets_GEN_DIR}/qvideowidgetcontrol_wrapper.cpp
-# module is always needed
-${QtMultimediaWidgets_GEN_DIR}/qtmultimediawidgets_module_wrapper.cpp
-)
-
-set(QtMultimediaWidgets_include_dirs ${QtMultimediaWidgets_SOURCE_DIR}
- ${QtMultimediaWidgets_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Network_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Multimedia_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}MultimediaWidgets_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtNetwork_GEN_DIR}
- ${QtWidgets_GEN_DIR}
- ${QtMultimedia_GEN_DIR})
-
-set(QtMultimediaWidgets_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Multimedia_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}MultimediaWidgets_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Network_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES})
-
-set(QtMultimediaWidgets_deps QtCore QtGui QtNetwork QtWidgets QtMultimedia)
-
-create_pyside_module(NAME QtMultimediaWidgets
- INCLUDE_DIRS QtMultimediaWidgets_include_dirs
- LIBRARIES QtMultimediaWidgets_libraries
- DEPS QtMultimediaWidgets_deps
- TYPESYSTEM_PATH QtMultimediaWidgets_SOURCE_DIR
- SOURCES QtMultimediaWidgets_SRC)
diff --git a/sources/pyside2/PySide2/QtMultimediaWidgets/typesystem_multimediawidgets.xml b/sources/pyside2/PySide2/QtMultimediaWidgets/typesystem_multimediawidgets.xml
deleted file mode 100644
index 690220528..000000000
--- a/sources/pyside2/PySide2/QtMultimediaWidgets/typesystem_multimediawidgets.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtMultimediaWidgets">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
- <load-typesystem name="QtMultimedia/typesystem_multimedia_common.xml" generate="no"/>
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
-
- <object-type name="QCameraViewfinder"/>
- <object-type name="QGraphicsVideoItem"/>
- <object-type name="QVideoWidget"/>
- <object-type name="QVideoWidgetControl"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtNetwork/CMakeLists.txt b/sources/pyside2/PySide2/QtNetwork/CMakeLists.txt
deleted file mode 100644
index 7a9dcc23f..000000000
--- a/sources/pyside2/PySide2/QtNetwork/CMakeLists.txt
+++ /dev/null
@@ -1,121 +0,0 @@
-project(QtNetwork)
-
-set(QtNetwork_DROPPED_ENTRIES )
-
-set(QtNetwork_SRC
-${QtNetwork_GEN_DIR}/qabstractnetworkcache_wrapper.cpp
-${QtNetwork_GEN_DIR}/qabstractsocket_wrapper.cpp
-${QtNetwork_GEN_DIR}/qauthenticator_wrapper.cpp
-${QtNetwork_GEN_DIR}/qdnsdomainnamerecord_wrapper.cpp
-${QtNetwork_GEN_DIR}/qdnshostaddressrecord_wrapper.cpp
-${QtNetwork_GEN_DIR}/qdnslookup_wrapper.cpp
-${QtNetwork_GEN_DIR}/qdnsmailexchangerecord_wrapper.cpp
-${QtNetwork_GEN_DIR}/qdnsservicerecord_wrapper.cpp
-${QtNetwork_GEN_DIR}/qdnstextrecord_wrapper.cpp
-${QtNetwork_GEN_DIR}/qhostaddress_wrapper.cpp
-${QtNetwork_GEN_DIR}/qhostinfo_wrapper.cpp
-${QtNetwork_GEN_DIR}/qhstspolicy_wrapper.cpp
-${QtNetwork_GEN_DIR}/qhttpmultipart_wrapper.cpp
-${QtNetwork_GEN_DIR}/qhttppart_wrapper.cpp
-${QtNetwork_GEN_DIR}/qipv6address_wrapper.cpp
-${QtNetwork_GEN_DIR}/qlocalserver_wrapper.cpp
-${QtNetwork_GEN_DIR}/qlocalsocket_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkaccessmanager_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkaddressentry_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkcachemetadata_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkconfiguration_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkconfigurationmanager_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkcookie_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkcookiejar_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkdatagram_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkdiskcache_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkinterface_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkproxy_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkproxyfactory_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkproxyquery_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkreply_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworkrequest_wrapper.cpp
-${QtNetwork_GEN_DIR}/qnetworksession_wrapper.cpp
-${QtNetwork_GEN_DIR}/qpassworddigestor_wrapper.cpp
-${QtNetwork_GEN_DIR}/qssl_wrapper.cpp
-${QtNetwork_GEN_DIR}/qsslcertificate_wrapper.cpp
-${QtNetwork_GEN_DIR}/qsslcertificateextension_wrapper.cpp
-${QtNetwork_GEN_DIR}/qtcpserver_wrapper.cpp
-${QtNetwork_GEN_DIR}/qtcpsocket_wrapper.cpp
-${QtNetwork_GEN_DIR}/qudpsocket_wrapper.cpp
-# module is always needed
-${QtNetwork_GEN_DIR}/qtnetwork_module_wrapper.cpp
-)
-
-get_property(QtNetwork_enabled_features TARGET Qt${QT_MAJOR_VERSION}::Network
- PROPERTY INTERFACE_QT_ENABLED_FEATURES)
-get_property(QtNetwork_disabled_features TARGET Qt${QT_MAJOR_VERSION}::Network
- PROPERTY INTERFACE_QT_DISABLED_FEATURES)
-
-# ### fixme: For cmake >= 3.3, use if( needle IN_LIST list)
-list(FIND QtNetwork_enabled_features "ssl" _sslEnabledIndex)
-list(FIND QtNetwork_disabled_features "dtls" _dtlsDisabledIndex)
-list(FIND QtNetwork_disabled_features "sctp" _sctpDisabledIndex)
-
-if(_sslEnabledIndex EQUAL -1)
- list(APPEND QtNetwork_DROPPED_ENTRIES QOcspResponse QSslCipher
- QSslConfiguration QSslDiffieHellmanParameters QSslError
- QSslKey QSslPreSharedKeyAuthenticator QSslSocket)
- message(STATUS "Qt${QT_MAJOR_VERSION}Network: Dropping SSL classes")
-else()
- # Problems with operator==(QSslEllipticCurve,QSslEllipticCurve)
- # check_qt_class(QtNetwork QSslEllipticCurve QtNetwork_OPTIONAL_SRC QtNetwork_DROPPED_ENTRIES)
- list(APPEND QtNetwork_SRC
- ${QtNetwork_GEN_DIR}/qsslcipher_wrapper.cpp
- ${QtNetwork_GEN_DIR}/qsslconfiguration_wrapper.cpp
- ${QtNetwork_GEN_DIR}/qssldiffiehellmanparameters_wrapper.cpp
- ${QtNetwork_GEN_DIR}/qsslerror_wrapper.cpp
- ${QtNetwork_GEN_DIR}/qsslkey_wrapper.cpp
- ${QtNetwork_GEN_DIR}/qsslpresharedkeyauthenticator_wrapper.cpp
- ${QtNetwork_GEN_DIR}/qsslsocket_wrapper.cpp)
- if (Qt${QT_MAJOR_VERSION}Network_VERSION VERSION_EQUAL 5.13.0
- OR Qt${QT_MAJOR_VERSION}Network_VERSION VERSION_GREATER 5.13.0)
- list(APPEND QtNetwork_SRC
- ${QtNetwork_GEN_DIR}/qocspresponse_wrapper.cpp)
- endif()
- message(STATUS "Qt${QT_MAJOR_VERSION}Network: Adding SSL classes")
-endif()
-
-if(_dtlsDisabledIndex GREATER -1)
- list(APPEND QtNetwork_DROPPED_ENTRIES QDtls)
- message(STATUS "Qt${QT_MAJOR_VERSION}Network: Dropping DTLS classes")
-else()
- list(APPEND QtNetwork_SRC
- ${QtNetwork_GEN_DIR}/qdtls_wrapper.cpp)
- message(STATUS "Qt${QT_MAJOR_VERSION}Network: Adding DTLS classes")
-endif()
-
-if(_sctpDisabledIndex GREATER -1)
- list(APPEND QtNetwork_DROPPED_ENTRIES QSctpServer QSctpSocket)
- message(STATUS "Qt${QT_MAJOR_VERSION}Network: Dropping SCTP classes")
-else()
- list(APPEND QtNetwork_SRC
- ${QtNetwork_GEN_DIR}/qsctpserver_wrapper.cpp
- ${QtNetwork_GEN_DIR}/qsctpsocket_wrapper.cpp)
- message(STATUS "Qt${QT_MAJOR_VERSION}Network: Adding SCTP classes")
-endif()
-
-set(QtNetwork_include_dirs ${QtNetwork_SOURCE_DIR}
- ${QtNetwork_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Network_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR})
-
-set(QtNetwork_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Network_LIBRARIES})
-
-set(QtNetwork_deps QtCore)
-
-create_pyside_module(NAME QtNetwork
- INCLUDE_DIRS QtNetwork_include_dirs
- LIBRARIES QtNetwork_libraries
- DEPS QtNetwork_deps
- TYPESYSTEM_PATH QtNetwork_SOURCE_DIR
- SOURCES QtNetwork_SRC
- DROPPED_ENTRIES QtNetwork_DROPPED_ENTRIES)
diff --git a/sources/pyside2/PySide2/QtNetwork/typesystem_network.xml b/sources/pyside2/PySide2/QtNetwork/typesystem_network.xml
deleted file mode 100644
index 1e473b3a6..000000000
--- a/sources/pyside2/PySide2/QtNetwork/typesystem_network.xml
+++ /dev/null
@@ -1,324 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtNetwork">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
-
- <enum-type name="QDtlsError" since="5.12"/>
- <enum-type name="QOcspCertificateStatus" since="5.13"/>
- <enum-type name="QOcspRevocationReason" since="5.13"/>
-
- <namespace-type name="QPasswordDigestor" since="5.12">
- <extra-includes>
- <include file-name="qpassworddigestor.h" location="global"/>
- </extra-includes>
- </namespace-type>
-
- <namespace-type name="QSsl">
- <enum-type name="AlternativeNameEntryType"/>
- <enum-type name="EncodingFormat"/>
- <enum-type name="KeyAlgorithm"/>
- <enum-type name="KeyType"/>
- <enum-type name="SslOption" flags="SslOptions"/>
- <enum-type name="SslProtocol"/>
- <extra-includes>
- <include file-name="qssl.h" location="global"/>
- </extra-includes>
- </namespace-type>
-
- <rejection class="QIPv6Address" field-name="c"/>
-
- <object-type name="QAbstractSocket">
- <enum-type name="BindFlag" flags="BindMode"/>
- <enum-type name="NetworkLayerProtocol"/>
- <enum-type name="PauseMode" flags="PauseModes"/>
- <enum-type name="SocketError"/>
- <enum-type name="SocketOption" since="4.6"/>
- <enum-type name="SocketState"/>
- <enum-type name="SocketType"/>
- <modify-function signature="connectToHost(const QString&amp;,quint16,QFlags&lt;QIODevice::OpenModeFlag>,QAbstractSocket::NetworkLayerProtocol)" allow-thread="yes"/>
- <modify-function signature="connectToHost(const QHostAddress&amp;,quint16,QFlags&lt;QIODevice::OpenModeFlag>)" allow-thread="yes"/>
- <modify-function signature="disconnectFromHost()" allow-thread="yes"/>
- <modify-function signature="waitForConnected(int)" allow-thread="yes"/>
- <modify-function signature="waitForDisconnected(int)" allow-thread="yes"/>
- </object-type>
-
- <value-type name="QDnsDomainNameRecord"/>
- <value-type name="QDnsHostAddressRecord"/>
- <object-type name="QDnsLookup">
- <enum-type name="Error"/>
- <enum-type name="Type"/>
- </object-type>
- <value-type name="QDnsMailExchangeRecord"/>
- <value-type name="QDnsServiceRecord"/>
- <value-type name="QDnsTextRecord"/>
-
- <object-type name="QDtls" since="5.12">
- <enum-type name="HandshakeState"/>
- </object-type>
-
- <value-type name="QHstsPolicy" since="5.9">
- <enum-type name="PolicyFlag" flags="PolicyFlags"/>
- </value-type>
- <object-type name="QHttpMultiPart">
- <enum-type name="ContentType"/>
- </object-type>
- <value-type name="QHttpPart" since="5.9"/>
- <object-type name="QTcpServer">
- <modify-function signature="waitForNewConnection(int,bool*)" allow-thread="yes">
- <!-- FIXME removing default expression means user will always have to pass a value, but he wouldn't have to -->
- <modify-argument index="1">
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="2">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(retval, timeOut)"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- </object-type>
- <value-type name="QOcspResponse" since="5.13"/>
- <object-type name="QTcpSocket"/>
- <object-type name="QUdpSocket">
- <modify-function signature="readDatagram(char*,qint64,QHostAddress*,quint16*)" allow-thread="yes">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(data, address, port)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" snippet="qudpsocket-readdatagram"/>
- </modify-function>
- <modify-function signature="writeDatagram(const QByteArray&amp;,const QHostAddress&amp;,quint16)" allow-thread="yes"/>
- <!-- ### writeDatagram(QByteArray, ...) does the trick -->
- <modify-function signature="writeDatagram(const char*,qint64,const QHostAddress&amp;,quint16)" remove="all"/>
- <!-- ### -->
- </object-type>
-
- <object-type name="QLocalServer">
- <enum-type name="SocketOption" flags="SocketOptions"/>
- <modify-function signature="waitForNewConnection(int,bool*)" allow-thread="yes">
- <!-- FIXME -->
- <modify-argument index="1">
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="2">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- <modify-argument index="return">
- <replace-type modified-type="(retval, timeOut)"/>
- </modify-argument>
-
- </modify-function>
- </object-type>
- <object-type name="QLocalSocket">
- <enum-type name="LocalSocketError"/>
- <enum-type name="LocalSocketState"/>
- </object-type>
- <object-type name="QNetworkAccessManager">
- <enum-type name="NetworkAccessibility" since="4.7"/>
- <enum-type name="Operation"/>
- <modify-function signature="createRequest(QNetworkAccessManager::Operation,const QNetworkRequest&amp;,QIODevice*)">
- <modify-argument index="3" invalidate-after-use="yes"/>
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="get(const QNetworkRequest&amp;)" allow-thread="yes"/>
- <modify-function signature="post(const QNetworkRequest &amp;,QIODevice*)" allow-thread="yes"/>
- <modify-function signature="post(const QNetworkRequest &amp;,const QByteArray &amp;)" allow-thread="yes"/>
- <modify-function signature="put(const QNetworkRequest &amp;,QIODevice*)" allow-thread="yes"/>
- <modify-function signature="put(const QNetworkRequest &amp;,const QByteArray &amp;)" allow-thread="yes"/>
- <modify-function signature="sendCustomRequest(const QNetworkRequest &amp;,const QByteArray &amp;,QIODevice*)" allow-thread="yes" since="4.7"/>
- <modify-function signature="setCookieJar(QNetworkCookieJar*)">
- <modify-argument index="1">
- <define-ownership class="target" owner="c++"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QNetworkCookieJar"/>
- <value-type name="QNetworkDatagram" since="5.8"/>
- <object-type name="QNetworkReply">
- <enum-type name="NetworkError"/>
- </object-type>
-
- <value-type name="QHostAddress" hash-function="qHash">
- <enum-type name="ConversionModeFlag" flags="ConversionMode" since="5.8"/>
- <enum-type name="SpecialAddress"/>
- <!-- ### QHostAddress(QIPv6Address) does this -->
- <modify-function signature="QHostAddress(quint8*)" remove="all"/>
- <modify-function signature="QHostAddress(const quint8*)" remove="all"/>
- <!-- ### -->
- <modify-function signature="setAddress(quint8*)" remove="all"/>
- <modify-function signature="setAddress(const quint8*)" remove="all"/>
- </value-type>
-
- <value-type name="QHostInfo">
- <enum-type name="HostInfoError"/>
- <modify-function signature="lookupHost(QString,QObject*,const char*)" access="private"/>
- </value-type>
-
- <value-type name="QNetworkAddressEntry">
- <enum-type name="DnsEligibilityStatus" since="5.11"/>
- </value-type>
-
- <value-type name="QNetworkInterface">
- <enum-type name="InterfaceFlag" flags="InterfaceFlags"/>
- <enum-type name="InterfaceType" since="5.11"/>
- </value-type>
-
- <value-type name="QNetworkProxy">
- <enum-type name="Capability" flags="Capabilities"/>
- <enum-type name="ProxyType"/>
- </value-type>
-
- <object-type name="QNetworkProxyFactory"/>
- <value-type name="QNetworkProxyQuery">
- <enum-type name="QueryType"/>
- </value-type>
-
- <value-type name="QIPv6Address">
- <add-function signature="__len__">
- <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" snippet="qipv6address-len"/>
- </add-function>
- <add-function signature="__getitem__">
- <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" snippet="qipv6address-getitem"/>
- </add-function>
- <add-function signature="__setitem__">
- <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" snippet="qipv6address-setitem"/>
- </add-function>
- </value-type>
-
- <value-type name="QAuthenticator"/>
- <value-type name="QNetworkCookie">
- <enum-type name="RawForm"/>
- <extra-includes>
- <include file-name="QDateTime" location="global"/>
- </extra-includes>
- </value-type>
- <value-type name="QNetworkRequest">
- <enum-type name="Attribute"/>
- <enum-type name="LoadControl" since="4.7"/>
- <enum-type name="Priority" since="4.7"/>
- <enum-type name="CacheLoadControl"/>
- <enum-type name="KnownHeaders"/>
- <enum-type name="RedirectPolicy" since="5.9"/>
- <enum-type name="TransferTimeoutConstant" since="5.15"/>
- </value-type>
-
- <value-type name="QNetworkConfiguration" since="4.7">
- <enum-type name="BearerType"/>
- <enum-type name="Purpose" since="4.7"/>
- <enum-type name="StateFlag" flags="StateFlags" since="4.7"/>
- <enum-type name="Type" since="4.7"/>
- </value-type>
- <object-type name="QNetworkConfigurationManager" since="4.7">
- <enum-type name="Capability" flags="Capabilities" since="4.7"/>
- </object-type>
- <object-type name="QNetworkSession" since="4.7">
- <enum-type name="SessionError" since="4.7"/>
- <enum-type name="State" since="4.7"/>
- <enum-type name="UsagePolicy" flags="UsagePolicies"/>
- </object-type>
-
- <object-type name="QAbstractNetworkCache"/>
- <object-type name="QNetworkDiskCache"/>
- <value-type name="QNetworkCacheMetaData"/>
-
- <object-type name="QSctpServer"/>
- <object-type name="QSctpSocket"/>
-
- <!-- The following entries may be present in the system or not. Keep this section organized. -->
- <value-type name="QSslCertificate">
- <enum-type name="PatternSyntax" since="5.15"/>
- <enum-type name="SubjectInfo"/>
- </value-type>
-
- <value-type name="QSslCertificateExtension"/>
-
- <value-type name="QSslCipher"/>
-
- <value-type name="QSslConfiguration">
- <enum-type name="NextProtocolNegotiationStatus"/>
- </value-type>
-
- <value-type name="QSslDiffieHellmanParameters" since="5.8">
- <enum-type name="Error"/>
- </value-type>
-
- <!-- Problems with operator==(QSslEllipticCurve,QSslEllipticCurve)
- <object-type name="QSslEllipticCurve"/>
- -->
-
- <value-type name="QSslError">
- <enum-type name="SslError"/>
- </value-type>
-
- <value-type name="QSslKey"/>
- <object-type name="QSslSocket">
- <enum-type name="SslMode"/>
- <enum-type name="PeerVerifyMode"/>
- <modify-function signature="connectToHostEncrypted(const QString&amp;,quint16,QFlags&lt;QIODevice::OpenModeFlag>,QAbstractSocket::NetworkLayerProtocol)" allow-thread="yes"/>
- <modify-function signature="waitForEncrypted(int)" allow-thread="yes"/>
- </object-type>
-
- <value-type name="QSslPreSharedKeyAuthenticator"/>
-
- <!-- The above entries may be present in the system or not. Keep this section organized. -->
-</typesystem>
-
diff --git a/sources/pyside2/PySide2/QtOpenGL/CMakeLists.txt b/sources/pyside2/PySide2/QtOpenGL/CMakeLists.txt
deleted file mode 100644
index 1d2c406fc..000000000
--- a/sources/pyside2/PySide2/QtOpenGL/CMakeLists.txt
+++ /dev/null
@@ -1,42 +0,0 @@
-project(QtOpenGL)
-
-set(QtOpenGL_SRC
-${QtOpenGL_GEN_DIR}/qgl_wrapper.cpp
-${QtOpenGL_GEN_DIR}/qglbuffer_wrapper.cpp
-${QtOpenGL_GEN_DIR}/qglcolormap_wrapper.cpp
-${QtOpenGL_GEN_DIR}/qglcontext_wrapper.cpp
-${QtOpenGL_GEN_DIR}/qglformat_wrapper.cpp
-${QtOpenGL_GEN_DIR}/qglframebufferobject_wrapper.cpp
-${QtOpenGL_GEN_DIR}/qglframebufferobjectformat_wrapper.cpp
-${QtOpenGL_GEN_DIR}/qglpixelbuffer_wrapper.cpp
-${QtOpenGL_GEN_DIR}/qglshader_wrapper.cpp
-${QtOpenGL_GEN_DIR}/qglshaderprogram_wrapper.cpp
-${QtOpenGL_GEN_DIR}/qglwidget_wrapper.cpp
-# module is always needed
-${QtOpenGL_GEN_DIR}/qtopengl_module_wrapper.cpp
-)
-
-set(QtOpenGL_include_dirs ${QtOpenGL_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}OpenGL_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtWidgets_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtCore_GEN_DIR}
- ${QtOpenGL_GEN_DIR}
- )
-set(QtOpenGL_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}OpenGL_LIBRARIES})
-set(QtOpenGL_deps QtWidgets)
-
-create_pyside_module(NAME QtOpenGL
- INCLUDE_DIRS QtOpenGL_include_dirs
- LIBRARIES QtOpenGL_libraries
- DEPS QtOpenGL_deps
- TYPESYSTEM_PATH QtOpenGL_SOURCE_DIR
- SOURCES QtOpenGL_SRC)
diff --git a/sources/pyside2/PySide2/QtOpenGL/typesystem_opengl.xml b/sources/pyside2/PySide2/QtOpenGL/typesystem_opengl.xml
deleted file mode 100644
index 5e864ca43..000000000
--- a/sources/pyside2/PySide2/QtOpenGL/typesystem_opengl.xml
+++ /dev/null
@@ -1,716 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtOpenGL">
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no" />
- <load-typesystem name="templates/opengl_common.xml" generate="no" />
-
- <primitive-type name="GLbitfield"/>
- <primitive-type name="GLboolean"/>
- <primitive-type name="GLbyte"/>
- <primitive-type name="GLclampd"/>
- <primitive-type name="GLclampf"/>
- <primitive-type name="GLdouble"/>
- <primitive-type name="GLenum"/>
- <primitive-type name="GLfloat"/>
- <primitive-type name="GLint"/>
- <primitive-type name="GLshort"/>
- <primitive-type name="GLsizei"/>
- <primitive-type name="GLubyte"/>
- <primitive-type name="GLuint"/>
- <primitive-type name="GLushort"/>
-
- <rejection class="QGLColormap::QGLColormapData"/>
- <rejection class="QGLContext" field-name="currentCtx"/>
- <rejection class="^QGL.*$" argument-type="^(const )?GLboolean ?\*$"/>
- <rejection class="^QGL.*$" argument-type="^(const )?GLchar ?\*$"/>
- <rejection class="^QGL.*$" argument-type="^(const )?GLchar ?\*const"/>
- <rejection class="^QGL.*$" argument-type="^(const )?GLenum ?\*$"/>
- <rejection class="^QGL.*$" argument-type="^(const )?GLfloat ?\*$"/>
- <rejection class="^QGL.*$" argument-type="^(const )?GLfloat ?\[.*$"/>
- <rejection class="^QGL.*$" argument-type="^(const )?GLdouble ?\*$"/>
- <rejection class="^QGL.*$" argument-type="GLintptr"/>
- <rejection class="^QGL.*$" argument-type="^(const )?GLint64 ?\*$"/>
- <rejection class="^QGL.*$" argument-type="^(const )?GLsizei ?\*$"/>
-
- <namespace-type name="QGL">
- <enum-type name="FormatOption" flags="FormatOptions"/>
- <extra-includes>
- <include file-name="qgl.h" location="global"/>
- </extra-includes>
- </namespace-type>
-
- <value-type name="QGLColormap">
- <modify-function signature="setEntries(int,const unsigned int*,int)">
- <access modifier="private"/>
- </modify-function>
- </value-type>
-
- <value-type name="QGLFormat">
- <enum-type name="OpenGLContextProfile" since="4.7"/>
- <enum-type name="OpenGLVersionFlag" flags="OpenGLVersionFlags"/>
- </value-type>
-
- <rejection class="QGLContext" field-name="currentCtx"/>
- <object-type name="QGLContext">
- <enum-type name="BindOption" flags="BindOptions" since="4.6"/>
- <modify-function signature="chooseContext(const QGLContext*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="create(const QGLContext*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
-
- <!-- ### Obsolete functions and ctors -->
- <modify-function signature="QGLContext(const QGLFormat&amp;,QPaintDevice*)" remove="all"/>
- <!-- ### -->
- </object-type>
- <object-type name="QGLFramebufferObject">
- <enum-type name="Attachment"/>
- </object-type>
- <object-type name="QGLPixelBuffer">
- <extra-includes>
- <include file-name="QImage" location="global"/>
- </extra-includes>
- </object-type>
- <object-type name="QGLWidget">
- <extra-includes>
- <include file-name="QImage" location="global"/>
- <include file-name="QPixmap" location="global"/>
- </extra-includes>
- <modify-function signature="QGLWidget(QGLContext*,QWidget*,const QGLWidget*,QFlags&lt;Qt::WindowType&gt;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- <modify-argument index="this">
- <parent index="2" action="add"/>
- </modify-argument>
- </modify-function>
- <!-- ### Not part of Qt public API -->
- <modify-function signature="setContext(QGLContext*,const QGLContext*,bool)" remove="all"/>
- <!-- ### -->
- <!--- ### Obsolete functions -->
- <modify-function signature="setFormat(QGLFormat)" remove="all"/>
- <!-- ### -->
- </object-type>
-
- <value-type name="QGLFramebufferObjectFormat" since="4.6"/>
- <object-type name="QGLShader" since="4.6">
- <enum-type name="ShaderTypeBit" flags="ShaderType"/>
- </object-type>
-
- <object-type name="QGLShaderProgram" since="4.6">
- <!-- setAttributeArray -->
- <modify-function signature="setAttributeArray(int,const QVector2D*,int)" rename="setAttributeArray2D">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="%3"/>
- <replace from="$ARG1" to="%3"/>
- <replace from="$ATTR_TYPE" to="QVector2D"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setAttributeArray(int,const QVector3D*,int)" rename="setAttributeArray3D">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="%3"/>
- <replace from="$ARG1" to="%3"/>
- <replace from="$ATTR_TYPE" to="QVector3D"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setAttributeArray(int,const QVector4D*,int)" rename="setAttributeArray4D">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="%3"/>
- <replace from="$ARG1" to="%3"/>
- <replace from="$ATTR_TYPE" to="QVector4D"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setAttributeArray(const char*,const QVector2D*,int)" rename="setAttributeArray2D">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="%3"/>
- <replace from="$ARG1" to="%3"/>
- <replace from="$ATTR_TYPE" to="QVector2D"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setAttributeArray(const char*,const QVector3D*,int)" rename="setAttributeArray3D">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="%3"/>
- <replace from="$ARG1" to="%3"/>
- <replace from="$ATTR_TYPE" to="QVector3D"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setAttributeArray(const char*,const QVector4D*,int)" rename="setAttributeArray4D">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="%3"/>
- <replace from="$ARG1" to="%3"/>
- <replace from="$ATTR_TYPE" to="QVector4D"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <!-- setUniformValueArray -->
- <modify-function signature="setUniformValueArray(int,const GLint*,int)" rename="setUniformValueArrayInt">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- <array/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="GLint"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(int,const GLuint*,int)" rename="setUniformValueArrayUint">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- <array/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="GLuint"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(int,const QVector2D*,int)" rename="setUniformValueArray2D">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QVector2D"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(int,const QVector3D*,int)" rename="setUniformValueArray3D">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QVector3D"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(int,const QVector4D*,int)" rename="setUniformValueArray4D">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QVector4D"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(int,const QMatrix2x2*,int)" rename="setUniformValueArray2x2">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix2x2"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(int,const QMatrix2x3*,int)" rename="setUniformValueArray2x3">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix2x3"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(int,const QMatrix2x4*,int)" rename="setUniformValueArray2x4">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix2x4"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(int,const QMatrix3x2*,int)" rename="setUniformValueArray3x2">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix3x2"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(int,const QMatrix3x3*,int)" rename="setUniformValueArray3x3">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix3x3"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(int,const QMatrix3x4*,int)" rename="setUniformValueArray3x4">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix3x4"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(int,const QMatrix4x2*,int)" rename="setUniformValueArray4x2">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix4x2"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(int,const QMatrix4x3*,int)" rename="setUniformValueArray4x3">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix4x3"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(int,const QMatrix4x4*,int)" rename="setUniformValueArray4x4">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix4x4"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(const char*,const GLint*,int)" rename="setUniformValueArrayInt">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- <array/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="GLint"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(const char*,const GLuint*,int)" rename="setUniformValueArrayUint">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- <array/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="GLuint"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(const char*,const QVector2D*,int)" rename="setUniformValueArray2D">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QVector2D"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(const char*,const QVector3D*,int)" rename="setUniformValueArray3D">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QVector3D"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(const char*,const QVector4D*,int)" rename="setUniformValueArray4D">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QVector4D"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(const char*,const QMatrix2x2*,int)" rename="setUniformValueArray2x2">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix2x2"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(const char*,const QMatrix2x3*,int)" rename="setUniformValueArray2x3">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix2x3"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(const char*,const QMatrix2x4*,int)" rename="setUniformValueArray2x4">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix2x4"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(const char*,const QMatrix3x2*,int)" rename="setUniformValueArray3x2">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix3x2"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(const char*,const QMatrix3x3*,int)" rename="setUniformValueArray3x3">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix3x3"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(const char*,const QMatrix3x4*,int)" rename="setUniformValueArray3x4">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix3x4"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(const char*,const QMatrix4x2*,int)" rename="setUniformValueArray4x2">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix4x2"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(const char*,const QMatrix4x3*,int)" rename="setUniformValueArray4x3">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix4x3"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setUniformValueArray(const char*,const QMatrix4x4*,int)" rename="setUniformValueArray4x4">
- <modify-argument index="2" >
- <replace-type modified-type="PySequence"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <inject-code>
- <insert-template name="callArrayFunction">
- <replace from="$ARG0" to="_size"/>
- <replace from="$ARG1" to="0"/>
- <replace from="$ATTR_TYPE" to="QMatrix4x4"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <!-- ### Use QMatrixZxY overloads -->
- <modify-function signature="setAttributeArray(int,GLenum,const void*,int,int)" remove="all" since="4.7"/>
- <modify-function signature="setAttributeArray(const char*,GLenum,const void*,int,int)" remove="all" since="4.7"/>
- <!-- ### -->
- </object-type>
-
- <!-- Qt 4.7 -->
- <object-type name="QGLBuffer" since="4.7">
- <enum-type name="Access" since="4.7"/>
- <enum-type name="Type" since="4.7"/>
- <enum-type name="UsagePattern" since="4.7"/>
- <modify-function signature="allocate(const void*,int)">
- <modify-argument index="1">
- <replace-type modified-type="QByteArray&amp;"/>
- </modify-argument>
- <modify-argument index="2">
- <replace-default-expression with="-1"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtopengl.cpp" snippet="qglbuffer-allocate"/>
- </modify-function>
- <modify-function signature="map(QGLBuffer::Access)">
- <inject-code file="../glue/qtopengl.cpp" snippet="qglbuffer-map"/>
- </modify-function>
- <modify-function signature="read(int,void*,int)">
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(retval, data)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtopengl.cpp" snippet="qglbuffer-read"/>
- </modify-function>
- <modify-function signature="write(int,const void*,int)">
- <modify-argument index="2">
- <replace-type modified-type="QByteArray&amp;"/>
- </modify-argument>
- <modify-argument index="3">
- <replace-default-expression with="-1"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtopengl.cpp" snippet="qglbuffer-write"/>
- </modify-function>
- </object-type>
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/CMakeLists.txt b/sources/pyside2/PySide2/QtOpenGLFunctions/CMakeLists.txt
deleted file mode 100644
index eab543b6a..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/CMakeLists.txt
+++ /dev/null
@@ -1,73 +0,0 @@
-project(QtOpenGLFunctions)
-
-set(QtOpenGLFunctions_DROPPED_ENTRIES)
-
-get_property(QtOpenGLFunctions_enabled_features TARGET Qt${QT_MAJOR_VERSION}::Gui
- PROPERTY INTERFACE_QT_ENABLED_FEATURES)
-
-set(QtOpenGLFunctions_SRC ${QtOpenGLFunctions_GEN_DIR}/qtopenglfunctions_module_wrapper.cpp)
-
-# cf qtbase/src/gui/opengl/opengl.pri
-list(FIND QtOpenGLFunctions_enabled_features "opengles2" _opengles2Index)
-# ### fixme: For cmake >= 3.3: if(opengles2 IN_LIST QtOpenGLFunctions_enabled_features)
-if(_opengles2Index GREATER -1)
- list(APPEND QtOpenGLFunctions_DROPPED_ENTRIES QOpenGLTimeMonitor QOpenGLTimerQuery)
- list(APPEND QtOpenGLFunctions_SRC
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_es2_wrapper.cpp)
- message(STATUS "Qt${QT_MAJOR_VERSION}OpenGLFunctions: Dropping Desktop OpenGL classes (GLES2)")
-else()
- list(APPEND QtOpenGLFunctions_SRC
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_1_0_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_1_1_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_1_2_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_1_3_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_1_4_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_1_5_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_2_0_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_2_1_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_3_0_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_3_1_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_3_2_compatibility_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_3_2_core_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_3_3_compatibility_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_3_3_core_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_4_0_compatibility_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_4_0_core_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_4_1_compatibility_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_4_1_core_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_4_2_compatibility_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_4_2_core_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_4_3_compatibility_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_4_3_core_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_4_4_compatibility_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_4_4_core_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_4_5_compatibility_wrapper.cpp
- ${QtOpenGLFunctions_GEN_DIR}/qopenglfunctions_4_5_core_wrapper.cpp)
- message(STATUS "Qt${QT_MAJOR_VERSION}OpenGLFunctions: Adding Desktop OpenGL classes")
-endif()
-
-configure_file("${QtOpenGLFunctions_SOURCE_DIR}/QtOpenGLFunctions_global.post.h.in"
- "${QtOpenGLFunctions_BINARY_DIR}/QtOpenGLFunctions_global.post.h" @ONLY)
-
-set(QtOpenGLFunctions_include_dirs ${QtGOpenGLFunctions_SOURCE_DIR}
- ${QtOpenGLFunctions_BINARY_DIR}
- ${pyside2_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- )
-set(QtOpenGLFunctions_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES})
-
-set(QtOpenGLFunctions_deps QtGui)
-
-create_pyside_module(NAME QtOpenGLFunctions
- INCLUDE_DIRS QtOpenGLFunctions_include_dirs
- LIBRARIES QtOpenGLFunctions_libraries
- DEPS QtOpenGLFunctions_deps
- TYPESYSTEM_PATH QtOpenGLFunctions_SOURCE_DIR
- SOURCES QtOpenGLFunctions_SRC
- TYPESYSTEM_NAME ${QtOpenGLFunctions_BINARY_DIR}/typesystem_openglfunctions.xml
- DROPPED_ENTRIES QtOpenGLFunctions_DROPPED_ENTRIES)
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/QtOpenGLFunctions_global.post.h.in b/sources/pyside2/PySide2/QtOpenGLFunctions/QtOpenGLFunctions_global.post.h.in
deleted file mode 100644
index 6c8c77087..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/QtOpenGLFunctions_global.post.h.in
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtGui/qtgui-config.h>
-// OpenGL functions are not in the QtGui module header
-#if QT_CONFIG(opengl)
-# include <QtGui/qopenglfunctions_1_0.h>
-# include <QtGui/qopenglfunctions_1_1.h>
-# include <QtGui/qopenglfunctions_1_2.h>
-# include <QtGui/qopenglfunctions_1_3.h>
-# include <QtGui/qopenglfunctions_1_4.h>
-# include <QtGui/qopenglfunctions_1_5.h>
-# include <QtGui/qopenglfunctions_2_0.h>
-# include <QtGui/qopenglfunctions_2_1.h>
-# include <QtGui/qopenglfunctions_3_0.h>
-# include <QtGui/qopenglfunctions_3_1.h>
-# include <QtGui/qopenglfunctions_3_2_compatibility.h>
-# include <QtGui/qopenglfunctions_3_2_core.h>
-# include <QtGui/qopenglfunctions_3_3_compatibility.h>
-# include <QtGui/qopenglfunctions_3_3_core.h>
-# include <QtGui/qopenglfunctions_4_0_compatibility.h>
-# include <QtGui/qopenglfunctions_4_0_core.h>
-# include <QtGui/qopenglfunctions_4_1_compatibility.h>
-# include <QtGui/qopenglfunctions_4_1_core.h>
-# include <QtGui/qopenglfunctions_4_2_compatibility.h>
-# include <QtGui/qopenglfunctions_4_2_core.h>
-# include <QtGui/qopenglfunctions_4_3_compatibility.h>
-# include <QtGui/qopenglfunctions_4_3_core.h>
-# include <QtGui/qopenglfunctions_4_4_compatibility.h>
-# include <QtGui/qopenglfunctions_4_4_core.h>
-# include <QtGui/qopenglfunctions_4_5_compatibility.h>
-# include <QtGui/qopenglfunctions_4_5_core.h>
-#endif
-#if QT_CONFIG(opengles2)
-# include <QtGui/qopenglfunctions_es2.h>
-#endif
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions.xml
deleted file mode 100644
index 1d5b08edb..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions.xml
+++ /dev/null
@@ -1,409 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtOpenGLFunctions">
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
- <load-typesystem name="templates/openglfunctions_common.xml" generate="no"/>
-
- <rejection class="^QOpenGL.*$" argument-type="^(const )?GLboolean ?\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="^GLchar\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="^(const )?GLchar ?\*(const)?\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="^char\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="^(const )?char ?\*\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="GLintptr"/>
- <rejection class="^QOpenGL.*$" argument-type="GLsizeiptr"/>
- <rejection class="^QOpenGL.*$" argument-type="GLsync"/>
- <rejection class="^QOpenGL.*$" argument-type="^GLubyte( const)?\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="^(const )?QMatrix.x. ?\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="qopengl_GLintptr"/>
- <rejection class="^QOpenGL.*$" argument-type="qopengl_GLsizeiptr"/>
- <rejection class="^QOpenGL.*$" argument-type="QOpenGLTextureHelper*"/>
- <rejection class="^QOpenGL.*$" argument-type="^(const )?QVector.D ?\*$"/>
- <rejection class="^QOpenGL.*$" argument-type="^(const )?void ?\*\*$"/>
- <rejection class="^QOpenGLFunctions.*$" function-name="^glGet(Buffer|VertexAttrib)?Pointer.*$"/>
- <rejection class="^QOpenGLFunctions.*$" function-name="^glMultiDrawElements.*$"/>
- <!-- Reject any non-const array of the version functions -->
- <rejection class="^QOpenGLFunctions_\d_\d.*$" argument-type="^GL\w+ ?\*$"/>
-
- <object-type name="QOpenGLFunctions_1_0" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- </object-type>
- <object-type name="QOpenGLFunctions_1_1" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- </object-type>
- <object-type name="QOpenGLFunctions_1_2" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- </object-type>
- <object-type name="QOpenGLFunctions_1_3" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- &openglfunctions_modifications1_3_compat;
- </object-type>
- <object-type name="QOpenGLFunctions_1_4" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- &openglfunctions_modifications1_3_compat;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications1_4_compat;
- </object-type>
- <object-type name="QOpenGLFunctions_1_5" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- &openglfunctions_modifications1_3_compat;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications1_4_compat;
- </object-type>
- <object-type name="QOpenGLFunctions_2_0" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- &openglfunctions_modifications1_3_compat;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications1_4_compat;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_0_compat;
- </object-type>
- <object-type name="QOpenGLFunctions_2_1" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- &openglfunctions_modifications1_3_compat;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications1_4_compat;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_0_compat;
- &openglfunctions_modifications2_1;
- </object-type>
- <object-type name="QOpenGLFunctions_3_0" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- &openglfunctions_modifications1_3_compat;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications1_4_compat;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_0_compat;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- </object-type>
- <object-type name="QOpenGLFunctions_3_1" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- </object-type>
- <object-type name="QOpenGLFunctions_3_2_Compatibility" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- &openglfunctions_modifications1_3_compat;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications1_4_compat;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_0_compat;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- </object-type>
- <object-type name="QOpenGLFunctions_3_2_Core" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- </object-type>
- <object-type name="QOpenGLFunctions_3_3_Compatibility" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- &openglfunctions_modifications1_3_compat;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications1_4_compat;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_0_compat;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- &openglfunctions_modifications3_3;
- &openglfunctions_modifications3_3a;
- </object-type>
- <object-type name="QOpenGLFunctions_3_3_Core" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- &openglfunctions_modifications3_3;
- &openglfunctions_modifications3_3a;
- </object-type>
- <object-type name="QOpenGLFunctions_4_0_Compatibility" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- &openglfunctions_modifications1_3_compat;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications1_4_compat;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_0_compat;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- &openglfunctions_modifications3_3;
- &openglfunctions_modifications3_3a;
- &openglfunctions_modifications4_0;
- </object-type>
- <object-type name="QOpenGLFunctions_4_0_Core" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- &openglfunctions_modifications3_3;
- &openglfunctions_modifications3_3a;
- &openglfunctions_modifications4_0;
- </object-type>
- <object-type name="QOpenGLFunctions_4_1_Compatibility" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- &openglfunctions_modifications1_3_compat;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications1_4_compat;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_0_compat;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- &openglfunctions_modifications3_3;
- &openglfunctions_modifications3_3a;
- &openglfunctions_modifications4_1;
- &openglfunctions_modifications4_0;
- </object-type>
- <object-type name="QOpenGLFunctions_4_1_Core" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- &openglfunctions_modifications3_3;
- &openglfunctions_modifications3_3a;
- &openglfunctions_modifications4_0;
- &openglfunctions_modifications4_1;
- &openglfunctions_modifications_va;
- </object-type>
- <object-type name="QOpenGLFunctions_4_2_Compatibility" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- &openglfunctions_modifications1_3_compat;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications1_4_compat;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_0_compat;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- &openglfunctions_modifications3_3;
- &openglfunctions_modifications3_3a;
- &openglfunctions_modifications4_0;
- &openglfunctions_modifications4_1;
- </object-type>
- <object-type name="QOpenGLFunctions_4_2_Core" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- &openglfunctions_modifications3_3;
- &openglfunctions_modifications3_3a;
- &openglfunctions_modifications4_0;
- &openglfunctions_modifications4_1;
- &openglfunctions_modifications_va;
- </object-type>
- <object-type name="QOpenGLFunctions_4_3_Compatibility" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- &openglfunctions_modifications1_3_compat;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications1_4_compat;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_0_compat;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- &openglfunctions_modifications3_3;
- &openglfunctions_modifications3_3a;
- &openglfunctions_modifications4_0;
- &openglfunctions_modifications4_1;
- &openglfunctions_modifications4_3;
- </object-type>
- <object-type name="QOpenGLFunctions_4_3_Core" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- &openglfunctions_modifications3_3;
- &openglfunctions_modifications3_3a;
- &openglfunctions_modifications4_0;
- &openglfunctions_modifications4_3;
- &openglfunctions_modifications4_1;
- &openglfunctions_modifications_va;
- </object-type>
- <object-type name="QOpenGLFunctions_4_4_Compatibility" since="5.5">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- &openglfunctions_modifications1_3_compat;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications1_4_compat;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_0_compat;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- &openglfunctions_modifications3_3;
- &openglfunctions_modifications3_3a;
- &openglfunctions_modifications4_0;
- &openglfunctions_modifications4_1;
- &openglfunctions_modifications4_3;
- &openglfunctions_modifications4_4;
- &openglfunctions_modifications4_4_core;
- </object-type>
- <object-type name="QOpenGLFunctions_4_4_Core" since="5.5">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- &openglfunctions_modifications3_3;
- &openglfunctions_modifications4_0;
- &openglfunctions_modifications4_1;
- &openglfunctions_modifications_va;
- &openglfunctions_modifications4_3;
- &openglfunctions_modifications4_4;
- &openglfunctions_modifications4_4_core;
- </object-type>
- <object-type name="QOpenGLFunctions_4_5_Compatibility" since="5.5">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_0_compat;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_1_compat;
- &openglfunctions_modifications1_2_compat;
- &openglfunctions_modifications1_3_compat;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications1_4_compat;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_0_compat;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- &openglfunctions_modifications3_3;
- &openglfunctions_modifications3_3a;
- &openglfunctions_modifications4_0;
- &openglfunctions_modifications4_1;
- &openglfunctions_modifications4_3;
- &openglfunctions_modifications4_4;
- &openglfunctions_modifications4_4_core;
- &openglfunctions_modifications4_5;
- </object-type>
- <object-type name="QOpenGLFunctions_4_5_Core" since="5.5">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_1;
- &openglfunctions_modifications1_4;
- &openglfunctions_modifications2_0;
- &openglfunctions_modifications2_1;
- &openglfunctions_modifications3_0;
- &openglfunctions_modifications3_3;
- &openglfunctions_modifications4_0;
- &openglfunctions_modifications4_1;
- &openglfunctions_modifications4_3;
- &openglfunctions_modifications4_4;
- &openglfunctions_modifications4_4_core;
- &openglfunctions_modifications4_5;
- &openglfunctions_modifications_va;
- </object-type>
- <object-type name="QOpenGLFunctions_ES2" since="5.1">
- &openglfunctions_modifications1_0;
- &openglfunctions_modifications1_1;
- </object-type>
- <suppress-warning text="^There's no user provided way.*QOpenGLFunctions_\d_\d.*::glIndex.*$"/>
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_0.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_0.xml
deleted file mode 100644
index 5652ad6b6..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_0.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glGetStringi?\(.*$">
- <modify-argument index="return">
- <replace-type modified-type="QString"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="glGetString_return_QString"/>
- </inject-code>
-</modify-function>
-<modify-function signature="^glTexParameterI?u?[fi]v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_0_compat.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_0_compat.xml
deleted file mode 100644
index 5793048cd..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_0_compat.xml
+++ /dev/null
@@ -1,103 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glBitmap\(.*$" remove="all"/>
-<modify-function signature="^glColor[34][a-z]{1,2}v\(.*$">
- <modify-argument index="1"><array/></modify-argument>
-</modify-function>
-<modify-function signature="glClipPlane(unsigned int,const double *)">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glEvalCoord\d[a-z]{1,2}v\(.*$">
- <modify-argument index="1"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glFog[fi]v\(.*$">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glIndex[a-z]v\(.*$">
- <modify-argument index="1"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glLoadMatrix[df]\(.*$">
- <modify-argument index="1"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glLight[fi]v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glLightModel[fi]v\(.*$">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glMap1[df]\(.*$">
- <modify-argument index="6"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glMap2[df]\(.*$">
- <modify-argument index="10"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glMaterial[fi]v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glMultMatrix[df]\(.*$">
- <modify-argument index="1"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glNormal3.v\(.*$">
- <modify-argument index="1"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glPixelMap[a-z]{1,2}v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glPolygonStipple\(.*$" remove="all"/>
-<modify-function signature="^glRasterPos\d[a-z]v\(.*$">
- <modify-argument index="1"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glRect[dfis]v\(.*$">
- <modify-argument index="1"><array/></modify-argument>
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glTexCoord\d[dfis]v\(.*$">
- <modify-argument index="1"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glTexEnv[fi]v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glTexGen[dfi]v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glVertex\d[dfis]v\(.*$">
- <modify-argument index="1"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_1.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_1.xml
deleted file mode 100644
index 9383fb83f..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_1.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<!-- Except glGenLists/glDeleteLists -->
-<modify-function signature="^glDelete[A-KM-Z].*s\(.*$">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_1_compat.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_1_compat.xml
deleted file mode 100644
index 3f8075b30..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_1_compat.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glPrioritizeTextures\(.*$">
- <modify-argument index="2"><array/></modify-argument>
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_2_compat.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_2_compat.xml
deleted file mode 100644
index c13b09b5b..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_2_compat.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glColorTableParameter[fi]v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glConvolutionParameter[fi]v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_3_compat.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_3_compat.xml
deleted file mode 100644
index e35f3b334..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_3_compat.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^gl(Load|Mult)TransposeMatrix[df]\(.*$">
- <modify-argument index="1"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glMultiTexCoord\d[a-z]v\(.*$">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_4.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_4.xml
deleted file mode 100644
index 1102daea8..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_4.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glMultiDrawArrays\(.*$">
- <modify-argument index="2"><array/></modify-argument>
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glPointParameter[fi]v\(.*$">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_4_compat.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_4_compat.xml
deleted file mode 100644
index 4cb75d418..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications1_4_compat.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glFogCoord[df]v\(.*$">
- <modify-argument index="1"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glSecondaryColor3u?[bdfis]v\(.*$">
- <modify-argument index="1"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glWindowPos[23][dfis]v\(.*$">
- <modify-argument index="1"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications2_0.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications2_0.xml
deleted file mode 100644
index 28a424e1a..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications2_0.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glDrawBuffers\(.*$">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glUniformMatrix\d[df]v\(.*$">
- <modify-argument index="4"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glUniform\d?.v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications2_0_compat.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications2_0_compat.xml
deleted file mode 100644
index 49cbd5c05..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications2_0_compat.xml
+++ /dev/null
@@ -1 +0,0 @@
-&typesystem_openglfunctions_modifications_va.xml;
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications2_1.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications2_1.xml
deleted file mode 100644
index af515ed8c..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications2_1.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glUniformMatrix\dx\d[a-z]v\(.*$">
- <modify-argument index="4"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications3_0.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications3_0.xml
deleted file mode 100644
index 8377e440b..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications3_0.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glClearBufferu?[fi]v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glUniform\duiv\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications3_3.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications3_3.xml
deleted file mode 100644
index 7f4717170..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications3_3.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glSamplerParameterI?u?[dfi]v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glVertexAttribP\duiv\(.*$">
- <modify-argument index="4"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications3_3a.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications3_3a.xml
deleted file mode 100644
index 4bf2bc8f5..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications3_3a.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-Present from 3.3..4.5 except 4.4 Core/4.5 Core
--->
-<modify-function signature="^glColorP[34]uiv\(.*$">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glMultiTexCoordP\duiv\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^gl(Normal|SecondaryColor)P3uiv\(.*$">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glTexCoordP\duiv\(.*$">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glVertexP\duiv\(.*$">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_0.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_0.xml
deleted file mode 100644
index cf2e47a5c..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_0.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glPatchParameterfv\(.*$">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glUniformSubroutinesuiv\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_1.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_1.xml
deleted file mode 100644
index bc92ce80d..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_1.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^gl(DepthRange|Scissor|Viewport)Arrayv\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glProgramUniform\du?[dfi]v\(.*$">
- <modify-argument index="4"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glProgramUniformMatrix\d[df]v\(.*$">
- <modify-argument index="5"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glProgramUniformMatrix\dx\d[df]v\(.*$">
- <modify-argument index="5"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^gl(Scissor|Viewport)Indexedf?v\(.*$">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
-<modify-function signature="glShaderBinary(int,const unsigned int*,unsigned int,const void *,int)">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_3.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_3.xml
deleted file mode 100644
index b3c2b618d..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_3.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glInvalidate(Sub)?Framebuffer\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_4.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_4.xml
deleted file mode 100644
index 6b59f174a..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_4.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glBindBuffersBase\(.*$">
- <modify-argument index="4"><array/></modify-argument>
-</modify-function>
-<modify-function signature="glBindBuffersRange(unsigned int, unsigned int,int,const unsigned int *,const long *,const long*)">
- <modify-argument index="4"><array/></modify-argument>
- <modify-argument index="5"><array/></modify-argument>
- <modify-argument index="6"><array/></modify-argument>
-</modify-function>
-<modify-function signature="glBindVertexBuffers(unsigned int,int,const unsigned int *,const long *,const int *)">
- <modify-argument index="3"><array/></modify-argument>
- <modify-argument index="4"><array/></modify-argument>
- <modify-argument index="5"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glBind(ImageTextures|Samplers|Textures)\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_4_core.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_4_core.xml
deleted file mode 100644
index c747997aa..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_4_core.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glDebugMessageControl\(.*$">
- <modify-argument index="5"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_5.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_5.xml
deleted file mode 100644
index 2ea0a458d..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_5.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glClearNamedFramebufferu?[fi]v\(.*$">
- <modify-argument index="4"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glInvalidateNamedFramebuffer(Sub)?Data\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glNamedFramebufferDrawBuffers\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
-<modify-function signature="^glTextureParameterI?u?[fi]v\(.*$">
- <modify-argument index="3"><array/></modify-argument>
-</modify-function>
-<modify-function signature="glVertexArrayVertexBuffers(unsigned int, unsigned int,int,const unsigned int *,const long *,const int *)">
- <modify-argument index="4"><array/></modify-argument>
- <modify-argument index="5"><array/></modify-argument>
- <modify-argument index="6"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_5_core.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_5_core.xml
deleted file mode 100644
index 5cd5161f8..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications4_5_core.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
- Remove me!
--->
diff --git a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications_va.xml b/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications_va.xml
deleted file mode 100644
index ae4d49ab1..000000000
--- a/sources/pyside2/PySide2/QtOpenGLFunctions/typesystem_openglfunctions_modifications_va.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<modify-function signature="^glVertexAttrib[IL]?\dN?u?[bdfis]v\(.*$">
- <modify-argument index="2"><array/></modify-argument>
-</modify-function>
diff --git a/sources/pyside2/PySide2/QtPositioning/CMakeLists.txt b/sources/pyside2/PySide2/QtPositioning/CMakeLists.txt
deleted file mode 100644
index 321478c3e..000000000
--- a/sources/pyside2/PySide2/QtPositioning/CMakeLists.txt
+++ /dev/null
@@ -1,50 +0,0 @@
-project(QtPositioning)
-
-set(QtPositioning_OPTIONAL_SRC )
-set(QtPositioning_DROPPED_ENTRIES )
-
-set(QtPositioning_SRC
-${QtPositioning_GEN_DIR}/qgeoaddress_wrapper.cpp
-${QtPositioning_GEN_DIR}/qgeoareamonitorinfo_wrapper.cpp
-${QtPositioning_GEN_DIR}/qgeoareamonitorsource_wrapper.cpp
-${QtPositioning_GEN_DIR}/qgeolocation_wrapper.cpp
-${QtPositioning_GEN_DIR}/qgeocircle_wrapper.cpp
-${QtPositioning_GEN_DIR}/qgeocoordinate_wrapper.cpp
-${QtPositioning_GEN_DIR}/qgeopath_wrapper.cpp
-${QtPositioning_GEN_DIR}/qgeopositioninfo_wrapper.cpp
-${QtPositioning_GEN_DIR}/qgeopositioninfosource_wrapper.cpp
-${QtPositioning_GEN_DIR}/qgeopositioninfosourcefactory_wrapper.cpp
-${QtPositioning_GEN_DIR}/qgeorectangle_wrapper.cpp
-${QtPositioning_GEN_DIR}/qgeosatelliteinfo_wrapper.cpp
-${QtPositioning_GEN_DIR}/qgeosatelliteinfosource_wrapper.cpp
-${QtPositioning_GEN_DIR}/qgeoshape_wrapper.cpp
-${QtPositioning_GEN_DIR}/qnmeapositioninfosource_wrapper.cpp
-# module is always needed
-${QtPositioning_GEN_DIR}/qtpositioning_module_wrapper.cpp
-)
-
-if (Qt${QT_MAJOR_VERSION}Positioning_VERSION VERSION_EQUAL 5.10.0
- OR Qt${QT_MAJOR_VERSION}Positioning_VERSION VERSION_GREATER 5.10.0)
- list(APPEND QtPositioning_SRC
- ${QtPositioning_GEN_DIR}/qgeopolygon_wrapper.cpp)
-endif()
-
-set(QtPositioning_include_dirs ${QtPositioning_SOURCE_DIR}
- ${QtPositioning_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Positioning_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR})
-
-set(QtPositioning_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Positioning_LIBRARIES})
-
-set(QtPositioning_deps QtCore)
-
-create_pyside_module(NAME QtPositioning
- INCLUDE_DIRS QtPositioning_include_dirs
- LIBRARIES QtPositioning_libraries
- DEPS QtPositioning_deps
- TYPESYSTEM_PATH QtPositioning_SOURCE_DIR
- SOURCES QtPositioning_SRC
- DROPPED_ENTRIES QtPositioning_DROPPED_ENTRIES)
diff --git a/sources/pyside2/PySide2/QtPositioning/typesystem_positioning.xml b/sources/pyside2/PySide2/QtPositioning/typesystem_positioning.xml
deleted file mode 100644
index 5a7208950..000000000
--- a/sources/pyside2/PySide2/QtPositioning/typesystem_positioning.xml
+++ /dev/null
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtPositioning">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <value-type name="QGeoAddress"/>
- <value-type name="QGeoAreaMonitorInfo"/>
- <object-type name="QGeoAreaMonitorSource">
- <enum-type name="Error"/>
- <enum-type name="AreaMonitorFeature" flags="AreaMonitorFeatures"/>
- </object-type>
- <value-type name="QGeoLocation"/>
- <value-type name="QGeoCircle"/>
- <value-type name="QGeoCoordinate">
- <enum-type name="CoordinateType"/>
- <enum-type name="CoordinateFormat"/>
- </value-type>
- <value-type name="QGeoPath"/>
- <value-type name="QGeoPolygon" since="5.10"/>
- <value-type name="QGeoPositionInfo">
- <enum-type name="Attribute"/>
- </value-type>
- <object-type name="QGeoPositionInfoSource">
- <enum-type name="Error"/>
- <enum-type name="PositioningMethod" flags="PositioningMethods"/>
- </object-type>
- <object-type name="QGeoPositionInfoSourceFactory"/>
- <value-type name="QGeoRectangle"/>
- <value-type name="QGeoSatelliteInfo">
- <enum-type name="Attribute"/>
- <enum-type name="SatelliteSystem"/>
- </value-type>
- <object-type name="QGeoSatelliteInfoSource">
- <enum-type name="Error"/>
- </object-type>
- <value-type name="QGeoShape">
- <enum-type name="ShapeType"/>
- </value-type>
- <object-type name="QNmeaPositionInfoSource">
- <enum-type name="UpdateMode"/>
- </object-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtPrintSupport/CMakeLists.txt b/sources/pyside2/PySide2/QtPrintSupport/CMakeLists.txt
deleted file mode 100644
index fd39797da..000000000
--- a/sources/pyside2/PySide2/QtPrintSupport/CMakeLists.txt
+++ /dev/null
@@ -1,43 +0,0 @@
-project(QtPrintSupport)
-
-set(QtPrintSupport_SRC
-${QtPrintSupport_GEN_DIR}/qabstractprintdialog_wrapper.cpp
-${QtPrintSupport_GEN_DIR}/qpagesetupdialog_wrapper.cpp
-${QtPrintSupport_GEN_DIR}/qprintdialog_wrapper.cpp
-${QtPrintSupport_GEN_DIR}/qprintengine_wrapper.cpp
-${QtPrintSupport_GEN_DIR}/qprinter_wrapper.cpp
-${QtPrintSupport_GEN_DIR}/qprinterinfo_wrapper.cpp
-${QtPrintSupport_GEN_DIR}/qprintpreviewdialog_wrapper.cpp
-${QtPrintSupport_GEN_DIR}/qprintpreviewwidget_wrapper.cpp
-# module is always needed
-${QtPrintSupport_GEN_DIR}/qtprintsupport_module_wrapper.cpp
-)
-
-configure_file("${QtPrintSupport_SOURCE_DIR}/typesystem_printsupport.xml.in"
- "${QtPrintSupport_BINARY_DIR}/typesystem_printsupport.xml" @ONLY)
-
-set(QtPrintSupport_include_dirs ${QtPrintSupport_SOURCE_DIR}
- ${QtPrintSupport_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}PrintSupport_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtWidgets_GEN_DIR}
- )
-set(QtPrintSupport_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}PrintSupport_LIBRARIES}
- )
-set(QtPrintSupport_deps QtWidgets)
-create_pyside_module(NAME QtPrintSupport
- INCLUDE_DIRS QtPrintSupport_include_dirs
- LIBRARIES QtPrintSupport_libraries
- DEPS QtPrintSupport_deps
- TYPESYSTEM_PATH QtPrintSupport_SOURCE_DIR
- SOURCES QtPrintSupport_SRC
- TYPESYSTEM_NAME ${QtPrintSupport_BINARY_DIR}/typesystem_printsupport.xml)
diff --git a/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport.xml.in b/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport.xml.in
deleted file mode 100644
index ff078d19a..000000000
--- a/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport.xml.in
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtPrintSupport">
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
- <load-typesystem name="QtPrintSupport/typesystem_printsupport_common.xml" generate="yes"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport_common.xml b/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport_common.xml
deleted file mode 100644
index 487103875..000000000
--- a/sources/pyside2/PySide2/QtPrintSupport/typesystem_printsupport_common.xml
+++ /dev/null
@@ -1,124 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtPrintSupport">
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
-
- <object-type name="QPageSetupDialog">
- <modify-function signature="exec()" rename="exec_" allow-thread="yes"/>
- </object-type>
-
- <object-type name="QAbstractPrintDialog">
- <enum-type name="PrintDialogOption" flags="PrintDialogOptions"/>
- <enum-type name="PrintRange"/>
- </object-type>
-
- <object-type name="QPrintDialog">
- <modify-function signature="exec()" rename="exec_" allow-thread="yes"/>
- </object-type>
- <object-type name="QPrintEngine">
- <enum-type name="PrintEnginePropertyKey"/>
- </object-type>
- <value-type name="QPrinterInfo"/>
- <rejection class="QPrinter" function-name="printerSelectionOption"/>
- <rejection class="QPrinter" function-name="setPrinterSelectionOption"/>
-
- <object-type name="QPrinter" >
- <enum-type name="ColorMode"/>
- <enum-type name="DuplexMode"/>
- <enum-type name="Orientation"/>
- <enum-type name="OutputFormat"/>
- <enum-type name="PageOrder"/>
- <enum-type name="PaperSource"/>
- <enum-type name="PrintRange"/>
- <enum-type name="PrinterMode"/>
- <enum-type name="PrinterState"/>
- <enum-type name="Unit"/>
- <modify-function signature="getPageMargins(qreal*,qreal*,qreal*,qreal*,QPrinter::Unit)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*,args">
- <replace from="$TYPE" to="qreal"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="setEngines(QPrintEngine*,QPaintEngine*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <extra-includes>
- <include file-name="QPrinterInfo" location="global"/>
- </extra-includes>
- <!-- fixme: Check if this is still required in Qt 6:
- bool QPagedPaintDevice::setPageSize(QPageSize)
- void QPagedPaintDevice::setPageSize(QPagedPaintDevice::PageSize) -->
- <add-function signature="setPageSize(const QPageSize&amp;)" return-type="bool">
- <inject-code file="../glue/qtprintsupport.cpp" snippet="setpagesize" />
- </add-function>
- </object-type>
-
- <object-type name="QPrintPreviewDialog"/>
- <object-type name="QPrintPreviewWidget">
- <enum-type name="ViewMode"/>
- <enum-type name="ZoomMode"/>
- <modify-function signature="print()" rename="print_"/>
- </object-type>
-
-</typesystem>
-
diff --git a/sources/pyside2/PySide2/QtQml/CMakeLists.txt b/sources/pyside2/PySide2/QtQml/CMakeLists.txt
deleted file mode 100644
index 3c5dd43fc..000000000
--- a/sources/pyside2/PySide2/QtQml/CMakeLists.txt
+++ /dev/null
@@ -1,63 +0,0 @@
-project(QtQml)
-
-set(QtQml_registerType "${QtQml_SOURCE_DIR}/pysideqmlregistertype.cpp")
-
-set(QtQml_SRC
-${QtQml_GEN_DIR}/qjsengine_wrapper.cpp
-${QtQml_GEN_DIR}/qjsvalue_wrapper.cpp
-${QtQml_GEN_DIR}/qjsvalueiterator_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlabstracturlinterceptor_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlapplicationengine_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlcomponent_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlcontext_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlerror_wrapper.cpp
-${QtQml_GEN_DIR}/qqmldebuggingenabler_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlengine_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlexpression_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlextensioninterface_wrapper.cpp
-${QtQml_GEN_DIR}/qqmltypesextensioninterface_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlextensionplugin_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlfile_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlfileselector_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlimageproviderbase_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlincubator_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlincubationcontroller_wrapper.cpp
-#${QtQml_GEN_DIR}/qqmllistproperty_wrapper.cpp
-${QtQml_GEN_DIR}/qqmllistreference_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlparserstatus_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlproperty_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlpropertymap_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlpropertyvaluesource_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlscriptstring_wrapper.cpp
-${QtQml_GEN_DIR}/qqmlnetworkaccessmanagerfactory_wrapper.cpp
-${QtQml_GEN_DIR}/qtqml_wrapper.cpp
-# module is always needed
-${QtQml_GEN_DIR}/qtqml_module_wrapper.cpp
-)
-
-set(QtQml_include_dirs ${QtQml_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Network_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Qml_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtGui_GEN_DIR}
- ${QtCore_GEN_DIR}
- ${QtNetwork_GEN_DIR}
- ${QtQml_GEN_DIR})
-
-set(QtQml_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Network_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Qml_LIBRARIES})
-
-set(QtQml_deps QtGui QtNetwork)
-
-create_pyside_module(NAME QtQml
- INCLUDE_DIRS QtQml_include_dirs
- LIBRARIES QtQml_libraries
- DEPS QtQml_deps
- TYPESYSTEM_PATH QtQml_SOURCE_DIR
- SOURCES QtQml_SRC
- STATIC_SOURCES QtQml_registerType)
diff --git a/sources/pyside2/PySide2/QtQml/pysideqmlregistertype.cpp b/sources/pyside2/PySide2/QtQml/pysideqmlregistertype.cpp
deleted file mode 100644
index efc86a048..000000000
--- a/sources/pyside2/PySide2/QtQml/pysideqmlregistertype.cpp
+++ /dev/null
@@ -1,506 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "pysideqmlregistertype.h"
-
-// shiboken
-#include <shiboken.h>
-#include <signature.h>
-
-// pyside
-#include <pyside.h>
-#include <pyside_p.h>
-#include <pysideproperty.h>
-
-// auto generated headers
-#include "pyside2_qtcore_python.h"
-#include "pyside2_qtqml_python.h"
-
-#ifndef PYSIDE_MAX_QML_TYPES
-// Maximum number of different Qt QML types the user can export to QML using
-// qmlRegisterType. This limit exists because the QML engine instantiates objects
-// by calling a function with one argument (a void *pointer where the object should
-// be created), and thus does not allow us to choose which object to create. Thus
-// we create a C++ factory function for each new registered type at compile time.
-#define PYSIDE_MAX_QML_TYPES 50
-#endif
-
-// Forward declarations.
-static void propListMetaCall(PySideProperty *pp, PyObject *self, QMetaObject::Call call,
- void **args);
-
-// All registered python types and their creation functions.
-static PyObject *pyTypes[PYSIDE_MAX_QML_TYPES];
-static void (*createFuncs[PYSIDE_MAX_QML_TYPES])(void *);
-
-// Mutex used to avoid race condition on PySide::nextQObjectMemoryAddr.
-static QMutex nextQmlElementMutex;
-
-template<int N>
-struct ElementFactoryBase
-{
- static void createInto(void *memory)
- {
- QMutexLocker locker(&nextQmlElementMutex);
- PySide::setNextQObjectMemoryAddr(memory);
- Shiboken::GilState state;
- PyObject *obj = PyObject_CallObject(pyTypes[N], 0);
- if (!obj || PyErr_Occurred())
- PyErr_Print();
- PySide::setNextQObjectMemoryAddr(0);
- }
-};
-
-template<int N>
-struct ElementFactory : ElementFactoryBase<N>
-{
- static void init()
- {
- createFuncs[N] = &ElementFactoryBase<N>::createInto;
- ElementFactory<N-1>::init();
- }
-};
-
-template<>
-struct ElementFactory<0> : ElementFactoryBase<0>
-{
- static void init()
- {
- createFuncs[0] = &ElementFactoryBase<0>::createInto;
- }
-};
-
-int PySide::qmlRegisterType(PyObject *pyObj, const char *uri, int versionMajor,
- int versionMinor, const char *qmlName)
-{
- using namespace Shiboken;
-
- static PyTypeObject *qobjectType = Shiboken::Conversions::getPythonTypeObject("QObject*");
- assert(qobjectType);
- static int nextType = 0;
-
- if (nextType >= PYSIDE_MAX_QML_TYPES) {
- PyErr_Format(PyExc_TypeError, "You can only export %d custom QML types to QML.",
- PYSIDE_MAX_QML_TYPES);
- return -1;
- }
-
- PyTypeObject *pyObjType = reinterpret_cast<PyTypeObject *>(pyObj);
- if (!PySequence_Contains(pyObjType->tp_mro, reinterpret_cast<PyObject *>(qobjectType))) {
- PyErr_Format(PyExc_TypeError, "A type inherited from %s expected, got %s.",
- qobjectType->tp_name, pyObjType->tp_name);
- return -1;
- }
-
- const QMetaObject *metaObject = PySide::retrieveMetaObject(pyObjType);
- Q_ASSERT(metaObject);
-
- QQmlPrivate::RegisterType type;
- type.version = 0;
-
- // Allow registering Qt Quick items.
- bool registered = false;
-#ifdef PYSIDE_QML_SUPPORT
- QuickRegisterItemFunction quickRegisterItemFunction = getQuickRegisterItemFunction();
- if (quickRegisterItemFunction) {
- registered = quickRegisterItemFunction(pyObj, uri, versionMajor, versionMinor,
- qmlName, &type);
- }
-#endif
-
- // Register as simple QObject rather than Qt Quick item.
- if (!registered) {
- // Incref the type object, don't worry about decref'ing it because
- // there's no way to unregister a QML type.
- Py_INCREF(pyObj);
-
- pyTypes[nextType] = pyObj;
-
- // FIXME: Fix this to assign new type ids each time.
- type.typeId = qMetaTypeId<QObject *>();
- type.listId = qMetaTypeId<QQmlListProperty<QObject> >();
- type.attachedPropertiesFunction = QQmlPrivate::attachedPropertiesFunc<QObject>();
- type.attachedPropertiesMetaObject = QQmlPrivate::attachedPropertiesMetaObject<QObject>();
-
- type.parserStatusCast =
- QQmlPrivate::StaticCastSelector<QObject, QQmlParserStatus>::cast();
- type.valueSourceCast =
- QQmlPrivate::StaticCastSelector<QObject, QQmlPropertyValueSource>::cast();
- type.valueInterceptorCast =
- QQmlPrivate::StaticCastSelector<QObject, QQmlPropertyValueInterceptor>::cast();
-
- int objectSize = static_cast<int>(PySide::getSizeOfQObject(
- reinterpret_cast<SbkObjectType *>(pyObj)));
- type.objectSize = objectSize;
- type.create = createFuncs[nextType];
- type.uri = uri;
- type.versionMajor = versionMajor;
- type.versionMinor = versionMinor;
- type.elementName = qmlName;
-
- type.extensionObjectCreate = 0;
- type.extensionMetaObject = 0;
- type.customParser = 0;
- ++nextType;
- }
- type.metaObject = metaObject; // Snapshot may have changed.
-
- int qmlTypeId = QQmlPrivate::qmlregister(QQmlPrivate::TypeRegistration, &type);
- if (qmlTypeId == -1) {
- PyErr_Format(PyExc_TypeError, "QML meta type registration of \"%s\" failed.",
- qmlName);
- }
- return qmlTypeId;
-}
-
-extern "C"
-{
-
-// This is the user data we store in the property.
-struct QmlListProperty
-{
- PyTypeObject *type;
- PyObject *append;
- PyObject *at;
- PyObject *clear;
- PyObject *count;
-};
-
-static int propListTpInit(PyObject *self, PyObject *args, PyObject *kwds)
-{
- static const char *kwlist[] = {"type", "append", "at", "clear", "count", 0};
- PySideProperty *pySelf = reinterpret_cast<PySideProperty *>(self);
- QmlListProperty *data = new QmlListProperty;
- memset(data, 0, sizeof(QmlListProperty));
-
- if (!PyArg_ParseTupleAndKeywords(args, kwds,
- "OO|OOO:QtQml.ListProperty", (char **) kwlist,
- &data->type,
- &data->append,
- &data->at,
- &data->clear,
- &data->count)) {
- return -1;
- }
- PySide::Property::setMetaCallHandler(pySelf, &propListMetaCall);
- PySide::Property::setTypeName(pySelf, "QQmlListProperty<QObject>");
- PySide::Property::setUserData(pySelf, data);
-
- return 0;
-}
-
-void propListTpFree(void *self)
-{
- auto pySelf = reinterpret_cast<PySideProperty *>(self);
- delete reinterpret_cast<QmlListProperty *>(PySide::Property::userData(pySelf));
- // calls base type constructor
- Py_TYPE(pySelf)->tp_base->tp_free(self);
-}
-
-static PyType_Slot PropertyListType_slots[] = {
- {Py_tp_init, (void *)propListTpInit},
- {Py_tp_free, (void *)propListTpFree},
- {Py_tp_dealloc, (void *)Sbk_object_dealloc},
- {0, 0}
-};
-static PyType_Spec PropertyListType_spec = {
- "2:PySide2.QtQml.ListProperty",
- sizeof(PySideProperty),
- 0,
- Py_TPFLAGS_DEFAULT,
- PropertyListType_slots,
-};
-
-
-PyTypeObject *PropertyListTypeF(void)
-{
- static PyTypeObject *type = nullptr;
- if (!type) {
- PyObject *bases = Py_BuildValue("(O)", PySidePropertyTypeF());
- type = (PyTypeObject *)SbkType_FromSpecWithBases(&PropertyListType_spec, bases);
- Py_XDECREF(bases);
- }
- return type;
-}
-
-} // extern "C"
-
-// Implementation of QQmlListProperty<T>::AppendFunction callback
-void propListAppender(QQmlListProperty<QObject> *propList, QObject *item)
-{
- Shiboken::GilState state;
-
- Shiboken::AutoDecRef args(PyTuple_New(2));
- PyTuple_SET_ITEM(args, 0, Shiboken::Conversions::pointerToPython((SbkObjectType *)SbkPySide2_QtCoreTypes[SBK_QOBJECT_IDX], propList->object));
- PyTuple_SET_ITEM(args, 1, Shiboken::Conversions::pointerToPython((SbkObjectType *)SbkPySide2_QtCoreTypes[SBK_QOBJECT_IDX], item));
-
- auto data = reinterpret_cast<QmlListProperty *>(propList->data);
- Shiboken::AutoDecRef retVal(PyObject_CallObject(data->append, args));
-
- if (PyErr_Occurred())
- PyErr_Print();
-}
-
-// Implementation of QQmlListProperty<T>::CountFunction callback
-int propListCount(QQmlListProperty<QObject> *propList)
-{
- Shiboken::GilState state;
-
- Shiboken::AutoDecRef args(PyTuple_New(1));
- PyTuple_SET_ITEM(args, 0, Shiboken::Conversions::pointerToPython((SbkObjectType *)SbkPySide2_QtCoreTypes[SBK_QOBJECT_IDX], propList->object));
-
- auto data = reinterpret_cast<QmlListProperty *>(propList->data);
- Shiboken::AutoDecRef retVal(PyObject_CallObject(data->count, args));
-
- // Check return type
- int cppResult = 0;
- PythonToCppFunc pythonToCpp = 0;
- if (PyErr_Occurred())
- PyErr_Print();
- else if ((pythonToCpp = Shiboken::Conversions::isPythonToCppConvertible(Shiboken::Conversions::PrimitiveTypeConverter<int>(), retVal)))
- pythonToCpp(retVal, &cppResult);
- return cppResult;
-}
-
-// Implementation of QQmlListProperty<T>::AtFunction callback
-QObject *propListAt(QQmlListProperty<QObject> *propList, int index)
-{
- Shiboken::GilState state;
-
- Shiboken::AutoDecRef args(PyTuple_New(2));
- PyTuple_SET_ITEM(args, 0, Shiboken::Conversions::pointerToPython((SbkObjectType *)SbkPySide2_QtCoreTypes[SBK_QOBJECT_IDX], propList->object));
- PyTuple_SET_ITEM(args, 1, Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &index));
-
- auto data = reinterpret_cast<QmlListProperty *>(propList->data);
- Shiboken::AutoDecRef retVal(PyObject_CallObject(data->at, args));
-
- QObject *result = 0;
- if (PyErr_Occurred())
- PyErr_Print();
- else if (PyType_IsSubtype(Py_TYPE(retVal), data->type))
- Shiboken::Conversions::pythonToCppPointer((SbkObjectType *)SbkPySide2_QtCoreTypes[SBK_QOBJECT_IDX], retVal, &result);
- return result;
-}
-
-// Implementation of QQmlListProperty<T>::ClearFunction callback
-void propListClear(QQmlListProperty<QObject> * propList)
-{
- Shiboken::GilState state;
-
- Shiboken::AutoDecRef args(PyTuple_New(1));
- PyTuple_SET_ITEM(args, 0, Shiboken::Conversions::pointerToPython((SbkObjectType *)SbkPySide2_QtCoreTypes[SBK_QOBJECT_IDX], propList->object));
-
- auto data = reinterpret_cast<QmlListProperty *>(propList->data);
- Shiboken::AutoDecRef retVal(PyObject_CallObject(data->clear, args));
-
- if (PyErr_Occurred())
- PyErr_Print();
-}
-
-// qt_metacall specialization for ListProperties
-static void propListMetaCall(PySideProperty *pp, PyObject *self, QMetaObject::Call call, void **args)
-{
- if (call != QMetaObject::ReadProperty)
- return;
-
- auto data = reinterpret_cast<QmlListProperty *>(PySide::Property::userData(pp));
- QObject *qobj;
- Shiboken::Conversions::pythonToCppPointer((SbkObjectType *)SbkPySide2_QtCoreTypes[SBK_QOBJECT_IDX], self, &qobj);
- QQmlListProperty<QObject> declProp(qobj, data, &propListAppender, &propListCount, &propListAt, &propListClear);
-
- // Copy the data to the memory location requested by the meta call
- void *v = args[0];
- *reinterpret_cast<QQmlListProperty<QObject> *>(v) = declProp;
-}
-
-// VolatileBool (volatile bool) type definition.
-
-static PyObject *
-QtQml_VolatileBoolObject_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
-{
- static const char *kwlist[] = {"x", 0};
- PyObject *x = Py_False;
- long ok;
-
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O:bool", const_cast<char **>(kwlist), &x))
- return Q_NULLPTR;
- ok = PyObject_IsTrue(x);
- if (ok < 0)
- return Q_NULLPTR;
-
- QtQml_VolatileBoolObject *self
- = reinterpret_cast<QtQml_VolatileBoolObject *>(type->tp_alloc(type, 0));
-
- if (self != Q_NULLPTR)
- self->flag = ok;
-
- return reinterpret_cast<PyObject *>(self);
-}
-
-static PyObject *
-QtQml_VolatileBoolObject_get(QtQml_VolatileBoolObject *self)
-{
- if (self->flag)
- return Py_True;
- return Py_False;
-}
-
-static PyObject *
-QtQml_VolatileBoolObject_set(QtQml_VolatileBoolObject *self, PyObject *args)
-{
- PyObject *value = Py_False;
- long ok;
-
- if (!PyArg_ParseTuple(args, "O:bool", &value)) {
- return Q_NULLPTR;
- }
-
- ok = PyObject_IsTrue(value);
- if (ok < 0) {
- PyErr_SetString(PyExc_TypeError, "Not a boolean value.");
- return Q_NULLPTR;
- }
-
- if (ok > 0)
- self->flag = true;
- else
- self->flag = false;
-
- Py_RETURN_NONE;
-}
-
-static PyMethodDef QtQml_VolatileBoolObject_methods[] = {
- {"get", reinterpret_cast<PyCFunction>(QtQml_VolatileBoolObject_get), METH_NOARGS,
- "B.get() -> Bool. Returns the value of the volatile boolean"
- },
- {"set", reinterpret_cast<PyCFunction>(QtQml_VolatileBoolObject_set), METH_VARARGS,
- "B.set(a) -> None. Sets the value of the volatile boolean"
- },
- {Q_NULLPTR} /* Sentinel */
-};
-
-static PyObject *
-QtQml_VolatileBoolObject_repr(QtQml_VolatileBoolObject *self)
-{
- PyObject *s;
-
- if (self->flag)
- s = PyBytes_FromFormat("%s(True)",
- Py_TYPE(self)->tp_name);
- else
- s = PyBytes_FromFormat("%s(False)",
- Py_TYPE(self)->tp_name);
- Py_XINCREF(s);
- return s;
-}
-
-static PyObject *
-QtQml_VolatileBoolObject_str(QtQml_VolatileBoolObject *self)
-{
- PyObject *s;
-
- if (self->flag)
- s = PyBytes_FromFormat("%s(True) -> %p",
- Py_TYPE(self)->tp_name, &(self->flag));
- else
- s = PyBytes_FromFormat("%s(False) -> %p",
- Py_TYPE(self)->tp_name, &(self->flag));
- Py_XINCREF(s);
- return s;
-}
-
-static PyType_Slot QtQml_VolatileBoolType_slots[] = {
- {Py_tp_repr, (void *)reinterpret_cast<reprfunc>(QtQml_VolatileBoolObject_repr)},
- {Py_tp_str, (void *)reinterpret_cast<reprfunc>(QtQml_VolatileBoolObject_str)},
- {Py_tp_methods, (void *)QtQml_VolatileBoolObject_methods},
- {Py_tp_new, (void *)QtQml_VolatileBoolObject_new},
- {Py_tp_dealloc, (void *)Sbk_object_dealloc},
- {0, 0}
-};
-static PyType_Spec QtQml_VolatileBoolType_spec = {
- "2:PySide2.QtQml.VolatileBool",
- sizeof(QtQml_VolatileBoolObject),
- 0,
- Py_TPFLAGS_DEFAULT,
- QtQml_VolatileBoolType_slots,
-};
-
-
-PyTypeObject *QtQml_VolatileBoolTypeF(void)
-{
- static PyTypeObject *type = reinterpret_cast<PyTypeObject *>(
- SbkType_FromSpec(&QtQml_VolatileBoolType_spec));
- return type;
-}
-
-static const char *PropertyList_SignatureStrings[] = {
- "PySide2.QtQml.ListProperty(type:type,append:typing.Callable,"
- "at:typing.Callable=None,clear:typing.Callable=None,count:typing.Callable=None)",
- nullptr}; // Sentinel
-
-static const char *VolatileBool_SignatureStrings[] = {
- "PySide2.QtQml.VolatileBool.get()->bool",
- "PySide2.QtQml.VolatileBool.set(a:object)",
- nullptr}; // Sentinel
-
-void PySide::initQmlSupport(PyObject *module)
-{
- ElementFactory<PYSIDE_MAX_QML_TYPES - 1>::init();
-
- // Export QmlListProperty type
- if (SbkSpecial_Type_Ready(module, PropertyListTypeF(), PropertyList_SignatureStrings) < 0) {
- PyErr_Print();
- qWarning() << "Error initializing PropertyList type.";
- return;
- }
-
- Py_INCREF(reinterpret_cast<PyObject *>(PropertyListTypeF()));
- PyModule_AddObject(module, PepType_GetNameStr(PropertyListTypeF()),
- reinterpret_cast<PyObject *>(PropertyListTypeF()));
-
- if (SbkSpecial_Type_Ready(module, QtQml_VolatileBoolTypeF(), VolatileBool_SignatureStrings) < 0) {
- PyErr_Print();
- qWarning() << "Error initializing VolatileBool type.";
- return;
- }
-
- Py_INCREF(QtQml_VolatileBoolTypeF());
- PyModule_AddObject(module, PepType_GetNameStr(QtQml_VolatileBoolTypeF()),
- reinterpret_cast<PyObject *>(QtQml_VolatileBoolTypeF()));
-}
diff --git a/sources/pyside2/PySide2/QtQml/pysideqmlregistertype.h b/sources/pyside2/PySide2/QtQml/pysideqmlregistertype.h
deleted file mode 100644
index e94ea043f..000000000
--- a/sources/pyside2/PySide2/QtQml/pysideqmlregistertype.h
+++ /dev/null
@@ -1,85 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef PYSIDEQMLREGISTERTYPE_H
-#define PYSIDEQMLREGISTERTYPE_H
-
-#include <sbkpython.h>
-
-struct SbkObjectType;
-
-namespace PySide
-{
-
-extern void *nextQmlElementMemoryAddr;
-
-/**
- * Init the QML support doing things like registering QtQml.ListProperty and create the necessary stuff for
- * qmlRegisterType.
- *
- * \param module QtQml python module
- */
-void initQmlSupport(PyObject *module);
-
-/**
- * PySide implementation of qmlRegisterType<T> function.
- *
- * \param pyObj Python type to be registered.
- * \param uri QML element uri.
- * \param versionMajor QML component major version.
- * \param versionMinor QML component minor version.
- * \param qmlName QML element name
- * \return the metatype id of the registered type.
- */
-int qmlRegisterType(PyObject *pyObj, const char *uri, int versionMajor, int versionMinor,
- const char *qmlName);
-}
-
-// Volatile Bool Ptr type definition.
-
-typedef struct {
- PyObject_HEAD
- volatile bool flag;
-} QtQml_VolatileBoolObject;
-
-PyAPI_FUNC(PyTypeObject *) QtQml_VolatileBoolTypeF(void);
-
-#define VolatileBool_Check(op) (Py_TYPE(op) == QtQml_VolatileBoolTypeF())
-
-#endif
diff --git a/sources/pyside2/PySide2/QtQml/typesystem_qml.xml b/sources/pyside2/PySide2/QtQml/typesystem_qml.xml
deleted file mode 100644
index b61b28c07..000000000
--- a/sources/pyside2/PySide2/QtQml/typesystem_qml.xml
+++ /dev/null
@@ -1,216 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtQml">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="QtNetwork/typesystem_network.xml" generate="no"/>
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
-
- <!-- This is to inform the generator that the VolatileBool python type exists -->
- <custom-type name="VolatileBool"/>
- <primitive-type name="bool volatile" target-lang-api-name="VolatileBool">
- <include file-name="pysideqmlregistertype.h" location="local"/>
- <!-- No conversion rules are specified here, because the generator does not handle
- pointer to primitive types without function adjustment.
- See commit ff0b861b59b41387e771d9cd565e13de8b2750d1 or search for changePStr
- in generator tests folder. -->
- </primitive-type>
-
- <!-- For qmlEngine(const QObject*), qmlContext(const QObject*) in qqml.h -->
- <namespace-type name="QtQml"/>
-
- <add-function signature="qmlRegisterType(PyTypeObject,const char*,int,int,const char*)" return-type="int">
- <inject-documentation format="target" mode="append">
- This function registers the Python type in the QML system with the name qmlName, in the library imported from uri having the version number composed from versionMajor and versionMinor.
- Returns the QML type id.
-
- For example, this registers a Python class MySliderItem as a QML type named Slider for version 1.0 of a module called "com.mycompany.qmlcomponents":
-
- ::
-
- qmlRegisterType(MySliderItem, "com.mycompany.qmlcomponents", 1, 0, "Slider")
-
- Once this is registered, the type can be used in QML by importing the specified module name and version number:
-
- ::
-
- import com.mycompany.qmlcomponents 1.0
-
- Slider { ... }
-
- Note that it's perfectly reasonable for a library to register types to older versions than the actual version of the library. Indeed, it is normal for the new library to allow QML written to previous versions to continue to work, even if more advanced versions of some of its types are available.
- </inject-documentation>
-
- <inject-code class="target" file="../glue/qtqml.cpp" snippet="qmlregistertype"/>
- </add-function>
-
- <enum-type identified-by-value="QML_HAS_ATTACHED_PROPERTIES">
- <extra-includes>
- <include file-name="QtQml" location="global"/>
- <include file-name="pysideqmlregistertype.h" location="local"/>
- </extra-includes>
- </enum-type>
-
- <inject-code class="target" position="end" file="../glue/qtqml.cpp" snippet="init"/>
-
- <object-type name="QJSEngine">
- <enum-type name="Extension" flags="Extensions" since="5.6"/>
- <add-function signature="toScriptValue(const QVariant&amp;)" return-type="QJSValue">
- <inject-code class="target" position="end" file="../glue/qtqml.cpp" snippet="qjsengine-toscriptvalue"/>
- </add-function>
- </object-type>
- <value-type name="QJSValue">
- <enum-type name="ErrorType" since="5.12"/>
- <enum-type name="SpecialValue"/>
- </value-type>
- <object-type name="QJSValueIterator"/>
- <object-type name="QQmlAbstractUrlInterceptor">
- <enum-type name="DataType"/>
- </object-type>
- <object-type name="QQmlApplicationEngine"/>
- <object-type name="QQmlComponent">
- <enum-type name="CompilationMode"/>
- <enum-type name="Status"/>
- </object-type>
- <object-type name="QQmlContext"/>
- <value-type name="QQmlError"/>
- <object-type name="QQmlDebuggingEnabler">
- <enum-type name="StartMode"/>
- </object-type>
- <object-type name="QQmlEngine">
- <enum-type name="ObjectOwnership"/>
- <modify-function signature="addImageProvider(const QString&amp;,QQmlImageProviderBase*)">
- <modify-argument index="2">
- <define-ownership owner="c++"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QQmlExpression">
- <modify-function signature="evaluate(bool*)" allow-thread="yes">
- <modify-argument index="1">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyTuple"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*"/>
- </inject-code>
- </modify-function>
- </object-type>
- <interface-type name="QQmlTypesExtensionInterface"/>
- <interface-type name="QQmlExtensionInterface"/>
- <object-type name="QQmlExtensionPlugin"/>
- <!-- Possible qRegisterMetaType issues ? -->
- <object-type name="QQmlFile">
- <enum-type name="Status"/>
- </object-type>
- <object-type name="QQmlFileSelector"/>
- <object-type name="QQmlImageProviderBase">
- <enum-type name="Flag" flags="Flags"/>
- <enum-type name="ImageType"/>
- </object-type>
- <object-type name="QQmlIncubator">
- <enum-type name="IncubationMode"/>
- <enum-type name="Status"/>
- </object-type>
- <object-type name="QQmlIncubationController">
- <modify-function signature="incubateWhile(volatile bool*,int)" allow-thread="yes">
- <modify-argument index="1">
- <!-- The replace type is needed to use the VolatileBool_Check macro instead of
- a template conversion function with "volatile bool" as argument. -->
- <replace-type modified-type="VolatileBool"/>
- <conversion-rule class="native">
- volatile bool * %out =
- &amp;((reinterpret_cast&lt;QtQml_VolatileBoolObject *&gt;(%PYARG_1))->flag);
- </conversion-rule>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <!-- TODO: QQmlListProperty is a template class, and thus should probably be treated like a
- container-type tag, which implies custom code for conversion. Not sure there's a use case to
- allow instantiating or deriving from the class though, given that a separate custom ListProperty
- type is provided by the module. Plus meta type registration would have to be taken into account
- for the QML parts.
- <value-type name="QQmlListProperty"/>-->
- <value-type name="QQmlListReference"/>
- <interface-type name="QQmlParserStatus"/>
- <value-type name="QQmlProperty">
- <enum-type name="PropertyTypeCategory"/>
- <enum-type name="Type"/>
- </value-type>
- <object-type name="QQmlPropertyMap"/>
- <object-type name="QQmlPropertyValueSource"/>
- <value-type name="QQmlScriptString">
- <modify-function signature="numberLiteral(bool*)const" allow-thread="yes">
- <modify-argument index="1">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyTuple"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*"/>
- </inject-code>
- </modify-function>
- <modify-function signature="booleanLiteral(bool*)const" allow-thread="yes">
- <modify-argument index="1">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyTuple"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*"/>
- </inject-code>
- </modify-function>
- </value-type>
- <object-type name="QQmlNetworkAccessManagerFactory">
- <modify-function signature="create(QObject*)">
- <modify-argument index="return">
- <define-ownership class="native" owner="c++"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <!-- Suppress anonymous enum warning -->
- <suppress-warning text="Anonymous enum (QmlCurrentSingletonTypeRegistrationVersion) does not have a type entry"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtQuick/CMakeLists.txt b/sources/pyside2/PySide2/QtQuick/CMakeLists.txt
deleted file mode 100644
index 0f453c90e..000000000
--- a/sources/pyside2/PySide2/QtQuick/CMakeLists.txt
+++ /dev/null
@@ -1,90 +0,0 @@
-project(QtQuick)
-
-set(QtQuick_registerType "${QtQuick_SOURCE_DIR}/pysidequickregistertype.cpp")
-
-set(QtQuick_SRC
-${QtQuick_GEN_DIR}/qquickframebufferobject_wrapper.cpp
-${QtQuick_GEN_DIR}/qquickframebufferobject_renderer_wrapper.cpp
-${QtQuick_GEN_DIR}/qquicktexturefactory_wrapper.cpp
-${QtQuick_GEN_DIR}/qquickimageprovider_wrapper.cpp
-${QtQuick_GEN_DIR}/qquicktransform_wrapper.cpp
-${QtQuick_GEN_DIR}/qquickitem_wrapper.cpp
-${QtQuick_GEN_DIR}/qquickitem_updatepaintnodedata_wrapper.cpp
-${QtQuick_GEN_DIR}/qquickitemgrabresult_wrapper.cpp
-${QtQuick_GEN_DIR}/qsharedpointer_qquickitemgrabresult_wrapper.cpp
-${QtQuick_GEN_DIR}/qquickpainteditem_wrapper.cpp
-${QtQuick_GEN_DIR}/qquickrendercontrol_wrapper.cpp
-${QtQuick_GEN_DIR}/qquicktextdocument_wrapper.cpp
-${QtQuick_GEN_DIR}/qquickview_wrapper.cpp
-${QtQuick_GEN_DIR}/qquickwindow_wrapper.cpp
-${QtQuick_GEN_DIR}/qsgabstractrenderer_wrapper.cpp
-${QtQuick_GEN_DIR}/qsgbasicgeometrynode_wrapper.cpp
-${QtQuick_GEN_DIR}/qsgclipnode_wrapper.cpp
-${QtQuick_GEN_DIR}/qsgdynamictexture_wrapper.cpp
-${QtQuick_GEN_DIR}/qsgengine_wrapper.cpp
-#${QtQuick_GEN_DIR}/qsgflatcolormaterial_wrapper.cpp
-${QtQuick_GEN_DIR}/qsggeometry_attribute_wrapper.cpp
-${QtQuick_GEN_DIR}/qsggeometry_attributeset_wrapper.cpp
-${QtQuick_GEN_DIR}/qsggeometry_coloredpoint2d_wrapper.cpp
-${QtQuick_GEN_DIR}/qsggeometry_point2d_wrapper.cpp
-${QtQuick_GEN_DIR}/qsggeometry_texturedpoint2d_wrapper.cpp
-${QtQuick_GEN_DIR}/qsggeometry_wrapper.cpp
-${QtQuick_GEN_DIR}/qsggeometrynode_wrapper.cpp
-#${QtQuick_GEN_DIR}/qsgmaterial_wrapper.cpp
-#${QtQuick_GEN_DIR}/qsgmaterialshader_renderstate_wrapper.cpp
-# Issue with virtual char const *const *attributeNames()
-#${QtQuick_GEN_DIR}/qsgmaterialshader_wrapper.cpp
-${QtQuick_GEN_DIR}/qsgmaterialtype_wrapper.cpp
-${QtQuick_GEN_DIR}/qsgnode_wrapper.cpp
-${QtQuick_GEN_DIR}/qsgopacitynode_wrapper.cpp
-#${QtQuick_GEN_DIR}/qsgopaquetexturematerial_wrapper.cpp
-#${QtQuick_GEN_DIR}/qsgsimplematerial_wrapper.cpp
-#${QtQuick_GEN_DIR}/qsgsimplematerialshader_wrapper.cpp
-${QtQuick_GEN_DIR}/qsgsimplerectnode_wrapper.cpp
-${QtQuick_GEN_DIR}/qsgsimpletexturenode_wrapper.cpp
-${QtQuick_GEN_DIR}/qsgtexture_wrapper.cpp
-#${QtQuick_GEN_DIR}/qsgtexturematerial_wrapper.cpp
-${QtQuick_GEN_DIR}/qsgtextureprovider_wrapper.cpp
-${QtQuick_GEN_DIR}/qsgtransformnode_wrapper.cpp
-#${QtQuick_GEN_DIR}/qsgvertexcolormaterial_wrapper.cpp
-# module is always needed
-${QtQuick_GEN_DIR}/qtquick_module_wrapper.cpp
-)
-
-if (Qt${QT_MAJOR_VERSION}Quick_VERSION VERSION_GREATER 5.5.1)
- set(QtQuick_SRC ${QtQuick_SRC}
- ${QtQuick_GEN_DIR}/qquickasyncimageprovider_wrapper.cpp
- ${QtQuick_GEN_DIR}/qquickimageresponse_wrapper.cpp
- )
-endif()
-
-set(QtQuick_include_dirs ${QtQuick_SOURCE_DIR}
- ${QtQml_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Network_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Qml_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Quick_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtGui_GEN_DIR}
- ${QtCore_GEN_DIR}
- ${QtNetwork_GEN_DIR}
- ${QtQml_GEN_DIR}
- ${QtQuick_GEN_DIR})
-
-set(QtQuick_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Network_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Qml_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Quick_LIBRARIES})
-
-set(QtQuick_deps QtGui QtNetwork QtQml)
-
-create_pyside_module(NAME QtQuick
- INCLUDE_DIRS QtQuick_include_dirs
- LIBRARIES QtQuick_libraries
- DEPS QtQuick_deps
- TYPESYSTEM_PATH QtQuick_SOURCE_DIR
- SOURCES QtQuick_SRC
- STATIC_SOURCES QtQuick_registerType)
diff --git a/sources/pyside2/PySide2/QtQuick/pysidequickregistertype.cpp b/sources/pyside2/PySide2/QtQuick/pysidequickregistertype.cpp
deleted file mode 100644
index a042ac2cc..000000000
--- a/sources/pyside2/PySide2/QtQuick/pysidequickregistertype.cpp
+++ /dev/null
@@ -1,253 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "pysidequickregistertype.h"
-
-#include <pyside.h>
-#include <pyside_p.h>
-#include <shiboken.h>
-
-// Auto generated headers.
-#include "qquickitem_wrapper.h"
-#include "qquickpainteditem_wrapper.h"
-#include "qquickframebufferobject_wrapper.h"
-#include "pyside2_qtcore_python.h"
-#include "pyside2_qtquick_python.h"
-#include "pyside2_qtqml_python.h"
-
-#ifndef PYSIDE_MAX_QUICK_TYPES
-// Maximum number of different Qt Quick types the user can export to QML using
-// qmlRegisterType. This limit exists because the QML engine instantiates objects
-// by calling a function with one argument (a void* pointer where the object should
-// be created), and thus does not allow us to choose which object to create. Thus
-// we create a C++ factory function for each new registered type at compile time.
-# define PYSIDE_MAX_QUICK_TYPES 50
-#endif // !PYSIDE_MAX_QUICK_TYPES
-
-// All registered python types and their creation functions.
-static PyObject *pyTypes[PYSIDE_MAX_QUICK_TYPES];
-static void (*createFuncs[PYSIDE_MAX_QUICK_TYPES])(void *);
-
-// Mutex used to avoid race condition on PySide::nextQObjectMemoryAddr.
-static QMutex nextQmlElementMutex;
-
-// Python object factory functions.
-template<int N>
-struct ElementFactoryBase
-{
- static void createQuickItem(void *memory)
- {
- QMutexLocker locker(&nextQmlElementMutex);
- PySide::setNextQObjectMemoryAddr(memory);
- Shiboken::GilState state;
- PyObject *obj = PyObject_CallObject(pyTypes[N], 0);
- if (!obj || PyErr_Occurred())
- PyErr_Print();
- PySide::setNextQObjectMemoryAddr(0);
- }
-};
-
-template<int N>
-struct ElementFactory : ElementFactoryBase<N>
-{
- static void init()
- {
- createFuncs[N] = &ElementFactoryBase<N>::createQuickItem;
- ElementFactory<N-1>::init();
- }
-};
-
-template<>
-struct ElementFactory<0> : ElementFactoryBase<0>
-{
- static void init()
- {
- createFuncs[0] = &ElementFactoryBase<0>::createQuickItem;
- }
-};
-
-#define PY_REGISTER_IF_INHERITS_FROM(className, typeToRegister,typePointerName, \
- typeListName, typeMetaObject, type, registered) \
- registerTypeIfInheritsFromClass<className##Wrapper>(#className, typeToRegister, \
- typePointerName, typeListName, \
- typeMetaObject, type, registered)
-
-bool pyTypeObjectInheritsFromClass(PyTypeObject *pyObjType, QByteArray className)
-{
- className.append('*');
- PyTypeObject *classPyType = Shiboken::Conversions::getPythonTypeObject(className.constData());
- bool isDerived = PySequence_Contains(pyObjType->tp_mro,
- reinterpret_cast<PyObject *>(classPyType));
- return isDerived;
-}
-
-template <class WrapperClass>
-void registerTypeIfInheritsFromClass(
- QByteArray className,
- PyTypeObject *typeToRegister,
- const QByteArray &typePointerName,
- const QByteArray &typeListName,
- const QMetaObject *typeMetaObject,
- QQmlPrivate::RegisterType *type,
- bool &registered)
-{
- bool shouldRegister = !registered && pyTypeObjectInheritsFromClass(typeToRegister, className);
- if (shouldRegister) {
- int ptrType =
- QMetaType::registerNormalizedType(
- typePointerName.constData(),
- QtMetaTypePrivate::QMetaTypeFunctionHelper<WrapperClass *>::Destruct,
- QtMetaTypePrivate::QMetaTypeFunctionHelper<WrapperClass *>::Construct,
- sizeof(WrapperClass *),
- static_cast< ::QFlags<QMetaType::TypeFlag> >(QtPrivate::QMetaTypeTypeFlags<
- WrapperClass *>::Flags),
- typeMetaObject);
- if (ptrType == -1) {
- PyErr_Format(PyExc_TypeError, "Meta type registration of \"%s\" for QML usage failed.",
- typePointerName.constData());
- return;
- }
-
- int lstType =
- QMetaType::registerNormalizedType(
- typeListName.constData(),
- QtMetaTypePrivate::QMetaTypeFunctionHelper<QQmlListProperty<WrapperClass> >
- ::Destruct,
- QtMetaTypePrivate::QMetaTypeFunctionHelper<QQmlListProperty<WrapperClass> >
- ::Construct,
- sizeof(QQmlListProperty<WrapperClass>),
- static_cast< ::QFlags<QMetaType::TypeFlag> >(
- QtPrivate::QMetaTypeTypeFlags<QQmlListProperty<WrapperClass> >::Flags),
- nullptr);
- if (lstType == -1) {
- PyErr_Format(PyExc_TypeError, "Meta type registration of \"%s\" for QML usage failed.",
- typeListName.constData());
- return;
- }
-
- type->typeId = ptrType;
- type->listId = lstType;
- type->attachedPropertiesFunction = QQmlPrivate::attachedPropertiesFunc<WrapperClass>();
- type->attachedPropertiesMetaObject =
- QQmlPrivate::attachedPropertiesMetaObject<WrapperClass>();
- type->parserStatusCast =
- QQmlPrivate::StaticCastSelector<WrapperClass, QQmlParserStatus>::cast();
- type->valueSourceCast =
- QQmlPrivate::StaticCastSelector<WrapperClass, QQmlPropertyValueSource>::cast();
- type->valueInterceptorCast =
- QQmlPrivate::StaticCastSelector<WrapperClass, QQmlPropertyValueInterceptor>::cast();
- type->objectSize = sizeof(WrapperClass);
- registered = true;
- }
-}
-
-bool quickRegisterType(PyObject *pyObj, const char *uri, int versionMajor, int versionMinor,
- const char *qmlName, QQmlPrivate::RegisterType *type)
-{
- using namespace Shiboken;
- static int nextType = 0;
-
- if (nextType >= PYSIDE_MAX_QUICK_TYPES) {
- PyErr_Format(PyExc_TypeError,
- "You can only export %d Qt Quick types to QML.", PYSIDE_MAX_QUICK_TYPES);
- return false;
- }
-
- PyTypeObject *pyObjType = reinterpret_cast<PyTypeObject *>(pyObj);
- PyTypeObject *qQuickItemPyType =
- Shiboken::Conversions::getPythonTypeObject("QQuickItem*");
- bool isQuickItem = PySequence_Contains(pyObjType->tp_mro,
- reinterpret_cast<PyObject *>(qQuickItemPyType));
-
- // Register only classes that inherit QQuickItem or its children.
- if (!isQuickItem)
- return false;
-
- // Used inside macros to register the type.
- const QMetaObject *metaObject = PySide::retrieveMetaObject(pyObj);
- Q_ASSERT(metaObject);
-
-
- // Incref the type object, don't worry about decref'ing it because
- // there's no way to unregister a QML type.
- Py_INCREF(pyObj);
-
- pyTypes[nextType] = pyObj;
-
- // Used in macro registration.
- QByteArray pointerName(qmlName);
- pointerName.append('*');
- QByteArray listName(qmlName);
- listName.prepend("QQmlListProperty<");
- listName.append('>');
-
- bool registered = false;
- PY_REGISTER_IF_INHERITS_FROM(QQuickPaintedItem, pyObjType, pointerName, listName, metaObject,
- type, registered);
- PY_REGISTER_IF_INHERITS_FROM(QQuickFramebufferObject, pyObjType, pointerName, listName,
- metaObject, type, registered);
- PY_REGISTER_IF_INHERITS_FROM(QQuickItem, pyObjType, pointerName, listName, metaObject,
- type, registered);
- if (!registered)
- return false;
-
- type->create = createFuncs[nextType];
- type->version = 0;
- type->uri = uri;
- type->versionMajor = versionMajor;
- type->versionMinor = versionMinor;
- type->elementName = qmlName;
- type->metaObject = metaObject;
-
- type->extensionObjectCreate = 0;
- type->extensionMetaObject = 0;
- type->customParser = 0;
-
- ++nextType;
- return true;
-}
-
-void PySide::initQuickSupport(PyObject *module)
-{
- Q_UNUSED(module);
- ElementFactory<PYSIDE_MAX_QUICK_TYPES - 1>::init();
-#ifdef PYSIDE_QML_SUPPORT
- setQuickRegisterItemFunction(quickRegisterType);
-#endif
-}
diff --git a/sources/pyside2/PySide2/QtQuick/pysidequickregistertype.h b/sources/pyside2/PySide2/QtQuick/pysidequickregistertype.h
deleted file mode 100644
index 1955413b2..000000000
--- a/sources/pyside2/PySide2/QtQuick/pysidequickregistertype.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef PYSIDE_QUICK_REGISTER_TYPE_H
-#define PYSIDE_QUICK_REGISTER_TYPE_H
-
-#include <sbkpython.h>
-
-struct SbkObjectType;
-
-namespace PySide
-{
-void initQuickSupport(PyObject *module);
-}
-
-#endif // PYSIDE_QUICK_REGISTER_TYPE_H
diff --git a/sources/pyside2/PySide2/QtQuick/typesystem_quick.xml b/sources/pyside2/PySide2/QtQuick/typesystem_quick.xml
deleted file mode 100644
index 223eff773..000000000
--- a/sources/pyside2/PySide2/QtQuick/typesystem_quick.xml
+++ /dev/null
@@ -1,175 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtQuick">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="QtNetwork/typesystem_network.xml" generate="no"/>
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
- <load-typesystem name="QtQml/typesystem_qml.xml" generate="no"/>
-
- <smart-pointer-type name="QSharedPointer" type="shared" getter="data"/>
-
- <extra-includes>
- <include file-name="pysidequickregistertype.h" location="local"/>
- </extra-includes>
-
- <inject-code class="target" position="end" file="../glue/qtquick.cpp" snippet="qtquick"/>
-
- <object-type name="QQuickAsyncImageProvider" since="5.6"/>
-
- <object-type name="QQuickFramebufferObject">
- <object-type name="Renderer"/>
- </object-type>
-
- <object-type name="QQuickTextureFactory"/>
- <object-type name="QQuickImageProvider"/>
- <object-type name="QQuickImageResponse" since="5.6"/>
-
- <object-type name="QQuickTransform"/>
- <object-type name="QQuickItem" delete-in-main-thread="true">
- <value-type name="UpdatePaintNodeData"/>
- <enum-type name="Flag" flags="Flags"/>
- <enum-type name="ItemChange"/>
- <enum-type name="TransformOrigin"/>
- <modify-function signature="itemTransform(QQuickItem*,bool*)const" allow-thread="yes">
- <modify-argument index="2">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyTuple"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- <!-- TODO: Find a way to wrap `union ItemChangeData {}` -->
- </object-type>
-
- <object-type name="QQuickItemGrabResult"/>
-
- <object-type name="QQuickPaintedItem">
- <enum-type name="RenderTarget"/>
- <enum-type name="PerformanceHint" flags="PerformanceHints"/>
- </object-type>
-
- <object-type name="QQuickRenderControl"/>
-
- <object-type name="QQuickTextDocument"/>
-
- <object-type name="QQuickView">
- <enum-type name="ResizeMode"/>
- <enum-type name="Status"/>
- </object-type>
-
- <object-type name="QQuickWindow">
- <enum-type name="CreateTextureOption" flags="CreateTextureOptions"/>
- <enum-type name="NativeObjectType" since="5.14"/>
- <enum-type name="RenderStage"/>
- <enum-type name="SceneGraphError"/>
- <enum-type name="TextRenderType" since="5.10"/>
- </object-type>
-
- <object-type name="QSGAbstractRenderer">
- <enum-type name="ClearModeBit" flags="ClearMode"/>
- <enum-type name="MatrixTransformFlag" flags="MatrixTransformFlags" since="5.14"/>
- </object-type>
- <object-type name="QSGBasicGeometryNode"/>
- <object-type name="QSGClipNode"/>
- <object-type name="QSGDynamicTexture"/>
- <object-type name="QSGEngine">
- <enum-type name="CreateTextureOption" flags="CreateTextureOptions"/>
- </object-type>
- <!-- <object-type name="QSGFlatColorMaterial"/> -->
- <object-type name="QSGGeometry">
- <enum-type name="DataPattern"/>
- <enum-type name="AttributeType" since="5.8"/>
- <enum-type name="DrawingMode" since="5.8"/>
- <enum-type name="Type" since="5.8"/>
- <value-type name="Attribute"/>
- <value-type name="AttributeSet"/>
- <value-type name="ColoredPoint2D"/>
- <value-type name="Point2D"/>
- <value-type name="TexturedPoint2D"/>
- </object-type>
- <object-type name="QSGGeometryNode"/>
-
- <!-- QSGMaterialShader doesn't compile because of const char * char * types not being recognized
- by the C++ parser, nor the generator.
- <object-type name="QSGMaterial">
- <enum-type name="Flag" flags="Flags"/>
- </object-type>
- <object-type name="QSGMaterialShader"/>
- <value-type name="QSGMaterialShader::RenderState">
- <enum-type name="DirtyState" flags="DirtyStates"/>
- </value-type>
- -->
- <object-type name="QSGMaterialType"/>
- <object-type name="QSGNode">
- <enum-type name="DirtyStateBit" flags="DirtyState"/>
- <enum-type name="Flag" flags="Flags"/>
- <enum-type name="NodeType"/>
- </object-type>
- <object-type name="QSGOpacityNode"/>
- <!-- <object-type name="QSGOpaqueTextureMaterial"/> -->
- <object-type name="QSGSimpleRectNode"/>
- <object-type name="QSGSimpleTextureNode">
- <enum-type name="TextureCoordinatesTransformFlag" flags="TextureCoordinatesTransformMode"/>
- </object-type>
- <object-type name="QSGTexture">
- <enum-type name="AnisotropyLevel" since="5.9"/>
- <enum-type name="Filtering"/>
- <enum-type name="WrapMode"/>
- </object-type>
- <!-- <object-type name="QSGTextureMaterial"/> -->
- <object-type name="QSGTextureProvider"/>
- <object-type name="QSGTransformNode"/>
- <!-- <object-type name="QSGVertexColorMaterial"/> -->
-
- <!-- These currently don't work because they are template classes, and the generator chokes on
- them. Making these work properly would require fixing the parsing of template classes,
- allowing creation of State structures and passing them to the template classes, as well as
- implementing some mechanism of registration of the custom template classes, kind of how
- it's done for qt quick items.
- <object-type name="QSGSimpleMaterial"/>
- <object-type name="QSGSimpleMaterialShader"/>
- -->
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtQuickControls2/CMakeLists.txt b/sources/pyside2/PySide2/QtQuickControls2/CMakeLists.txt
deleted file mode 100644
index 8321d8a3e..000000000
--- a/sources/pyside2/PySide2/QtQuickControls2/CMakeLists.txt
+++ /dev/null
@@ -1,41 +0,0 @@
-project(QtQuickControls2)
-
-set(QtQuickControls2_SRC
-${QtQuickControls2_GEN_DIR}/qquickstyle_wrapper.cpp
-# module is always needed
-${QtQuickControls2_GEN_DIR}/qtquickcontrols2_module_wrapper.cpp
-)
-
-
-set(QtQuickControls2_include_dirs ${QtQuickControls2_SOURCE_DIR}
- ${QtQml_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Network_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Qml_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Quick_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}QuickControls2_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtGui_GEN_DIR}
- ${QtCore_GEN_DIR}
- ${QtNetwork_GEN_DIR}
- ${QtQml_GEN_DIR}
- ${QtQuick_GEN_DIR}
- ${QtQuickControls2_GEN_DIR})
-
-set(QtQuickControls2_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Network_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Qml_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Quick_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}QuickControls2_LIBRARIES})
-
-set(QtQuickControls2_deps QtGui QtNetwork QtQml QtQuick)
-
-create_pyside_module(NAME QtQuickControls2
- INCLUDE_DIRS QtQuickControls2_include_dirs
- LIBRARIES QtQuickControls2_libraries
- DEPS QtQuickControls2_deps
- TYPESYSTEM_PATH QtQuickControls2_SOURCE_DIR
- SOURCES QtQuickControls2_SRC)
diff --git a/sources/pyside2/PySide2/QtQuickControls2/typesystem_quickcontrols2.xml b/sources/pyside2/PySide2/QtQuickControls2/typesystem_quickcontrols2.xml
deleted file mode 100644
index 51d42b46b..000000000
--- a/sources/pyside2/PySide2/QtQuickControls2/typesystem_quickcontrols2.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtQuickControls2">
- <load-typesystem name="QtQuick/typesystem_quick.xml" generate="no"/>
-
- <object-type name="QQuickStyle" since="5.7"/>
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtQuickWidgets/CMakeLists.txt b/sources/pyside2/PySide2/QtQuickWidgets/CMakeLists.txt
deleted file mode 100644
index 4da9bf838..000000000
--- a/sources/pyside2/PySide2/QtQuickWidgets/CMakeLists.txt
+++ /dev/null
@@ -1,43 +0,0 @@
-project(QtQuickWidgets)
-
-set(QtQuickWidgets_SRC
-${QtQuickWidgets_GEN_DIR}/qquickwidget_wrapper.cpp
-# module is always needed
-${QtQuickWidgets_GEN_DIR}/qtquickwidgets_module_wrapper.cpp
-)
-
-set(QtQuickWidgets_include_dirs ${QtQuickWidgets_SOURCE_DIR}
- ${QtQml_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Network_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Quick_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Qml_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}QuickWidgets_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtGui_GEN_DIR}
- ${QtCore_GEN_DIR}
- ${QtWidgets_GEN_DIR}
- ${QtNetwork_GEN_DIR}
- ${QtQuick_GEN_DIR}
- ${QtQml_GEN_DIR}
- ${QtQuickWidgets_GEN_DIR})
-
-set(QtQuickWidgets_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Network_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Quick_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Qml_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}QuickWidgets_LIBRARIES})
-
-set(QtQuickWidgets_deps QtGui QtQml QtQuick QtWidgets QtNetwork)
-
-create_pyside_module(NAME QtQuickWidgets
- INCLUDE_DIRS QtQuickWidgets_include_dirs
- LIBRARIES QtQuickWidgets_libraries
- DEPS QtQuickWidgets_deps
- TYPESYSTEM_PATH QtQuickWidgets_SOURCE_DIR
- SOURCES QtQuickWidgets_SRC)
diff --git a/sources/pyside2/PySide2/QtQuickWidgets/typesystem_quickwidgets.xml b/sources/pyside2/PySide2/QtQuickWidgets/typesystem_quickwidgets.xml
deleted file mode 100644
index b272eec19..000000000
--- a/sources/pyside2/PySide2/QtQuickWidgets/typesystem_quickwidgets.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtQuickWidgets">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
- <load-typesystem name="QtQuick/typesystem_quick.xml" generate="no"/>
- <load-typesystem name="QtQml/typesystem_qml.xml" generate="no"/>
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
-
-
- <object-type name="QQuickWidget">
- <enum-type name="ResizeMode"/>
- <enum-type name="Status"/>
- </object-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtRemoteObjects/CMakeLists.txt b/sources/pyside2/PySide2/QtRemoteObjects/CMakeLists.txt
deleted file mode 100644
index d8fd6674f..000000000
--- a/sources/pyside2/PySide2/QtRemoteObjects/CMakeLists.txt
+++ /dev/null
@@ -1,44 +0,0 @@
-project(QtRemoteObjects)
-
-set(QtRemoteObjects_SRC
-${QtRemoteObjects_GEN_DIR}/qabstractitemmodelreplica_wrapper.cpp
-${QtRemoteObjects_GEN_DIR}/qremoteobjectabstractpersistedstore_wrapper.cpp
-${QtRemoteObjects_GEN_DIR}/qremoteobjectdynamicreplica_wrapper.cpp
-${QtRemoteObjects_GEN_DIR}/qremoteobjecthost_wrapper.cpp
-${QtRemoteObjects_GEN_DIR}/qremoteobjecthostbase_wrapper.cpp
-${QtRemoteObjects_GEN_DIR}/qremoteobjectnode_wrapper.cpp
-${QtRemoteObjects_GEN_DIR}/qremoteobjectpendingcall_wrapper.cpp
-${QtRemoteObjects_GEN_DIR}/qremoteobjectpendingcallwatcher_wrapper.cpp
-${QtRemoteObjects_GEN_DIR}/qremoteobjectregistry_wrapper.cpp
-${QtRemoteObjects_GEN_DIR}/qremoteobjectregistryhost_wrapper.cpp
-${QtRemoteObjects_GEN_DIR}/qremoteobjectreplica_wrapper.cpp
-# ${QtRemoteObjects_GEN_DIR}/qtremoteobjects_wrapper.cpp
-${QtRemoteObjects_GEN_DIR}/qremoteobjectsettingsstore_wrapper.cpp
-
-# module is always needed
-${QtRemoteObjects_GEN_DIR}/qtremoteobjects_module_wrapper.cpp
-)
-
-set(QtRemoteObjects_include_dirs ${QtRemoteObjects_SOURCE_DIR}
- ${QtRemoteObjects_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}RemoteObjects_INCLUDE_DIRS}
- ${SHIBOKEN_INCLUDE_DIR}
- ${libpyside_SOURCE_DIR}
- ${SHIBOKEN_PYTHON_INCLUDE_DIR}
- ${QtCore_GEN_DIR})
-
-set(QtRemoteObjects_libraries pyside2
- ${SHIBOKEN_PYTHON_LIBRARIES}
- ${SHIBOKEN_LIBRARY}
- ${Qt${QT_MAJOR_VERSION}RemoteObjects_LIBRARIES})
-
-set(QtRemoteObjects_deps QtCore QtNetwork)
-
-create_pyside_module(NAME QtRemoteObjects
- INCLUDE_DIRS QtRemoteObjects_include_dirs
- LIBRARIES QtRemoteObjects_libraries
- DEPS QtRemoteObjects_deps
- TYPESYSTEM_PATH QtRemoteObjects_SOURCE_DIR
- SOURCES QtRemoteObjects_SRC
- TYPESYSTEM_NAME ${QtRemoteObjects_BINARY_DIR}/typesystem_remoteobjects.xml
- )
diff --git a/sources/pyside2/PySide2/QtRemoteObjects/typesystem_remoteobjects.xml b/sources/pyside2/PySide2/QtRemoteObjects/typesystem_remoteobjects.xml
deleted file mode 100644
index d8d54b4fb..000000000
--- a/sources/pyside2/PySide2/QtRemoteObjects/typesystem_remoteobjects.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtRemoteObjects">
- <load-typesystem name="templates/core_common.xml" generate="no"/>
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <rejection class="*" function-name="getTypeNameAndMetaobjectFromClassInfo"/>
-<!-- Exclude namespace due to Q_NAMESPACE link errors on Windows (QTBUG-68014)
- <rejection class="QtRemoteObjects" field-name="staticMetaObject"/>
- <namespace-type name="QtRemoteObjects">
- <enum-type name="InitialAction"/>
- <enum-type name="QRemoteObjectPacketTypeEnum"/>
- </namespace-type>
--->
- <object-type name="QAbstractItemModelReplica"/>
- <object-type name="QRemoteObjectAbstractPersistedStore"/>
- <object-type name="QRemoteObjectDynamicReplica"/>
- <object-type name="QRemoteObjectHost"/>
- <object-type name="QRemoteObjectHostBase">
- <enum-type name="AllowedSchemas"/>
- </object-type>
- <object-type name="QRemoteObjectNode">
- <enum-type name="ErrorCode"/>
- </object-type>
- <object-type name="QRemoteObjectPendingCall">
- <enum-type name="Error"/>
- </object-type>
- <object-type name="QRemoteObjectPendingCallWatcher"/>
- <object-type name="QRemoteObjectRegistry"/>
- <object-type name="QRemoteObjectRegistryHost"/>
- <object-type name="QRemoteObjectReplica">
- <enum-type name="State"/>
- <!-- protected: <enum-type name="ConstructorType"/> -->
- </object-type>
- <object-type name="QRemoteObjectSettingsStore"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtScript/CMakeLists.txt b/sources/pyside2/PySide2/QtScript/CMakeLists.txt
deleted file mode 100644
index 81d6c03d3..000000000
--- a/sources/pyside2/PySide2/QtScript/CMakeLists.txt
+++ /dev/null
@@ -1,42 +0,0 @@
-project(QtScript)
-
-set(QtScript_SRC
-${QtScript_GEN_DIR}/qscriptable_wrapper.cpp
-${QtScript_GEN_DIR}/qscriptclass_wrapper.cpp
-${QtScript_GEN_DIR}/qscriptclasspropertyiterator_wrapper.cpp
-${QtScript_GEN_DIR}/qscriptcontext_wrapper.cpp
-${QtScript_GEN_DIR}/qscriptcontextinfo_wrapper.cpp
-${QtScript_GEN_DIR}/qscriptengineagent_wrapper.cpp
-${QtScript_GEN_DIR}/qscriptprogram_wrapper.cpp
-${QtScript_GEN_DIR}/qscriptengine_wrapper.cpp
-${QtScript_GEN_DIR}/qscriptextensioninterface_wrapper.cpp
-${QtScript_GEN_DIR}/qscriptextensionplugin_wrapper.cpp
-${QtScript_GEN_DIR}/qscriptstring_wrapper.cpp
-${QtScript_GEN_DIR}/qscriptvalue_wrapper.cpp
-${QtScript_GEN_DIR}/qscriptvalueiterator_wrapper.cpp
-# module is always needed
-${QtScript_GEN_DIR}/qtscript_module_wrapper.cpp
-)
-
-set(QtScript_glue_sources
- "${QtScript_SOURCE_DIR}/qscript_value_iterator_glue.cpp"
-)
-
-set(QtScript_include_dirs ${QtScript_SOURCE_DIR}
- ${QtScript_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Script_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- )
-set(QtScript_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Script_LIBRARIES})
-set(QtScript_deps QtCore)
-create_pyside_module(NAME QtScript
- INCLUDE_DIRS QtScript_include_dirs
- LIBRARIES QtScript_libraries
- DEPS QtScript_deps
- TYPESYSTEM_PATH QtScript_SOURCE_DIR
- SOURCES QtScript_SRC
- GLUE_SOURCES QtScript_glue_sources)
diff --git a/sources/pyside2/PySide2/QtScript/qscript_value_iterator_glue.cpp b/sources/pyside2/PySide2/QtScript/qscript_value_iterator_glue.cpp
deleted file mode 100644
index 11dfd19b0..000000000
--- a/sources/pyside2/PySide2/QtScript/qscript_value_iterator_glue.cpp
+++ /dev/null
@@ -1,3 +0,0 @@
-%PYARG_0 = Shiboken::Object::newObject(
- reinterpret_cast<SbkObjectType *>(Shiboken::SbkType< ::QScriptValueIterator >()),
- new QScriptValueIterator(*%CPPSELF), true, true);
diff --git a/sources/pyside2/PySide2/QtScript/typesystem_script.xml b/sources/pyside2/PySide2/QtScript/typesystem_script.xml
deleted file mode 100644
index 1fdad5d47..000000000
--- a/sources/pyside2/PySide2/QtScript/typesystem_script.xml
+++ /dev/null
@@ -1,105 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtScript">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
-
- <object-type name="QScriptable"/>
- <object-type name="QScriptClass">
- <enum-type name="Extension"/>
- <enum-type name="QueryFlag"/>
- </object-type>
- <object-type name="QScriptClassPropertyIterator"/>
- <object-type name="QScriptContext">
- <enum-type name="Error"/>
- <enum-type name="ExecutionState"/>
- </object-type>
- <value-type name="QScriptContextInfo">
- <enum-type name="FunctionType"/>
- </value-type>
- <object-type name="QScriptEngineAgent">
- <enum-type name="Extension"/>
- </object-type>
- <object-type name="QScriptEngine">
- <enum-type name="QObjectWrapOption" flags="QObjectWrapOptions"/>
- <enum-type name="ValueOwnership"/>
- <!-- Not supported BUG #957-->
- <modify-function signature="scriptValueFromQMetaObject()" remove="all"/>
- </object-type>
- <object-type name="QScriptExtensionInterface"/>
- <object-type name="QScriptExtensionPlugin"/>
- <value-type name="QScriptProgram" since="4.7"/>
- <value-type name="QScriptString">
- <modify-function signature="toArrayIndex(bool*)const">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_bool*"/>
- </inject-code>
- </modify-function>
- </value-type>
- <value-type name="QScriptValue">
- <enum-type name="PropertyFlag" flags="PropertyFlags"/>
- <enum-type name="ResolveFlag" flags="ResolveFlags"/>
- <enum-type name="SpecialValue"/>
- <add-function signature="__repr__" return-type="PyObject*">
- <inject-code class="target" position="beginning" file="../glue/qtscript.cpp" snippet="qscriptvalue-repr"/>
- </add-function>
- <add-function signature="__mgetitem__">
- <inject-code file="../glue/qtscript.cpp" snippet="qscriptvalue-mgetitem"/>
- </add-function>
- <add-function signature="__iter__()" return-type="PyObject*">
- <inject-code file="qscript_value_iterator_glue.cpp"/>
- </add-function>
- </value-type>
- <object-type name="QScriptValueIterator">
- <add-function signature="__iter__()" return-type="PyObject*">
- <inject-code>
- <insert-template name="__iter__"/>
- </inject-code>
- </add-function>
- <add-function signature="__next__()" return-type="PyObject*">
- <inject-code file="../glue/qtscript.cpp" snippet="qscriptvalueiterator-next"/>
- </add-function>
- </object-type>
-</typesystem>
-
diff --git a/sources/pyside2/PySide2/QtScriptTools/CMakeLists.txt b/sources/pyside2/PySide2/QtScriptTools/CMakeLists.txt
deleted file mode 100644
index 7c19856cb..000000000
--- a/sources/pyside2/PySide2/QtScriptTools/CMakeLists.txt
+++ /dev/null
@@ -1,37 +0,0 @@
-project(QtScriptTools)
-
-set(QtScriptTools_SRC
-${QtScriptTools_GEN_DIR}/qscriptenginedebugger_wrapper.cpp
-# module is always needed
-${QtScriptTools_GEN_DIR}/qtscripttools_module_wrapper.cpp
-)
-
-set(QtScriptTools_include_dirs ${QtScriptTools_SOURCE_DIR}
- ${QtScriptTools_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Script_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}ScriptTools_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtWidgets_GEN_DIR}
- ${QtScript_GEN_DIR}
- )
-
-set(QtScriptTools_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Script_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}ScriptTools_LIBRARIES})
-
-set(QtScriptTools_deps QtCore QtScript QtGui QtWidgets)
-
-create_pyside_module(NAME QtScriptTools
- INCLUDE_DIRS QtScriptTools_include_dirs
- LIBRARIES QtScriptTools_libraries
- DEPS QtScriptTools_deps
- TYPESYSTEM_PATH QtScriptTools_SOURCE_DIR
- SOURCES QtScriptTools_SRC)
diff --git a/sources/pyside2/PySide2/QtScriptTools/typesystem_scripttools.xml b/sources/pyside2/PySide2/QtScriptTools/typesystem_scripttools.xml
deleted file mode 100644
index eefa09a54..000000000
--- a/sources/pyside2/PySide2/QtScriptTools/typesystem_scripttools.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtScriptTools">
- <load-typesystem name="QtScript/typesystem_script.xml" generate="no"/>
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
-
- <object-type name="QScriptEngineDebugger">
- <enum-type name="DebuggerAction"/>
- <enum-type name="DebuggerState" since="4.6"/>
- <enum-type name="DebuggerWidget"/>
- <extra-includes>
- <include file-name="QScriptEngine" location="global"/>
- </extra-includes>
- </object-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtScxml/CMakeLists.txt b/sources/pyside2/PySide2/QtScxml/CMakeLists.txt
deleted file mode 100644
index 732253bba..000000000
--- a/sources/pyside2/PySide2/QtScxml/CMakeLists.txt
+++ /dev/null
@@ -1,55 +0,0 @@
-project(QtScxml)
-
-set(QtScxml_OPTIONAL_SRC )
-set(QtScxml_DROPPED_ENTRIES )
-
-set(QtScxml_SRC
-${QtScxml_GEN_DIR}/qscxmlcompiler_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmlcompiler_loader_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmlevent_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmldynamicscxmlservicefactory_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmlinvokableservice_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmlinvokableservicefactory_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmlstaticscxmlservicefactory_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmlstatemachine_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmltabledata_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmlerror_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmlexecutablecontent_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmlexecutablecontent_assignmentinfo_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmlexecutablecontent_evaluatorinfo_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmlexecutablecontent_foreachinfo_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmlexecutablecontent_invokeinfo_wrapper.cpp
-${QtScxml_GEN_DIR}/qscxmlexecutablecontent_parameterinfo_wrapper.cpp
-# module is always needed
-${QtScxml_GEN_DIR}/qtscxml_module_wrapper.cpp
-)
-
-if (Qt${QT_MAJOR_VERSION}Scxml_VERSION VERSION_EQUAL 5.12.0
- OR Qt${QT_MAJOR_VERSION}Scxml_VERSION VERSION_GREATER 5.12.0)
- list(APPEND QtScxml_SRC
- ${QtScxml_GEN_DIR}/qscxmldatamodel_wrapper.cpp
- ${QtScxml_GEN_DIR}/qscxmldatamodel_foreachloopbody_wrapper.cpp
- ${QtScxml_GEN_DIR}/qscxmlecmascriptdatamodel_wrapper.cpp
- ${QtScxml_GEN_DIR}/qscxmlcppdatamodel_wrapper.cpp
- ${QtScxml_GEN_DIR}/qscxmlnulldatamodel_wrapper.cpp)
-endif()
-
-set(QtScxml_include_dirs ${QtScxml_SOURCE_DIR}
- ${QtScxml_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Scxml_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR})
-
-set(QtScxml_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Scxml_LIBRARIES})
-
-set(QtScxml_deps QtCore)
-
-create_pyside_module(NAME QtScxml
- INCLUDE_DIRS QtScxml_include_dirs
- LIBRARIES QtScxml_libraries
- DEPS QtScxml_deps
- TYPESYSTEM_PATH QtScxml_SOURCE_DIR
- SOURCES QtScxml_SRC
- DROPPED_ENTRIES QtScxml_DROPPED_ENTRIES)
diff --git a/sources/pyside2/PySide2/QtScxml/typesystem_scxml.xml b/sources/pyside2/PySide2/QtScxml/typesystem_scxml.xml
deleted file mode 100644
index c00052c2f..000000000
--- a/sources/pyside2/PySide2/QtScxml/typesystem_scxml.xml
+++ /dev/null
@@ -1,86 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtScxml">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <object-type name="QScxmlCompiler">
- <object-type name="Loader"/>
- </object-type>
- <object-type name="QScxmlCppDataModel" since="5.12"/>
- <object-type name="QScxmlEvent">
- <enum-type name="EventType"/>
- </object-type>
- <object-type name="QScxmlDynamicScxmlServiceFactory"/>
- <object-type name="QScxmlInvokableService"/>
- <object-type name="QScxmlInvokableServiceFactory"/>
- <object-type name="QScxmlStaticScxmlServiceFactory"/>
- <object-type name="QScxmlStateMachine">
- <modify-function signature="submitEvent(QScxmlEvent*)">
- <modify-argument index="1">
- <define-ownership owner="c++"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QScxmlTableData"/>
- <object-type name="QScxmlDataModel" since="5.12">
- <!-- Needs to have exports fixed -->
- <interface-type name="ForeachLoopBody" since="5.12"/>
- <modify-function signature="^evaluateTo(String|Bool|Variant)\(.*bool ?\*.*$">
- <modify-argument index="2">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,arg,bool*"/>
- </inject-code>
- </modify-function>
- </object-type>
- <object-type name="QScxmlEcmaScriptDataModel" since="5.12"/>
- <value-type name="QScxmlError"/>
- <namespace-type name="QScxmlExecutableContent">
- <value-type name="AssignmentInfo"/>
- <value-type name="EvaluatorInfo"/>
- <value-type name="ForeachInfo"/>
- <value-type name="InvokeInfo"/>
- <value-type name="ParameterInfo"/>
- </namespace-type>
- <object-type name="QScxmlNullDataModel" since="5.12"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtSensors/CMakeLists.txt b/sources/pyside2/PySide2/QtSensors/CMakeLists.txt
deleted file mode 100644
index 0bd6260b7..000000000
--- a/sources/pyside2/PySide2/QtSensors/CMakeLists.txt
+++ /dev/null
@@ -1,100 +0,0 @@
-project(QtSensors)
-
-set(QtSensors_OPTIONAL_SRC )
-set(QtSensors_DROPPED_ENTRIES )
-
-set(QtSensors_SRC
-# overrides QObject::metaObject() by private method
-# ${QtSensors_GEN_DIR}/qsensorgesture_wrapper.cpp
- ${QtSensors_GEN_DIR}/qsensorgesturemanager_wrapper.cpp
- ${QtSensors_GEN_DIR}/qsensorgestureplugininterface_wrapper.cpp
- ${QtSensors_GEN_DIR}/qsensorgesturerecognizer_wrapper.cpp
- ${QtSensors_GEN_DIR}/qaccelerometer_wrapper.cpp
- ${QtSensors_GEN_DIR}/qaccelerometerfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qaccelerometerreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qaltimeter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qaltimeterfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qaltimeterreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qambientlightfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qambientlightreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qambientlightsensor_wrapper.cpp
- ${QtSensors_GEN_DIR}/qambienttemperaturefilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qambienttemperaturereading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qambienttemperaturesensor_wrapper.cpp
- ${QtSensors_GEN_DIR}/qcompass_wrapper.cpp
- ${QtSensors_GEN_DIR}/qcompassfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qcompassreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qdistancefilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qdistancereading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qdistancesensor_wrapper.cpp
- ${QtSensors_GEN_DIR}/qgyroscope_wrapper.cpp
- ${QtSensors_GEN_DIR}/qgyroscopefilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qgyroscopereading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qholsterfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qholsterreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qholstersensor_wrapper.cpp
- ${QtSensors_GEN_DIR}/qhumidityfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qhumidityreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qhumiditysensor_wrapper.cpp
- ${QtSensors_GEN_DIR}/qirproximityfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qirproximityreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qirproximitysensor_wrapper.cpp
- ${QtSensors_GEN_DIR}/qlidfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qlidreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qlidsensor_wrapper.cpp
- ${QtSensors_GEN_DIR}/qlightfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qlightreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qlightsensor_wrapper.cpp
- ${QtSensors_GEN_DIR}/qmagnetometer_wrapper.cpp
- ${QtSensors_GEN_DIR}/qmagnetometerfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qmagnetometerreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qorientationfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qorientationreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qorientationsensor_wrapper.cpp
- ${QtSensors_GEN_DIR}/qpressurefilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qpressurereading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qpressuresensor_wrapper.cpp
- ${QtSensors_GEN_DIR}/qproximityfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qproximityreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qproximitysensor_wrapper.cpp
- ${QtSensors_GEN_DIR}/qrotationfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qrotationreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qrotationsensor_wrapper.cpp
- ${QtSensors_GEN_DIR}/qsensor_wrapper.cpp
- ${QtSensors_GEN_DIR}/qsensorfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qsensorreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qoutputrange_wrapper.cpp
- ${QtSensors_GEN_DIR}/qsensorbackend_wrapper.cpp
- ${QtSensors_GEN_DIR}/qsensorbackendfactory_wrapper.cpp
- ${QtSensors_GEN_DIR}/qsensormanager_wrapper.cpp
- ${QtSensors_GEN_DIR}/qsensorchangesinterface_wrapper.cpp
- ${QtSensors_GEN_DIR}/qsensorplugininterface_wrapper.cpp
- ${QtSensors_GEN_DIR}/qtapfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qtapreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qtapsensor_wrapper.cpp
- ${QtSensors_GEN_DIR}/qtiltfilter_wrapper.cpp
- ${QtSensors_GEN_DIR}/qtiltreading_wrapper.cpp
- ${QtSensors_GEN_DIR}/qtiltsensor_wrapper.cpp
-# module is always needed
- ${QtSensors_GEN_DIR}/qtsensors_module_wrapper.cpp
-)
-
-set(QtSensors_include_dirs ${QtSensors_SOURCE_DIR}
- ${QtSensors_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Sensors_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR})
-
-set(QtSensors_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Sensors_LIBRARIES})
-
-set(QtSensors_deps QtCore)
-
-create_pyside_module(NAME QtSensors
- INCLUDE_DIRS QtSensors_include_dirs
- LIBRARIES QtSensors_libraries
- DEPS QtSensors_deps
- TYPESYSTEM_PATH QtSensors_SOURCE_DIR
- SOURCES QtSensors_SRC
- DROPPED_ENTRIES QtSensors_DROPPED_ENTRIES)
diff --git a/sources/pyside2/PySide2/QtSensors/typesystem_sensors.xml b/sources/pyside2/PySide2/QtSensors/typesystem_sensors.xml
deleted file mode 100644
index 31c0d2f53..000000000
--- a/sources/pyside2/PySide2/QtSensors/typesystem_sensors.xml
+++ /dev/null
@@ -1,127 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtSensors">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
-<!-- overrides QObject::metaObject() by private method
- <object-type name="QSensorGesture"/>
--->
- <object-type name="QSensorGestureManager"/>
- <object-type name="QSensorGesturePluginInterface"/>
- <object-type name="QSensorGestureRecognizer"/>
- <object-type name="QAccelerometer">
- <enum-type name="AccelerationMode"/>
- </object-type>
- <object-type name="QAccelerometerFilter"/>
- <object-type name="QAccelerometerReading"/>
- <object-type name="QAltimeter"/>
- <object-type name="QAltimeterFilter"/>
- <object-type name="QAltimeterReading"/>
- <object-type name="QAmbientLightFilter"/>
- <object-type name="QAmbientLightReading">
- <enum-type name="LightLevel"/>
- </object-type>
- <object-type name="QAmbientLightSensor"/>
- <object-type name="QAmbientTemperatureFilter"/>
- <object-type name="QAmbientTemperatureReading"/>
- <object-type name="QAmbientTemperatureSensor"/>
- <object-type name="QCompass"/>
- <object-type name="QCompassFilter"/>
- <object-type name="QCompassReading"/>
- <object-type name="QDistanceFilter"/>
- <object-type name="QDistanceReading"/>
- <object-type name="QDistanceSensor"/>
- <object-type name="QGyroscope"/>
- <object-type name="QGyroscopeFilter"/>
- <object-type name="QGyroscopeReading"/>
- <object-type name="QHolsterFilter"/>
- <object-type name="QHolsterReading"/>
- <object-type name="QHolsterSensor"/>
- <object-type name="QHumidityFilter"/>
- <object-type name="QHumidityReading"/>
- <object-type name="QHumiditySensor"/>
- <object-type name="QIRProximityFilter"/>
- <object-type name="QIRProximityReading"/>
- <object-type name="QIRProximitySensor"/>
- <object-type name="QLidFilter"/>
- <object-type name="QLidReading"/>
- <object-type name="QLidSensor"/>
- <object-type name="QLightFilter"/>
- <object-type name="QLightReading"/>
- <object-type name="QLightSensor"/>
- <object-type name="QMagnetometer"/>
- <object-type name="QMagnetometerFilter"/>
- <object-type name="QMagnetometerReading"/>
- <object-type name="QOrientationFilter"/>
- <object-type name="QOrientationReading">
- <enum-type name="Orientation"/>
- </object-type>
- <object-type name="QOrientationSensor"/>
- <object-type name="QPressureFilter"/>
- <object-type name="QPressureReading"/>
- <object-type name="QPressureSensor"/>
- <object-type name="QProximityFilter"/>
- <object-type name="QProximityReading"/>
- <object-type name="QProximitySensor"/>
- <object-type name="QRotationFilter"/>
- <object-type name="QRotationReading"/>
- <object-type name="QRotationSensor"/>
- <object-type name="QSensor">
- <enum-type name="Feature"/>
- <enum-type name="AxesOrientationMode"/>
- </object-type>
- <object-type name="QSensorFilter"/>
- <object-type name="QSensorReading"/>
- <value-type name="qoutputrange"/>
- <object-type name="QSensorBackend"/>
- <object-type name="QSensorBackendFactory"/>
- <object-type name="QSensorManager"/>
- <object-type name="QSensorChangesInterface"/>
- <object-type name="QSensorPluginInterface"/>
- <object-type name="QTapFilter"/>
- <object-type name="QTapReading">
- <enum-type name="TapDirection"/>
- </object-type>
- <object-type name="QTapSensor"/>
- <object-type name="QTiltFilter"/>
- <object-type name="QTiltReading"/>
- <object-type name="QTiltSensor"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtSerialPort/CMakeLists.txt b/sources/pyside2/PySide2/QtSerialPort/CMakeLists.txt
deleted file mode 100644
index 5242cad4a..000000000
--- a/sources/pyside2/PySide2/QtSerialPort/CMakeLists.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-project(QtSerialPort)
-
-set(QtSerialPort_OPTIONAL_SRC )
-set(QtSerialPort_DROPPED_ENTRIES )
-
-set(QtSerialPort_SRC
- ${QtSerialPort_GEN_DIR}/qserialport_wrapper.cpp
- ${QtSerialPort_GEN_DIR}/qserialportinfo_wrapper.cpp
-# module is always needed
- ${QtSerialPort_GEN_DIR}/qtserialport_module_wrapper.cpp
-)
-
-set(QtSerialPort_include_dirs ${QtSerialPort_SOURCE_DIR}
- ${QtSerialPort_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}SerialPort_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR})
-
-set(QtSerialPort_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}SerialPort_LIBRARIES})
-
-set(QtSerialPort_deps QtCore)
-
-create_pyside_module(NAME QtSerialPort
- INCLUDE_DIRS QtSerialPort_include_dirs
- LIBRARIES QtSerialPort_libraries
- DEPS QtSerialPort_deps
- TYPESYSTEM_PATH QtSerialPort_SOURCE_DIR
- SOURCES QtSerialPort_SRC
- DROPPED_ENTRIES QtSerialPort_DROPPED_ENTRIES)
diff --git a/sources/pyside2/PySide2/QtSerialPort/typesystem_serialport.xml b/sources/pyside2/PySide2/QtSerialPort/typesystem_serialport.xml
deleted file mode 100644
index 8548c543e..000000000
--- a/sources/pyside2/PySide2/QtSerialPort/typesystem_serialport.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtSerialPort">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <object-type name="QSerialPort">
- <enum-type name="BaudRate"/>
- <enum-type name="DataBits"/>
- <enum-type name="DataErrorPolicy"/>
- <enum-type name="Direction" flags="Directions"/>
- <enum-type name="FlowControl"/>
- <enum-type name="Parity"/>
- <enum-type name="PinoutSignal" flags="PinoutSignals"/>
- <enum-type name="SerialPortError"/>
- <enum-type name="StopBits"/>
- </object-type>
- <value-type name="QSerialPortInfo"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtSql/CMakeLists.txt b/sources/pyside2/PySide2/QtSql/CMakeLists.txt
deleted file mode 100644
index 40a253393..000000000
--- a/sources/pyside2/PySide2/QtSql/CMakeLists.txt
+++ /dev/null
@@ -1,49 +0,0 @@
-project(QtSql)
-
-set(QtSql_SRC
-${QtSql_GEN_DIR}/qsql_wrapper.cpp
-${QtSql_GEN_DIR}/qsqldatabase_wrapper.cpp
-${QtSql_GEN_DIR}/qsqldriver_wrapper.cpp
-${QtSql_GEN_DIR}/qsqldrivercreatorbase_wrapper.cpp
-${QtSql_GEN_DIR}/qsqlerror_wrapper.cpp
-${QtSql_GEN_DIR}/qsqlfield_wrapper.cpp
-${QtSql_GEN_DIR}/qsqlindex_wrapper.cpp
-${QtSql_GEN_DIR}/qsqlquery_wrapper.cpp
-${QtSql_GEN_DIR}/qsqlquerymodel_wrapper.cpp
-${QtSql_GEN_DIR}/qsqlrecord_wrapper.cpp
-${QtSql_GEN_DIR}/qsqlrelation_wrapper.cpp
-${QtSql_GEN_DIR}/qsqlrelationaldelegate_wrapper.cpp
-${QtSql_GEN_DIR}/qsqlrelationaltablemodel_wrapper.cpp
-${QtSql_GEN_DIR}/qsqlresult_wrapper.cpp
-${QtSql_GEN_DIR}/qsqltablemodel_wrapper.cpp
-# module is always needed
-${QtSql_GEN_DIR}/qtsql_module_wrapper.cpp
-)
-
-configure_file("${QtSql_SOURCE_DIR}/QtSql_global.pre.h.in"
- "${QtSql_BINARY_DIR}/QtSql_global.pre.h" @ONLY)
-
-set(QtSql_include_dirs ${QtSql_SOURCE_DIR}
- ${QtSql_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Sql_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtWidgets_GEN_DIR}
- )
-set(QtSql_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Sql_LIBRARIES})
-set(QtSql_deps QtWidgets)
-
-create_pyside_module(NAME QtSql
- INCLUDE_DIRS QtSql_include_dirs
- LIBRARIES QtSql_libraries
- DEPS QtSql_deps
- TYPESYSTEM_PATH QtSql_SOURCE_DIR
- SOURCES QtSql_SRC)
diff --git a/sources/pyside2/PySide2/QtSql/QtSql_global.pre.h.in b/sources/pyside2/PySide2/QtSql/QtSql_global.pre.h.in
deleted file mode 100644
index 0c20c1888..000000000
--- a/sources/pyside2/PySide2/QtSql/QtSql_global.pre.h.in
+++ /dev/null
@@ -1,5 +0,0 @@
-// QT_WIDGETS_LIB must be defined for QSqlRelationalDelegate to become visible.
-
-#if @Qt5Widgets_FOUND@
-# define QT_WIDGETS_LIB
-#endif
diff --git a/sources/pyside2/PySide2/QtSql/typesystem_sql.xml b/sources/pyside2/PySide2/QtSql/typesystem_sql.xml
deleted file mode 100644
index 408b5cdce..000000000
--- a/sources/pyside2/PySide2/QtSql/typesystem_sql.xml
+++ /dev/null
@@ -1,194 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtSql">
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
-
- <rejection class="QSqlDriverCreator"/>
- <rejection class="QSqlDriverPlugin"/>
- <rejection class="QSqlDriverFactoryInterface"/>
-
- <namespace-type name="QSql">
- <enum-type name="Location"/>
- <enum-type name="ParamTypeFlag" flags="ParamType"/>
- <enum-type name="TableType"/>
- <enum-type name="NumericalPrecisionPolicy"/>
- <extra-includes>
- <include file-name="QtSql/qtsqlglobal.h" location="global"/>
- </extra-includes>
- </namespace-type>
-
- <value-type name="QSqlDatabase">
- <extra-includes>
- <include file-name="QSqlQuery" location="global"/>
- <include file-name="QSqlError" location="global"/>
- <include file-name="QSqlIndex" location="global"/>
- <include file-name="QSqlRecord" location="global"/>
- <include file-name="QStringList" location="global"/>
- <include file-name="QSize" location="global"/>
- </extra-includes>
- <modify-function signature="exec(QString)const" rename="exec_" allow-thread="yes"/>
- <modify-function signature="open()" allow-thread="yes"/>
- <modify-function signature="open(const QString&amp;, const QString&amp;)" allow-thread="yes"/>
- <modify-function signature="commit()" allow-thread="yes"/>
- <modify-function signature="rollback()" allow-thread="yes"/>
- <modify-function signature="transaction()" allow-thread="yes"/>
- <modify-function signature="registerSqlDriver(const QString&amp;,QSqlDriverCreatorBase*)">
- <modify-argument index="2">
- <define-ownership owner="c++"/>
- </modify-argument>
- </modify-function>
- </value-type>
-
- <value-type name="QSqlQuery">
- <enum-type name="BatchExecutionMode"/>
- <extra-includes>
- <include file-name="QSqlError" location="global"/>
- <include file-name="QSqlRecord" location="global"/>
- <include file-name="QStringList" location="global"/>
- <include file-name="QSize" location="global"/>
- </extra-includes>
- <modify-function signature="exec()" rename="exec_" allow-thread="yes"/>
- <modify-function signature="exec(const QString&amp;)" rename="exec_" allow-thread="yes"/>
- <modify-function signature="prepare(const QString&amp;)" allow-thread="yes"/>
- <modify-function signature="clear()" allow-thread="yes"/>
- <modify-function signature="last()" allow-thread="yes"/>
- <modify-function signature="first()" allow-thread="yes"/>
- <modify-function signature="previous()" allow-thread="yes"/>
- <modify-function signature="next()" allow-thread="yes"/>
- <modify-function signature="seek(int,bool)" allow-thread="yes"/>
- </value-type>
-
- <value-type name="QSqlRecord">
- <extra-includes>
- <include file-name="QSqlField" location="global"/>
- </extra-includes>
- </value-type>
-
- <value-type name="QSqlError">
- <enum-type name="ErrorType"/>
- </value-type>
-
- <value-type name="QSqlIndex"/>
-
- <value-type name="QSqlRelation"/>
-
- <object-type name="QSqlRelationalDelegate"/>
-
- <value-type name="QSqlField">
- <enum-type name="RequiredStatus"/>
- </value-type>
-
- <object-type name="QSqlDriver">
- <enum-type name="DbmsType"/>
- <enum-type name="DriverFeature"/>
- <enum-type name="IdentifierType"/>
- <enum-type name="NotificationSource"/>
- <enum-type name="StatementType"/>
- <extra-includes>
- <include file-name="QSqlQuery" location="global"/>
- <include file-name="QSqlError" location="global"/>
- <include file-name="QSqlIndex" location="global"/>
- <include file-name="QSqlRecord" location="global"/>
- <include file-name="QStringList" location="global"/>
- <include file-name="QSize" location="global"/>
- </extra-includes>
- <modify-function signature="beginTransaction()" allow-thread="yes"/>
- <modify-function signature="commitTransaction()" allow-thread="yes"/>
- <modify-function signature="rollbackTransaction()" allow-thread="yes"/>
- <modify-function signature="open(const QString&amp;,const QString&amp;,const QString&amp;,const QString&amp;,int,const QString&amp;)" allow-thread="yes"/>
- <!-- ### This is too low level for Python, and pointer would be useless for the Python programmer -->
- <modify-function signature="handle()const" remove="all"/>
- <!-- ### -->
- </object-type>
-
- <object-type name="QSqlQueryModel">
- <extra-includes>
- <include file-name="QSqlError" location="global"/>
- <include file-name="QSqlQuery" location="global"/>
- <include file-name="QSqlRecord" location="global"/>
- <include file-name="QStringList" location="global"/>
- <include file-name="QSize" location="global"/>
- </extra-includes>
- </object-type>
- <object-type name="QSqlRelationalTableModel">
- <enum-type name="JoinMode"/>
- <extra-includes>
- <include file-name="QStringList" location="global"/>
- <include file-name="QSize" location="global"/>
- </extra-includes>
- </object-type>
- <object-type name="QSqlResult">
- <enum-type name="BindingSyntax"/>
- <enum-type name="VirtualHookOperation"/>
- <extra-includes>
- <include file-name="QSqlError" location="global"/>
- <include file-name="QSqlQuery" location="global"/>
- <include file-name="QSqlRecord" location="global"/>
- <include file-name="QStringList" location="global"/>
- <include file-name="QSize" location="global"/>
- </extra-includes>
- <!-- ### This isn't part of Qt public API -->
- <modify-function signature="virtual_hook(int,void*)" remove="all"/>
- <!-- ### -->
- <modify-function signature="exec()" rename="exec_" allow-thread="yes"/>
- <modify-function signature="fetchLast()" allow-thread="yes"/>
- <modify-function signature="fetchFirst()" allow-thread="yes"/>
- <modify-function signature="fetchNext()" allow-thread="yes"/>
- <modify-function signature="fetchPrevious()" allow-thread="yes"/>
- <modify-function signature="fetch(int)" allow-thread="yes"/>
- <modify-function signature="prepare(QString)" allow-thread="yes"/>
- </object-type>
- <object-type name="QSqlTableModel">
- <enum-type name="EditStrategy"/>
- <extra-includes>
- <include file-name="QSqlIndex" location="global"/>
- <include file-name="QStringList" location="global"/>
- <include file-name="QSize" location="global"/>
- </extra-includes>
- </object-type>
- <object-type name="QSqlDriverCreatorBase">
- <extra-includes>
- <include file-name="QSqlDriver" location="global"/>
- </extra-includes>
- </object-type>
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtSvg/CMakeLists.txt b/sources/pyside2/PySide2/QtSvg/CMakeLists.txt
deleted file mode 100644
index 19768274d..000000000
--- a/sources/pyside2/PySide2/QtSvg/CMakeLists.txt
+++ /dev/null
@@ -1,36 +0,0 @@
-project(QtSvg)
-
-set(QtSvg_SRC
-${QtSvg_GEN_DIR}/qgraphicssvgitem_wrapper.cpp
-${QtSvg_GEN_DIR}/qsvggenerator_wrapper.cpp
-${QtSvg_GEN_DIR}/qsvgrenderer_wrapper.cpp
-${QtSvg_GEN_DIR}/qsvgwidget_wrapper.cpp
-# module is always needed
-${QtSvg_GEN_DIR}/qtsvg_module_wrapper.cpp
-)
-
-set(QtSvg_include_dirs ${QtSvg_SOURCE_DIR}
- ${QtSvg_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Svg_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtWidgets_GEN_DIR}
- )
-set(QtSvg_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Svg_LIBRARIES}
- )
-set(QtSvg_deps QtWidgets)
-
-create_pyside_module(NAME QtSvg
- INCLUDE_DIRS QtSvg_include_dirs
- LIBRARIES QtSvg_libraries
- DEPS QtSvg_deps
- TYPESYSTEM_PATH QtSvg_SOURCE_DIR
- SOURCES QtSvg_SRC)
diff --git a/sources/pyside2/PySide2/QtSvg/typesystem_svg.xml b/sources/pyside2/PySide2/QtSvg/typesystem_svg.xml
deleted file mode 100644
index 079a79e96..000000000
--- a/sources/pyside2/PySide2/QtSvg/typesystem_svg.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtSvg">
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
-
- <object-type name="QSvgRenderer"/>
- <object-type name="QSvgWidget"/>
-
- <object-type name="QSvgGenerator">
- <modify-function signature="setOutputDevice(QIODevice*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="outputDevice()const">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QGraphicsSvgItem">
- <modify-function signature="QGraphicsSvgItem(QGraphicsItem*)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="QGraphicsSvgItem(const QString&amp;,QGraphicsItem*)">
- <modify-argument index="this">
- <parent index="2" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtTest/CMakeLists.txt b/sources/pyside2/PySide2/QtTest/CMakeLists.txt
deleted file mode 100644
index 04bb28cc9..000000000
--- a/sources/pyside2/PySide2/QtTest/CMakeLists.txt
+++ /dev/null
@@ -1,40 +0,0 @@
-project(QtTest)
-
-set(QtTest_SRC
-${QtTest_GEN_DIR}/qtest_pysideqtoucheventsequence_wrapper.cpp
-${QtTest_GEN_DIR}/qtest_wrapper.cpp
-# module is always needed
-${QtTest_GEN_DIR}/qttest_module_wrapper.cpp
-)
-
-configure_file("${QtTest_SOURCE_DIR}/QtTest_global.pre.h.in"
- "${QtTest_BINARY_DIR}/QtTest_global.pre.h" @ONLY)
-
-configure_file("${QtTest_SOURCE_DIR}/QtTest_global.post.h.in"
- "${QtTest_BINARY_DIR}/QtTest_global.post.h" @ONLY)
-
-set(QtTest_include_dirs ${QtTest_SOURCE_DIR}
- ${QtTest_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Test_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtWidgets_GEN_DIR}
- )
-set(QtTest_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Test_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- )
-set(QtTest_deps QtWidgets)
-
-create_pyside_module(NAME QtTest
- INCLUDE_DIRS QtTest_include_dirs
- LIBRARIES QtTest_libraries
- DEPS QtTest_deps
- TYPESYSTEM_PATH QtTest_SOURCE_DIR
- SOURCES QtTest_SRC)
diff --git a/sources/pyside2/PySide2/QtTest/QtTest_global.post.h.in b/sources/pyside2/PySide2/QtTest/QtTest_global.post.h.in
deleted file mode 100644
index ccd18153c..000000000
--- a/sources/pyside2/PySide2/QtTest/QtTest_global.post.h.in
+++ /dev/null
@@ -1 +0,0 @@
-#include "pysideqtesttouch.h"
diff --git a/sources/pyside2/PySide2/QtTest/QtTest_global.pre.h.in b/sources/pyside2/PySide2/QtTest/QtTest_global.pre.h.in
deleted file mode 100644
index 65daf1b84..000000000
--- a/sources/pyside2/PySide2/QtTest/QtTest_global.pre.h.in
+++ /dev/null
@@ -1,5 +0,0 @@
-// QT_WIDGETS_LIB changes code generation in pysideqtesttouch.h
-
-#if @Qt5Widgets_FOUND@
-# define QT_WIDGETS_LIB
-#endif
diff --git a/sources/pyside2/PySide2/QtTest/typesystem_test.xml b/sources/pyside2/PySide2/QtTest/typesystem_test.xml
deleted file mode 100644
index f7facaf7d..000000000
--- a/sources/pyside2/PySide2/QtTest/typesystem_test.xml
+++ /dev/null
@@ -1,168 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtTest">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
-
- <rejection class="QTest" function-name="qCompare&lt;char&gt;"/>
- <rejection class="QTest" function-name="qCompare&lt;char*&gt;"/>
- <rejection class="QTest" function-name="qCompare&lt;double&gt;"/>
- <rejection class="QTest" function-name="qCompare&lt;float&gt;"/>
- <rejection class="QTest" function-name="qCompare&lt;double,qreal&gt;"/>
- <rejection class="QTest" function-name="qCompare&lt;qreal,double&gt;"/>
- <rejection class="QTest" function-name="qCompare"/>
- <rejection class="QTest" function-name="qInit"/>
- <rejection class="QTest" function-name="qVerify"/>
- <rejection class="QTest" function-name="qSleep"/>
- <rejection class="QTest" function-name="toHexRepresentation"/>
- <rejection class="QTest" function-name="qWait"/>
- <rejection class="QTest" function-name="qFail"/>
- <rejection class="QTest" function-name="qInit"/>
- <rejection class="QTest" function-name="qExec"/>
- <rejection class="QTest" function-name="qData"/>
- <rejection class="QTest" function-name="qWarn"/>
- <rejection class="QTest" function-name="toString"/>
- <rejection class="QTest" function-name="toString&lt;bool>"/>
- <rejection class="QTest" function-name="toString&lt;char>"/>
- <rejection class="QTest" function-name="toString&lt;unsigned char>"/>
- <rejection class="QTest" function-name="toString&lt;signed char>"/>
- <rejection class="QTest" function-name="toString&lt;double>"/>
- <rejection class="QTest" function-name="toString&lt;float>"/>
- <rejection class="QTest" function-name="toString&lt;int>"/>
- <rejection class="QTest" function-name="toString&lt;long>"/>
- <rejection class="QTest" function-name="toString&lt;qint64>"/>
- <rejection class="QTest" function-name="toString&lt;quint64>"/>
- <rejection class="QTest" function-name="toString&lt;short>"/>
- <rejection class="QTest" function-name="toString&lt;uint>"/>
- <rejection class="QTest" function-name="toString&lt;ulong>"/>
- <rejection class="QTest" function-name="toString&lt;ushort>"/>
- <rejection class="QTest" function-name="qt_snprintf"/>
-
- <rejection class="QTest" function-name="compare_helper"/>
- <rejection class="QTest" function-name="toPrettyUnicode"/>
-
- <rejection class="QTest" field-name="lastMouseButton"/>
- <rejection class="QTest" field-name="lastMouseTimestamp"/>
-
- <!-- Qt5: this new stuff below belongs to QtGui. I keep it here for now, after a long odyssey.
-
- The problem that costed my days of bug hunting is the fact that shiboken gives
- misleading error messages. The messages that I could not get rid of were
-
- signature 'generateTouchEvent(QWidget*,QTouchDevice*,bool)' for function modification in 'QTest' not found. Possible candidates:
- signature 'generateTouchEvent(QWindow*,QTouchDevice*,bool)' for function modification in 'QTest' not found. Possible candidates:
-
- I always thought that for some reason the functions were not recognized, or the arguments somehow
- do not match their declaration. Only late in the project, I learnt that also
- a simply missing type name in the argument list leads to this message.
-
- <object-type name="QTouchDevice">
- <enum-type name="CapabilityFlag" flags="Capabilities"/>
- <enum-type name="DeviceType"/>
- </object-type>
- ^^^ this is now moved into QtGui -->
-
- <namespace-type name="QTest">
- <!-- Qt5: private <enum-type name="AttributeIndex" since="4.6"/> -->
- <enum-type name="KeyAction"/>
- <!-- Qt5: private <enum-type name="LogElementType" since="4.6"/> -->
- <enum-type name="MouseAction"/>
- <enum-type name="QBenchmarkMetric" since="4.7"/>
- <enum-type name="TestFailMode"/>
- <extra-includes>
- <include file-name="QtTest" location="global"/>
- </extra-includes>
-
- <rejection class="QTouchEventSequence"/>
- <object-type name="PySideQTouchEventSequence" target-lang-name="QTouchEventSequence" since="4.6" >
- <modify-function signature="press(int,const QPoint&amp;,QWidget*)">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="press(int,const QPoint&amp;,QWindow*)">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="move(int,const QPoint&amp;,QWidget*)">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="move(int,const QPoint&amp;,QWindow*)">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="release(int,const QPoint&amp;,QWidget*)">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="release(int,const QPoint&amp;,QWindow*)">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="stationary(int)">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <modify-function signature="generateTouchEvent(QWidget*,QTouchDevice*,bool)" rename="touchEvent" since="4.6">
- <modify-argument index="return">
- <define-ownership class="target" owner="target"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="generateTouchEvent(QWindow*,QTouchDevice*,bool)" rename="touchEvent" since="4.6">
- <modify-argument index="return">
- <define-ownership class="target" owner="target"/>
- </modify-argument>
- </modify-function>
- </namespace-type>
-
- <rejection class="QSignalSpy"/>
- <rejection class="QTestEventList"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtTextToSpeech/CMakeLists.txt b/sources/pyside2/PySide2/QtTextToSpeech/CMakeLists.txt
deleted file mode 100644
index ebd95cfbe..000000000
--- a/sources/pyside2/PySide2/QtTextToSpeech/CMakeLists.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-project(QtTextToSpeech)
-
-set(QtTextToSpeech_SRC
-${QtTextToSpeech_GEN_DIR}/qtexttospeech_wrapper.cpp
-${QtTextToSpeech_GEN_DIR}/qtexttospeechengine_wrapper.cpp
-${QtTextToSpeech_GEN_DIR}/qvoice_wrapper.cpp
-# module is always needed
-${QtTextToSpeech_GEN_DIR}/qttexttospeech_module_wrapper.cpp
-)
-
-set(QtTextToSpeech_include_dirs ${QtTextToSpeech_SOURCE_DIR}
- ${QtTextToSpeech_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}TextToSpeech_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR})
-
-set(QtTextToSpeech_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Multimedia_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}TextToSpeech_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES})
-
-set(QtTextToSpeech_deps QtCore QtMultimedia)
-
-create_pyside_module(NAME QtTextToSpeech
- INCLUDE_DIRS QtTextToSpeech_include_dirs
- LIBRARIES QtTextToSpeech_libraries
- DEPS QtTextToSpeech_deps
- TYPESYSTEM_PATH QtTextToSpeech_SOURCE_DIR
- SOURCES QtTextToSpeech_SRC)
diff --git a/sources/pyside2/PySide2/QtTextToSpeech/typesystem_texttospeech.xml b/sources/pyside2/PySide2/QtTextToSpeech/typesystem_texttospeech.xml
deleted file mode 100644
index 48a5bc9f4..000000000
--- a/sources/pyside2/PySide2/QtTextToSpeech/typesystem_texttospeech.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtTextToSpeech">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
-
- <object-type name="QTextToSpeech">
- <enum-type name="State"/>
- </object-type>
- <object-type name="QTextToSpeechEngine"/>
- <value-type name="QVoice">
- <enum-type name="Gender"/>
- <enum-type name="Age"/>
- </value-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtUiTools/CMakeLists.txt b/sources/pyside2/PySide2/QtUiTools/CMakeLists.txt
deleted file mode 100644
index f9ca16e5a..000000000
--- a/sources/pyside2/PySide2/QtUiTools/CMakeLists.txt
+++ /dev/null
@@ -1,42 +0,0 @@
-project(QtUiTools)
-
-set(QtUiTools_SRC
-${QtUiTools_GEN_DIR}/quiloader_wrapper.cpp
-# module is always needed
-${QtUiTools_GEN_DIR}/qtuitools_module_wrapper.cpp
-)
-
-set(QtUiTools_glue_sources
- "${QtUiTools_SOURCE_DIR}/glue/plugins.h"
-)
-
-set(QtUiTools_include_dirs ${QtUiTools_SOURCE_DIR}
- ${QtUiTools_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Xml_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Designer_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}UiTools_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${plugins_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtXml_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtWidgets_GEN_DIR}
- )
-set(QtUiTools_libraries pyside2
- uiplugin
- ${Qt${QT_MAJOR_VERSION}UiTools_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES}
- )
-set(QtUiTools_deps QtWidgets QtXml)
-create_pyside_module(NAME QtUiTools
- INCLUDE_DIRS QtUiTools_include_dirs
- LIBRARIES QtUiTools_libraries
- DEPS QtUiTools_deps
- TYPESYSTEM_PATH QtUiTools_SOURCE_DIR
- SOURCES QtUiTools_SRC
- GLUE_SOURCES QtUiTools_glue_sources)
diff --git a/sources/pyside2/PySide2/QtUiTools/glue/plugins.h b/sources/pyside2/PySide2/QtUiTools/glue/plugins.h
deleted file mode 100644
index 9bfcec6ea..000000000
--- a/sources/pyside2/PySide2/QtUiTools/glue/plugins.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef _PLUGIN_H_
-#define _PLUGIN_H_
-
-#include <QPluginLoader>
-#include "customwidgets.h"
-
-inline void registerCustomWidget(PyObject *obj)
-{
- static PyCustomWidgets *plugin = nullptr;
-
- if (plugin == 0) {
- const auto &instances = QPluginLoader::staticInstances();
- for (QObject *o : instances) {
- plugin = qobject_cast<PyCustomWidgets *>(o);
- if (plugin)
- break;
- }
- }
-
- if (!plugin)
- qDebug() << "Failed to load uiloader plugin.";
- else
- plugin->registerWidgetType(obj);
-}
-
-#endif
diff --git a/sources/pyside2/PySide2/QtUiTools/typesystem_uitools.xml b/sources/pyside2/PySide2/QtUiTools/typesystem_uitools.xml
deleted file mode 100644
index 2ca12e788..000000000
--- a/sources/pyside2/PySide2/QtUiTools/typesystem_uitools.xml
+++ /dev/null
@@ -1,178 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-
-<typesystem package="PySide2.QtUiTools">
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
- <load-typesystem name="QtXml/typesystem_xml.xml" generate="no"/>
-
- <object-type name="QUiLoader">
- <extra-includes>
- <include file-name="glue/plugins.h" location="local"/>
- </extra-includes>
- <inject-code class="native" position="beginning" file="../glue/qtuitools.cpp" snippet="uitools-loadui"/>
- <inject-code file="../glue/qtuitools.cpp" snippet="quiloader"/>
- <add-function signature="registerCustomWidget(PyObject*)" return-type="void">
- <modify-argument index="1">
- <rename to="customWidgetType"/>
- </modify-argument>
- <inject-documentation format="target" mode="append">
- Registers a Python created custom widget to QUiLoader, so it can be recognized when
- loading a `.ui` file. The custom widget type is passed via the ``customWidgetType`` argument.
- This is needed when you want to override a virtual method of some widget in the interface,
- since duck punching will not work with widgets created by QUiLoader based on the contents
- of the `.ui` file.
-
- (Remember that `duck punching virtual methods is an invitation for your own demise!
- &lt;https://doc.qt.io/qtforpython/shiboken2/wordsofadvice.html#duck-punching-and-virtual-methods>`_)
-
- Let's see an obvious example. If you want to create a new widget it's probable you'll end up
- overriding :class:`~PySide2.QtGui.QWidget`'s :meth:`~PySide2.QtGui.QWidget.paintEvent` method.
-
- .. code-block:: python
-
- class Circle(QWidget):
- def paintEvent(self, event):
- painter = QPainter(self)
- painter.setPen(self.pen)
- painter.setBrush(QBrush(self.color))
- painter.drawEllipse(event.rect().center(), 20, 20)
-
- # ...
-
- loader = QUiLoader()
- loader.registerCustomWidget(Circle)
- circle = loader.load('circle.ui')
- circle.show()
-
- # ...
- </inject-documentation>
- <inject-code class="target" position="beginning" file="../glue/qtuitools.cpp" snippet="quiloader-registercustomwidget"/>
- </add-function>
- <modify-function signature="createAction(QObject*,const QString&amp;)">
- <modify-argument index="return">
- <parent index="1" action="add"/>
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="createActionGroup(QObject*,const QString&amp;)">
- <modify-argument index="return">
- <parent index="1" action="add"/>
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="createLayout(const QString&amp;,QObject*,const QString&amp;)">
- <modify-argument index="return">
- <parent index="2" action="add"/>
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="createWidget(const QString&amp;,QWidget*,const QString&amp;)">
- <modify-argument index="return">
- <parent index="2" action="add"/>
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="load(QIODevice*,QWidget*)">
- <modify-argument index="2">
- <replace-default-expression with="0"/>
- <rename to="parentWidget"/>
- </modify-argument>
- <modify-argument index="return">
- <define-ownership class="target" owner="target"/>
- </modify-argument>
- <inject-code file="../glue/qtuitools.cpp" snippet="quiloader-load-1"/>
- </modify-function>
-
- <!-- Syntax sugar -->
- <add-function signature="load(QString,QWidget*)" return-type="QWidget*">
- <modify-argument index="2">
- <replace-default-expression with="0"/>
- <rename to="parentWidget"/>
- </modify-argument>
- <modify-argument index="return">
- <define-ownership class="target" owner="target"/>
- </modify-argument>
- <inject-code file="../glue/qtuitools.cpp" snippet="quiloader-load-2"/>
- </add-function>
- </object-type>
-
- <!--
- After the removal of the 'pysideuic' Python module, many users were unable to generate and
- load UI classes dynamically.
- This function was created to provide an equivalent solution to the 'loadUiType' function from
- Riverbank's PyQt.
- -->
- <add-function signature="loadUiType(const QString&amp; @uifile@)" return-type="PyObject*">
- <inject-documentation format="target" mode="append">
- This function will allow users to generate and load a `.ui` file at runtime, and it returns
- a `tuple` containing the reference to the Python class, and the base class.
-
- We don't recommend this approach since the workflow should be to generate a Python file
- from the `.ui` file, and then import and load it to use it, but we do understand that
- there are some corner cases when such functionality is required.
-
- The internal process relies on `uic` being in the PATH, which is the same requirement for
- the new `pyside2-uic` to work (which is just a wrapper around `uic -g python`)
-
- A Simple use can be:
-
- .. code-block:: python
-
- from PySide2.QtUiTools import loadUiType
-
- generated_class, base_class = loadUiType("themewidget.ui")
- # the values will be:
- # (&lt;class '__main__.Ui_ThemeWidgetForm'&gt;, &lt;class 'PySide2.QtWidgets.QWidget'&gt;)
-
-
- In that case, `generated_class` will be a reference to the Python class,
- and `base_class` will be a reference to the base class.
- </inject-documentation>
- <inject-code file="../glue/qtuitools.cpp" snippet="loaduitype"/>
- </add-function>
-
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtWebChannel/CMakeLists.txt b/sources/pyside2/PySide2/QtWebChannel/CMakeLists.txt
deleted file mode 100644
index df9531809..000000000
--- a/sources/pyside2/PySide2/QtWebChannel/CMakeLists.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-project(QtWebChannel)
-
-set(QtWebChannel_SRC
-${QtWebChannel_GEN_DIR}/qwebchannel_wrapper.cpp
-${QtWebChannel_GEN_DIR}/qwebchannelabstracttransport_wrapper.cpp
-# module is always needed
-${QtWebChannel_GEN_DIR}/qtwebchannel_module_wrapper.cpp
-)
-
-set(QtWebChannel_include_dirs ${QtWebChannel_SOURCE_DIR}
- ${QtWebChannel_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}WebChannel_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- )
-set(QtWebChannel_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}WebChannel_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- )
-set(QtWebChannel_deps QtCore)
-
-create_pyside_module(NAME QtWebChannel
- INCLUDE_DIRS QtWebChannel_include_dirs
- LIBRARIES QtWebChannel_libraries
- DEPS QtWebChannel_deps
- TYPESYSTEM_PATH QtWebChannel_SOURCE_DIR
- SOURCES QtWebChannel_SRC)
diff --git a/sources/pyside2/PySide2/QtWebChannel/typesystem_webchannel.xml b/sources/pyside2/PySide2/QtWebChannel/typesystem_webchannel.xml
deleted file mode 100644
index c47d5fa08..000000000
--- a/sources/pyside2/PySide2/QtWebChannel/typesystem_webchannel.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtWebChannel">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
-
- <object-type name="QWebChannel"/>
- <object-type name="QWebChannelAbstractTransport">
- <extra-includes>
- <include file-name="QJsonObject" location="global"/>
- </extra-includes>
- </object-type>
- <!-- Not sure if this will be useful, but commented out for now because
- the QML module is not yet wrapped.
- <object-type name="QQmlWebChannel"/> -->
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtWebEngine/CMakeLists.txt b/sources/pyside2/PySide2/QtWebEngine/CMakeLists.txt
deleted file mode 100644
index e1460ff21..000000000
--- a/sources/pyside2/PySide2/QtWebEngine/CMakeLists.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-project(QtWebEngine)
-
-set(QtWebEngine_SRC
-${QtWebEngine_GEN_DIR}/qtwebengine_wrapper.cpp
-# module is always needed
-${QtWebEngine_GEN_DIR}/qtwebengine_module_wrapper.cpp
-)
-
-set(QtWebEngine_include_dirs
- ${QtWebEngine_SOURCE_DIR}
- ${QtWebEngine_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- )
-set(QtWebEngine_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}WebEngine_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- )
-set(QtWebEngine_deps QtCore)
-create_pyside_module(NAME QtWebEngine
- INCLUDE_DIRS QtWebEngine_include_dirs
- LIBRARIES QtWebEngine_libraries
- DEPS QtWebEngine_deps
- TYPESYSTEM_PATH QtWebEngine_SOURCE_DIR
- SOURCES QtWebEngine_SRC)
-
diff --git a/sources/pyside2/PySide2/QtWebEngine/typesystem_webengine.xml b/sources/pyside2/PySide2/QtWebEngine/typesystem_webengine.xml
deleted file mode 100644
index 7d0875a2c..000000000
--- a/sources/pyside2/PySide2/QtWebEngine/typesystem_webengine.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtWebEngine">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <namespace-type name="QtWebEngine"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtWebEngineCore/CMakeLists.txt b/sources/pyside2/PySide2/QtWebEngineCore/CMakeLists.txt
deleted file mode 100644
index f0fb1eeda..000000000
--- a/sources/pyside2/PySide2/QtWebEngineCore/CMakeLists.txt
+++ /dev/null
@@ -1,38 +0,0 @@
-project(QtWebEngineCore)
-
-set(QtWebEngineCore_SRC
-${QtWebEngineCore_GEN_DIR}/qwebenginecookiestore_wrapper.cpp
-${QtWebEngineCore_GEN_DIR}/qwebenginehttprequest_wrapper.cpp
-${QtWebEngineCore_GEN_DIR}/qwebengineurlrequestinfo_wrapper.cpp
-${QtWebEngineCore_GEN_DIR}/qwebengineurlrequestinterceptor_wrapper.cpp
-${QtWebEngineCore_GEN_DIR}/qwebengineurlrequestjob_wrapper.cpp
-${QtWebEngineCore_GEN_DIR}/qwebengineurlschemehandler_wrapper.cpp
-# module is always needed
-${QtWebEngineCore_GEN_DIR}/qtwebenginecore_module_wrapper.cpp
-)
-
-if (Qt${QT_MAJOR_VERSION}WebEngineCore_VERSION VERSION_EQUAL 5.12.0
- OR Qt${QT_MAJOR_VERSION}WebEngineCore_VERSION VERSION_GREATER 5.12.0)
- list(APPEND QtWebEngineCore_SRC
- ${QtWebEngineCore_GEN_DIR}/qwebengineurlscheme_wrapper.cpp)
-endif()
-
-set(QtWebEngineCore_include_dirs
- ${QtWebEngineCore_SOURCE_DIR}
- ${QtWebEngineCore_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- )
-set(QtWebEngineCore_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}WebEngineCore_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- )
-set(QtWebEngineCore_deps QtCore)
-create_pyside_module(NAME QtWebEngineCore
- INCLUDE_DIRS QtWebEngineCore_include_dirs
- LIBRARIES QtWebEngineCore_libraries
- DEPS QtWebEngineCore_deps
- TYPESYSTEM_PATH QtWebEngineCore_SOURCE_DIR
- SOURCES QtWebEngineCore_SRC)
-
diff --git a/sources/pyside2/PySide2/QtWebEngineCore/typesystem_webenginecore.xml b/sources/pyside2/PySide2/QtWebEngineCore/typesystem_webenginecore.xml
deleted file mode 100644
index eb1ab3d61..000000000
--- a/sources/pyside2/PySide2/QtWebEngineCore/typesystem_webenginecore.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtWebEngineCore">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
-
- <object-type name="QWebEngineCookieStore"/>
-
- <object-type name="QWebEngineHttpRequest">
- <enum-type name="Method"/>
- <modify-function signature="QWebEngineHttpRequest(const QUrl &amp;, const QWebEngineHttpRequest::Method &amp;)">
- <modify-argument index="2">
- <replace-type modified-type="QWebEngineHttpRequest::Method"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QWebEngineUrlRequestInfo">
- <enum-type name="NavigationType"/>
- <enum-type name="ResourceType"/>
- </object-type>
-
- <object-type name="QWebEngineUrlRequestInterceptor"/>
-
- <object-type name="QWebEngineUrlRequestJob">
- <enum-type name="Error"/>
- </object-type>
- <value-type name="QWebEngineUrlScheme" since="5.12">
- <enum-type name="Syntax"/>
- <enum-type name="SpecialPort"/>
- <enum-type name="Flag" flags="Flags"/>
- </value-type>
-
- <object-type name="QWebEngineUrlSchemeHandler"/>
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtWebEngineWidgets/CMakeLists.txt b/sources/pyside2/PySide2/QtWebEngineWidgets/CMakeLists.txt
deleted file mode 100644
index b9fc1bc92..000000000
--- a/sources/pyside2/PySide2/QtWebEngineWidgets/CMakeLists.txt
+++ /dev/null
@@ -1,55 +0,0 @@
-project(QtWebEngineWidgets)
-
-set(QtWebEngineWidgets_SRC
-${QtWebEngineWidgets_GEN_DIR}/qwebenginecertificateerror_wrapper.cpp
-${QtWebEngineWidgets_GEN_DIR}/qwebenginedownloaditem_wrapper.cpp
-${QtWebEngineWidgets_GEN_DIR}/qwebenginehistory_wrapper.cpp
-${QtWebEngineWidgets_GEN_DIR}/qwebenginehistoryitem_wrapper.cpp
-${QtWebEngineWidgets_GEN_DIR}/qwebenginepage_wrapper.cpp
-${QtWebEngineWidgets_GEN_DIR}/qwebengineprofile_wrapper.cpp
-${QtWebEngineWidgets_GEN_DIR}/qwebenginescript_wrapper.cpp
-${QtWebEngineWidgets_GEN_DIR}/qwebenginescriptcollection_wrapper.cpp
-${QtWebEngineWidgets_GEN_DIR}/qwebenginesettings_wrapper.cpp
-${QtWebEngineWidgets_GEN_DIR}/qwebengineview_wrapper.cpp
-${QtWebEngineWidgets_GEN_DIR}/qwebenginecontextmenudata_wrapper.cpp
-${QtWebEngineWidgets_GEN_DIR}/qwebenginefullscreenrequest_wrapper.cpp
-# module is always needed
-${QtWebEngineWidgets_GEN_DIR}/qtwebenginewidgets_module_wrapper.cpp
-)
-
-set(QtWebEngineWidgets_include_dirs
- ${QtWebEngineWidgets_SOURCE_DIR}
- ${QtWebEngineWidgets_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Network_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}WebChannel_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}WebEngineWidgets_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtWidgets_GEN_DIR}
- ${QtWebEngineWidgets_GEN_DIR}
- ${QtNetwork_GEN_DIR}
- ${QtWebChannel_GEN_DIR}
- ${QtWebEngineCore_GEN_DIR}
- ${QtPrintSupport_GEN_DIR}
- )
-set(QtWebEngineWidgets_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}WebEngineWidgets_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Network_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}WebChannel_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}PrintSupport_LIBRARIES}
- )
-set(QtWebEngineWidgets_deps QtGui QtWidgets QtNetwork QtWebChannel QtPrintSupport)
-create_pyside_module(NAME QtWebEngineWidgets
- INCLUDE_DIRS QtWebEngineWidgets_include_dirs
- LIBRARIES QtWebEngineWidgets_libraries
- DEPS QtWebEngineWidgets_deps
- TYPESYSTEM_PATH QtWebEngineWidgets_SOURCE_DIR
- SOURCES QtWebEngineWidgets_SRC)
-
diff --git a/sources/pyside2/PySide2/QtWebEngineWidgets/typesystem_webenginewidgets.xml b/sources/pyside2/PySide2/QtWebEngineWidgets/typesystem_webenginewidgets.xml
deleted file mode 100644
index b18d4359a..000000000
--- a/sources/pyside2/PySide2/QtWebEngineWidgets/typesystem_webenginewidgets.xml
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtWebEngineWidgets">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
- <load-typesystem name="QtNetwork/typesystem_network.xml" generate="no"/>
- <load-typesystem name="QtWebChannel/typesystem_webchannel.xml" generate="no"/>
- <load-typesystem name="QtWebEngineCore/typesystem_webenginecore.xml" generate="no"/>
- <load-typesystem name="QtPrintSupport/typesystem_printsupport.xml" generate="no"/>
-
-
- <object-type name="QWebEngineCertificateError">
- <enum-type name="Error"/>
- </object-type>
-
- <object-type name="QWebEngineDownloadItem">
- <enum-type name="DownloadInterruptReason"/>
- <enum-type name="DownloadState"/>
- <enum-type name="DownloadType"/>
- <enum-type name="SavePageFormat"/>
- </object-type>
-
- <object-type name="QWebEngineHistory"/>
- <value-type name="QWebEngineHistoryItem"/>
-
- <object-type name="QWebEnginePage">
- <enum-type name="WebAction"/>
- <enum-type name="FindFlag" flags="FindFlags"/>
- <enum-type name="WebWindowType"/>
- <enum-type name="PermissionPolicy"/>
- <enum-type name="NavigationType"/>
- <enum-type name="Feature"/>
- <enum-type name="FileSelectionMode"/>
- <enum-type name="JavaScriptConsoleMessageLevel"/>
- <enum-type name="RenderProcessTerminationStatus"/>
- <add-function signature="findText(const QString &amp;,QWebEnginePage::FindFlags,PyObject*)">
- <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-findtext"/>
- </add-function>
- <add-function signature="print(QPrinter*,PyObject*)">
- <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-print"/>
- </add-function>
- <add-function signature="toPlainText(PyObject*) const">
- <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-convertto"/>
- </add-function>
- <add-function signature="toHtml(PyObject*) const">
- <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-convertto"/>
- </add-function>
- <add-function signature="runJavaScript(const QString &amp;,quint32,PyObject*)">
- <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-runjavascript"/>
- </add-function>
- <add-function signature="printToPdf(PyObject*,const QPageLayout &amp;)">
- <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-printtopdf"/>
- </add-function>
- </object-type>
-
- <object-type name="QWebEngineProfile">
- <enum-type name="HttpCacheType"/>
- <enum-type name="PersistentCookiesPolicy"/>
- </object-type>
-
- <value-type name="QWebEngineScript">
- <enum-type name="InjectionPoint"/>
- <enum-type name="ScriptWorldId"/>
- </value-type>
-
- <object-type name="QWebEngineScriptCollection"/>
-
- <object-type name="QWebEngineSettings">
- <enum-type name="FontFamily"/>
- <enum-type name="FontSize"/>
- <enum-type name="UnknownUrlSchemePolicy" since="5.11"/>
- <enum-type name="WebAttribute"/>
- </object-type>
-
- <object-type name="QWebEngineView">
- <add-function signature="findText(const QString &amp;,QWebEnginePage::FindFlags,PyObject*)">
- <inject-code class="target" position="beginning" file="../glue/qtwebenginewidgets.cpp" snippet="qwebenginepage-findtext"/>
- </add-function>
- </object-type>
-
- <value-type name="QWebEngineContextMenuData">
- <enum-type name="EditFlag" flags="EditFlags" since="5.11"/>
- <enum-type name="MediaFlag" flags="MediaFlags" since="5.11"/>
- <enum-type name="MediaType"/>
- </value-type>
-
- <object-type name="QWebEngineFullScreenRequest"/>
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtWebKit/CMakeLists.txt b/sources/pyside2/PySide2/QtWebKit/CMakeLists.txt
deleted file mode 100644
index 4220e46bf..000000000
--- a/sources/pyside2/PySide2/QtWebKit/CMakeLists.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-project(QtWebKit)
-
-set(QtWebKit_SRC
-${QtWebKit_GEN_DIR}/webcore_wrapper.cpp
-# module is always needed
-${QtWebKit_GEN_DIR}/qtwebkit_module_wrapper.cpp
-)
-
-set(QtWebKit_include_dirs ${QtWebKit_SOURCE_DIR}
- ${QtWebKit_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Network_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}WebKit_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtWidgets_GEN_DIR}
- ${QtNetwork_GEN_DIR}
- )
-set(QtWebKit_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}WebKit_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Network_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- )
-set(QtWebKit_deps QtGui QtNetwork)
-create_pyside_module(NAME QtWebKit
- INCLUDE_DIRS QtWebKit_include_dirs
- LIBRARIES QtWebKit_libraries
- DEPS QtWebKit_deps
- TYPESYSTEM_PATH QtWebKit_SOURCE_DIR
- SOURCES QtWebKit_SRC)
-
diff --git a/sources/pyside2/PySide2/QtWebKit/typesystem_webkit.xml b/sources/pyside2/PySide2/QtWebKit/typesystem_webkit.xml
deleted file mode 100644
index e92417f26..000000000
--- a/sources/pyside2/PySide2/QtWebKit/typesystem_webkit.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtWebKit">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
- <load-typesystem name="QtNetwork/typesystem_network.xml" generate="no"/>
-
- <namespace-type name="WebCore"/>
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtWebKitWidgets/CMakeLists.txt b/sources/pyside2/PySide2/QtWebKitWidgets/CMakeLists.txt
deleted file mode 100644
index 0bf660a62..000000000
--- a/sources/pyside2/PySide2/QtWebKitWidgets/CMakeLists.txt
+++ /dev/null
@@ -1,65 +0,0 @@
-project(QtWebKitWidgets)
-
-set(QtWebKitWidgets_SRC
-${QtWebKitWidgets_GEN_DIR}/qgraphicswebview_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebdatabase_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebelement_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebelementcollection_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebframe_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebhistory_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebhistoryinterface_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebhistoryitem_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebhittestresult_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebinspector_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebpage_choosemultiplefilesextensionoption_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebpage_choosemultiplefilesextensionreturn_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebpage_errorpageextensionoption_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebpage_errorpageextensionreturn_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebpage_extensionoption_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebpage_extensionreturn_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebpage_viewportattributes_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebpage_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebpluginfactory_mimetype_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebpluginfactory_plugin_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebpluginfactory_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebsecurityorigin_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebsettings_wrapper.cpp
-${QtWebKitWidgets_GEN_DIR}/qwebview_wrapper.cpp
-# module is always needed
-${QtWebKitWidgets_GEN_DIR}/qtwebkitwidgets_module_wrapper.cpp
-)
-
-set(QtWebKitWidgets_include_dirs
- ${QtWebKitWidgets_SOURCE_DIR}
- ${QtWebKitWidgets_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}WebKit_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}PrintSupport_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Network_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}WebKitWidgets_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${QtWidgets_GEN_DIR}
- ${QtPrintSupport_GEN_DIR}
- ${QtWebKit_GEN_DIR}
- ${QtNetwork_GEN_DIR}
- )
-set(QtWebKitWidgets_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}WebKit_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}WebKitWidgets_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Network_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- )
-set(QtWebKitWidgets_deps QtWidgets QtPrintSupport QtNetwork)
-create_pyside_module(NAME QtWebKitWidgets
- INCLUDE_DIRS QtWebKitWidgets_include_dirs
- LIBRARIES QtWebKitWidgets_libraries
- DEPS QtWebKitWidgets_deps
- TYPESYSTEM_PATH QtWebKitWidgets_SOURCE_DIR
- SOURCES QtWebKitWidgets_SRC)
-
diff --git a/sources/pyside2/PySide2/QtWebKitWidgets/typesystem_webkitwidgets.xml b/sources/pyside2/PySide2/QtWebKitWidgets/typesystem_webkitwidgets.xml
deleted file mode 100644
index 7760c1c3d..000000000
--- a/sources/pyside2/PySide2/QtWebKitWidgets/typesystem_webkitwidgets.xml
+++ /dev/null
@@ -1,211 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtWebKitWidgets">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
- <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/>
- <load-typesystem name="QtWebKit/typesystem_webkit.xml" generate="no"/>
- <load-typesystem name="QtNetwork/typesystem_network.xml" generate="no"/>
- <load-typesystem name="QtPrintSupport/typesystem_printsupport.xml" generate="no"/>
- <load-typesystem name="templates/webkitwidgets_common.xml" generate="no"/>
-
- <value-type name="QWebDatabase"/>
-
- <object-type name="QWebPluginFactory">
- <enum-type name="Extension"/>
- <value-type name="Plugin"/>
- <value-type name="MimeType"/>
- <modify-function signature="create(const QString &amp;,const QUrl &amp;,const QStringList &amp;,const QStringList &amp;)const">
- <modify-argument index="return">
- <define-ownership class="native" owner="c++"/>
- <define-ownership class="target" owner="target"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QWebHistory"/>
- <object-type name="QWebHistoryInterface"/>
- <value-type name="QWebHistoryItem"/>
-
- <value-type name="QWebSecurityOrigin">
- <enum-type name="SubdomainSetting"/>
- </value-type>
-
- <object-type name="QWebSettings">
- <enum-type name="FontFamily"/>
- <enum-type name="FontSize"/>
- <enum-type name="ThirdPartyCookiePolicy"/>
- <enum-type name="WebAttribute"/>
- <enum-type name="WebGraphic"/>
- </object-type>
-
- <object-type name="QWebView">
- <modify-function signature="setPage(QWebPage*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="page()const">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- <inject-code position="end" file="../glue/qtwebkitwidgets.cpp" snippet="qwebview-page"/>
- </modify-function>
- <modify-function signature="print(QPrinter*)const" rename="print_"/>
- </object-type>
-
- <value-type name="QWebElement" since="4.6">
- <enum-type name="StyleResolveStrategy"/>
- </value-type>
-
- <value-type name="QWebElementCollection" since="4.6">
- <add-function signature="__len__">
- <inject-code file="../glue/qtwebkitwidgets.cpp" snippet="qwebelementcollection-len"/>
- </add-function>
- <add-function signature="__getitem__">
- <inject-code file="../glue/qtwebkitwidgets.cpp" snippet="qwebelementcollection-getitem"/>
- </add-function>
- </value-type>
-
- <object-type name="QWebFrame">
- <enum-type name="RenderLayer" flags="RenderLayers" since="4.6"/>
- <enum-type name="ValueOwnership"/>
- <modify-function signature="addToJavaScriptWindowObject(QString,QObject*,QWebFrame::ValueOwnership)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="print(QPrinter*)const" rename="print_"/>
- <modify-function signature="metaData()const">
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <inject-code position="end" file="../glue/qtwebkitwidgets.cpp" snippet="qwebframe-metadata" />
- </modify-function>
- </object-type>
-
- <object-type name="QWebPage">
- <enum-type name="ErrorDomain"/>
- <enum-type name="Extension"/>
- <enum-type name="Feature"/>
- <enum-type name="FindFlag" flags="FindFlags"/>
- <enum-type name="LinkDelegationPolicy"/>
- <enum-type name="NavigationType"/>
- <enum-type name="PermissionPolicy" since="4.8" revision="4800"/>
- <enum-type name="VisibilityState"/>
- <enum-type name="WebAction"/>
- <enum-type name="WebWindowType"/>
-
- <value-type name="ChooseMultipleFilesExtensionOption"/>
- <value-type name="ChooseMultipleFilesExtensionReturn"/>
- <value-type name="ErrorPageExtensionOption" since="4.6"/>
- <value-type name="ErrorPageExtensionReturn" since="4.6"/>
- <value-type name="ExtensionOption"/>
- <value-type name="ExtensionReturn"/>
- <value-type name="ViewportAttributes"/>
-
- <modify-function signature="extension(QWebPage::Extension,const QWebPage::ExtensionOption*,QWebPage::ExtensionReturn*)">
- <modify-argument index="2" invalidate-after-use="yes">
- <conversion-rule class="target">
- <insert-template name="qwebpage_extension_argument_conversion">
- <replace from="$TYPE_SUFFIX" to="Option"/>
- </insert-template>
- </conversion-rule>
- </modify-argument>
- <modify-argument index="3" invalidate-after-use="yes">
- <conversion-rule class="target">
- <insert-template name="qwebpage_extension_argument_conversion">
- <replace from="$TYPE_SUFFIX" to="Return"/>
- </insert-template>
- </conversion-rule>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="setNetworkAccessManager(QNetworkAccessManager*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="networkAccessManager()const">
- <modify-argument index="return">
- <reference-count action="set" variable-name="setNetworkAccessManager(QNetworkAccessManager*)1"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="view()const">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="pluginFactory()const">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="javaScriptPrompt(QWebFrame*,const QString &amp;,const QString &amp;,QString*)">
- <modify-argument index="4">
- <remove-argument />
- <conversion-rule class="native">
- <insert-template name="qstring_remove"/>
- </conversion-rule>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PySequence"/>
- <conversion-rule class="native">
- <insert-template name="pysequence_qstring"/>
- </conversion-rule>
- <conversion-rule class="target">
- <insert-template name="qstring_pytuple"/>
- </conversion-rule>
- </modify-argument>
- </modify-function>
-
- <add-function signature="qt_metacall()">
- <inject-code class="native" file="../glue/qtwebkitwidgets.cpp" snippet="qwebpage-qt-metacall"/>
- </add-function>
- </object-type>
-
- <value-type name="QWebHitTestResult"/>
-
- <object-type name="QGraphicsWebView" since="4.6"/>
- <object-type name="QWebInspector" since="4.6"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtWebSockets/CMakeLists.txt b/sources/pyside2/PySide2/QtWebSockets/CMakeLists.txt
deleted file mode 100644
index 4a2c765a6..000000000
--- a/sources/pyside2/PySide2/QtWebSockets/CMakeLists.txt
+++ /dev/null
@@ -1,36 +0,0 @@
-project(QtWebSockets)
-
-set(QtWebSockets_SRC
-${QtWebSockets_GEN_DIR}/qmaskgenerator_wrapper.cpp
-${QtWebSockets_GEN_DIR}/qwebsocket_wrapper.cpp
-${QtWebSockets_GEN_DIR}/qwebsocketcorsauthenticator_wrapper.cpp
-${QtWebSockets_GEN_DIR}/qwebsocketprotocol_wrapper.cpp
-${QtWebSockets_GEN_DIR}/qwebsocketserver_wrapper.cpp
-# module is always needed
-${QtWebSockets_GEN_DIR}/qtwebsockets_module_wrapper.cpp
-)
-
-set(QtWebSockets_include_dirs ${QtWebSockets_SOURCE_DIR}
- ${QtWebSockets_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Network_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}WebSockets_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtWebSockets_GEN_DIR}
- ${QtNetwork_GEN_DIR}
- )
-set(QtWebSockets_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}WebSockets_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Network_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- )
-
-set(QtWebSockets_deps QtNetwork)
-
-create_pyside_module(NAME QtWebSockets
- INCLUDE_DIRS QtWebSockets_include_dirs
- LIBRARIES QtWebSockets_libraries
- DEPS QtWebSockets_deps
- TYPESYSTEM_PATH QtWebSockets_SOURCE_DIR
- SOURCES QtWebSockets_SRC)
diff --git a/sources/pyside2/PySide2/QtWebSockets/typesystem_websockets.xml b/sources/pyside2/PySide2/QtWebSockets/typesystem_websockets.xml
deleted file mode 100644
index 4257a998b..000000000
--- a/sources/pyside2/PySide2/QtWebSockets/typesystem_websockets.xml
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtWebSockets">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="QtNetwork/typesystem_network.xml" generate="no"/>
-
- <object-type name="QMaskGenerator"/>
-
- <object-type name="QWebSocket">
- <extra-includes>
- <include file-name="QTcpSocket" location="global"/>
- </extra-includes>
- </object-type>
-
- <object-type name="QWebSocketCorsAuthenticator"/>
-
- <namespace-type name="QWebSocketProtocol">
- <enum-type name="Version"/>
- <enum-type name="CloseCode"/>
- </namespace-type>
-
- <object-type name="QWebSocketServer">
- <enum-type name="SslMode"/>
- <extra-includes>
- <include file-name="QWebSocketCorsAuthenticator" location="global"/>
- </extra-includes>
- </object-type>
-
- <!-- TODO: Gracefully handle the lack of SSL support -->
- <rejection class="QWebSocket" function-name="ignoreSslErrors"/>
- <rejection class="QWebSocket" function-name="setSslConfiguration"/>
- <rejection class="QWebSocket" function-name="sslConfiguration"/>
- <rejection class="QWebSocket" function-name="ignoreSslErrors"/>
- <rejection class="QWebSocket" function-name="sslErrors"/>
- <rejection class="QWebSocketServer" function-name="setSslConfiguration"/>
- <rejection class="QWebSocketServer" function-name="sslConfiguration"/>
- <rejection class="QWebSocketServer" function-name="peerVerifyError"/>
- <rejection class="QWebSocketServer" function-name="sslErrors"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtWidgets/CMakeLists.txt b/sources/pyside2/PySide2/QtWidgets/CMakeLists.txt
deleted file mode 100644
index 506a6fc78..000000000
--- a/sources/pyside2/PySide2/QtWidgets/CMakeLists.txt
+++ /dev/null
@@ -1,236 +0,0 @@
-project(QtWidgets)
-
-set(QtWidgets_SRC
-${QtWidgets_GEN_DIR}/qaccessiblewidget_wrapper.cpp
-${QtWidgets_GEN_DIR}/qabstractbutton_wrapper.cpp
-${QtWidgets_GEN_DIR}/qabstractgraphicsshapeitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qabstractitemdelegate_wrapper.cpp
-${QtWidgets_GEN_DIR}/qabstractitemview_wrapper.cpp
-${QtWidgets_GEN_DIR}/qabstractscrollarea_wrapper.cpp
-${QtWidgets_GEN_DIR}/qabstractslider_wrapper.cpp
-${QtWidgets_GEN_DIR}/qabstractspinbox_wrapper.cpp
-${QtWidgets_GEN_DIR}/qaction_wrapper.cpp
-${QtWidgets_GEN_DIR}/qactiongroup_wrapper.cpp
-${QtWidgets_GEN_DIR}/qapplication_wrapper.cpp
-${QtWidgets_GEN_DIR}/qboxlayout_wrapper.cpp
-${QtWidgets_GEN_DIR}/qbuttongroup_wrapper.cpp
-${QtWidgets_GEN_DIR}/qcalendarwidget_wrapper.cpp
-${QtWidgets_GEN_DIR}/qcheckbox_wrapper.cpp
-${QtWidgets_GEN_DIR}/qcolordialog_wrapper.cpp
-${QtWidgets_GEN_DIR}/qcolormap_wrapper.cpp
-${QtWidgets_GEN_DIR}/qcolumnview_wrapper.cpp
-${QtWidgets_GEN_DIR}/qcombobox_wrapper.cpp
-${QtWidgets_GEN_DIR}/qcommandlinkbutton_wrapper.cpp
-${QtWidgets_GEN_DIR}/qcommonstyle_wrapper.cpp
-${QtWidgets_GEN_DIR}/qcompleter_wrapper.cpp
-${QtWidgets_GEN_DIR}/qdatawidgetmapper_wrapper.cpp
-${QtWidgets_GEN_DIR}/qdateedit_wrapper.cpp
-${QtWidgets_GEN_DIR}/qdatetimeedit_wrapper.cpp
-${QtWidgets_GEN_DIR}/qdesktopwidget_wrapper.cpp
-${QtWidgets_GEN_DIR}/qdial_wrapper.cpp
-${QtWidgets_GEN_DIR}/qdialog_wrapper.cpp
-${QtWidgets_GEN_DIR}/qdialogbuttonbox_wrapper.cpp
-${QtWidgets_GEN_DIR}/qdirmodel_wrapper.cpp
-${QtWidgets_GEN_DIR}/qdockwidget_wrapper.cpp
-${QtWidgets_GEN_DIR}/qdoublespinbox_wrapper.cpp
-${QtWidgets_GEN_DIR}/qerrormessage_wrapper.cpp
-${QtWidgets_GEN_DIR}/qfiledialog_wrapper.cpp
-${QtWidgets_GEN_DIR}/qfileiconprovider_wrapper.cpp
-${QtWidgets_GEN_DIR}/qfilesystemmodel_wrapper.cpp
-${QtWidgets_GEN_DIR}/qfocusframe_wrapper.cpp
-${QtWidgets_GEN_DIR}/qfontcombobox_wrapper.cpp
-${QtWidgets_GEN_DIR}/qfontdialog_wrapper.cpp
-${QtWidgets_GEN_DIR}/qformlayout_wrapper.cpp
-${QtWidgets_GEN_DIR}/qframe_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgesture_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgestureevent_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgesturerecognizer_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsanchor_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsanchorlayout_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsblureffect_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicscolorizeeffect_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsdropshadoweffect_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicseffect_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsellipseitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsgridlayout_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsitemanimation_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsitemgroup_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicslayout_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicslayoutitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicslinearlayout_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicslineitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsobject_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsopacityeffect_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicspathitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicspixmapitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicspolygonitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsproxywidget_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsrectitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsrotation_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsscale_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsscene_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsscenecontextmenuevent_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsscenedragdropevent_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicssceneevent_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsscenehelpevent_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsscenehoverevent_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsscenemouseevent_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsscenemoveevent_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicssceneresizeevent_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsscenewheelevent_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicssimpletextitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicstextitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicstransform_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicsview_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgraphicswidget_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgridlayout_wrapper.cpp
-${QtWidgets_GEN_DIR}/qgroupbox_wrapper.cpp
-${QtWidgets_GEN_DIR}/qhboxlayout_wrapper.cpp
-${QtWidgets_GEN_DIR}/qheaderview_wrapper.cpp
-${QtWidgets_GEN_DIR}/qinputdialog_wrapper.cpp
-${QtWidgets_GEN_DIR}/qitemdelegate_wrapper.cpp
-${QtWidgets_GEN_DIR}/qitemeditorcreatorbase_wrapper.cpp
-${QtWidgets_GEN_DIR}/qitemeditorfactory_wrapper.cpp
-${QtWidgets_GEN_DIR}/qkeyeventtransition_wrapper.cpp
-${QtWidgets_GEN_DIR}/qkeysequenceedit_wrapper.cpp
-${QtWidgets_GEN_DIR}/qlabel_wrapper.cpp
-${QtWidgets_GEN_DIR}/qlayout_wrapper.cpp
-${QtWidgets_GEN_DIR}/qlayoutitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qlcdnumber_wrapper.cpp
-${QtWidgets_GEN_DIR}/qlineedit_wrapper.cpp
-${QtWidgets_GEN_DIR}/qlistview_wrapper.cpp
-${QtWidgets_GEN_DIR}/qlistwidget_wrapper.cpp
-${QtWidgets_GEN_DIR}/qlistwidgetitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qmainwindow_wrapper.cpp
-${QtWidgets_GEN_DIR}/qmdiarea_wrapper.cpp
-${QtWidgets_GEN_DIR}/qmdisubwindow_wrapper.cpp
-${QtWidgets_GEN_DIR}/qmenu_wrapper.cpp
-${QtWidgets_GEN_DIR}/qmenubar_wrapper.cpp
-${QtWidgets_GEN_DIR}/qmessagebox_wrapper.cpp
-${QtWidgets_GEN_DIR}/qmouseeventtransition_wrapper.cpp
-${QtWidgets_GEN_DIR}/qopenglwidget_wrapper.cpp
-${QtWidgets_GEN_DIR}/qpangesture_wrapper.cpp
-${QtWidgets_GEN_DIR}/qpinchgesture_wrapper.cpp
-${QtWidgets_GEN_DIR}/qplaintextdocumentlayout_wrapper.cpp
-${QtWidgets_GEN_DIR}/qplaintextedit_wrapper.cpp
-${QtWidgets_GEN_DIR}/qprogressbar_wrapper.cpp
-${QtWidgets_GEN_DIR}/qprogressdialog_wrapper.cpp
-${QtWidgets_GEN_DIR}/qproxystyle_wrapper.cpp
-${QtWidgets_GEN_DIR}/qpushbutton_wrapper.cpp
-${QtWidgets_GEN_DIR}/qradiobutton_wrapper.cpp
-${QtWidgets_GEN_DIR}/qrubberband_wrapper.cpp
-${QtWidgets_GEN_DIR}/qscrollarea_wrapper.cpp
-${QtWidgets_GEN_DIR}/qscrollbar_wrapper.cpp
-${QtWidgets_GEN_DIR}/qscroller_wrapper.cpp
-${QtWidgets_GEN_DIR}/qscrollerproperties_wrapper.cpp
-${QtWidgets_GEN_DIR}/qshortcut_wrapper.cpp
-${QtWidgets_GEN_DIR}/qsizegrip_wrapper.cpp
-${QtWidgets_GEN_DIR}/qsizepolicy_wrapper.cpp
-${QtWidgets_GEN_DIR}/qslider_wrapper.cpp
-${QtWidgets_GEN_DIR}/qspaceritem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qspinbox_wrapper.cpp
-${QtWidgets_GEN_DIR}/qsplashscreen_wrapper.cpp
-${QtWidgets_GEN_DIR}/qsplitter_wrapper.cpp
-${QtWidgets_GEN_DIR}/qsplitterhandle_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstackedlayout_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstackedwidget_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstatusbar_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyle_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleditemdelegate_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstylefactory_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstylehintreturn_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstylehintreturnmask_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstylehintreturnvariant_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoption_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptionbutton_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptioncombobox_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptioncomplex_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptiondockwidget_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptionfocusrect_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptionframe_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptiongraphicsitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptiongroupbox_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptionheader_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptionmenuitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptionprogressbar_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptionrubberband_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptionsizegrip_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptionslider_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptionspinbox_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptiontab_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptiontabbarbase_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptiontabwidgetframe_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptiontitlebar_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptiontoolbar_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptiontoolbox_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptiontoolbutton_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstyleoptionviewitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qstylepainter_wrapper.cpp
-${QtWidgets_GEN_DIR}/qswipegesture_wrapper.cpp
-${QtWidgets_GEN_DIR}/qsystemtrayicon_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtabbar_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtableview_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtablewidget_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtablewidgetitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtablewidgetselectionrange_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtabwidget_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtapandholdgesture_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtapgesture_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtextbrowser_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtextedit_extraselection_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtextedit_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtilerules_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtimeedit_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtoolbar_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtoolbox_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtoolbutton_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtooltip_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtreeview_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtreewidget_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtreewidgetitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qtreewidgetitemiterator_wrapper.cpp
-${QtWidgets_GEN_DIR}/qundocommand_wrapper.cpp
-${QtWidgets_GEN_DIR}/qundogroup_wrapper.cpp
-${QtWidgets_GEN_DIR}/qundostack_wrapper.cpp
-${QtWidgets_GEN_DIR}/qundoview_wrapper.cpp
-${QtWidgets_GEN_DIR}/qvboxlayout_wrapper.cpp
-${QtWidgets_GEN_DIR}/qwhatsthis_wrapper.cpp
-${QtWidgets_GEN_DIR}/qwidget_wrapper.cpp
-${QtWidgets_GEN_DIR}/qwidgetaction_wrapper.cpp
-${QtWidgets_GEN_DIR}/qwidgetitem_wrapper.cpp
-${QtWidgets_GEN_DIR}/qwizard_wrapper.cpp
-${QtWidgets_GEN_DIR}/qwizardpage_wrapper.cpp
-
-${SPECIFIC_OS_FILES}
-# module is always needed
-${QtWidgets_GEN_DIR}/qtwidgets_module_wrapper.cpp
-)
-
-configure_file("${QtWidgets_SOURCE_DIR}/typesystem_widgets.xml.in"
- "${QtWidgets_BINARY_DIR}/typesystem_widgets.xml" @ONLY)
-
-set(QtWidgets_include_dirs ${QtWidgets_SOURCE_DIR}
- ${QtWidgets_BINARY_DIR}
- ${pyside2_SOURCE_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- )
-set(QtWidgets_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Widgets_LIBRARIES}
- )
-set(QtWidgets_deps QtGui)
-
-create_pyside_module(NAME QtWidgets
- INCLUDE_DIRS QtWidgets_include_dirs
- LIBRARIES QtWidgets_libraries
- DEPS QtWidgets_deps
- TYPESYSTEM_PATH QtWidgets_SOURCE_DIR
- SOURCES QtWidgets_SRC
- TYPESYSTEM_NAME ${QtWidgets_BINARY_DIR}/typesystem_widgets.xml)
diff --git a/sources/pyside2/PySide2/QtWidgets/typesystem_widgets.xml.in b/sources/pyside2/PySide2/QtWidgets/typesystem_widgets.xml.in
deleted file mode 100644
index ea57b7861..000000000
--- a/sources/pyside2/PySide2/QtWidgets/typesystem_widgets.xml.in
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtWidgets">
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
- <load-typesystem name="QtWidgets/typesystem_widgets_@AUTO_OS@.xml" generate="yes"/>
- <load-typesystem name="QtWidgets/typesystem_widgets_common.xml" generate="yes"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_common.xml b/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_common.xml
deleted file mode 100644
index 2d3761d34..000000000
--- a/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_common.xml
+++ /dev/null
@@ -1,3471 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtWidgets">
- <load-typesystem name="templates/core_common.xml" generate="no"/>
- <load-typesystem name="templates/widgets_common.xml" generate="no"/>
-
-
-
- <!-- Qt5: Beware forgetting the following rejection!
- There are anonymous enums "enum { Type = 1 }" etc. in these QGraphics classes, but they
- don't show up as "enum_1", but pretend they were a real enum field, not a value.
-
- """
- Generating class model... [WARNING]
- enum 'QGraphicsItem::UserType' does not have a type entry or is not an enum
- enum 'QGraphicsWidget::Type' does not have a type entry or is not an enum
- enum 'QGraphicsProxyWidget::Type' does not have a type entry or is not an enum
- enum 'QGraphicsEllipseItem::Type' does not have a type entry or is not an enum
- enum 'QGraphicsPixmapItem::Type' does not have a type entry or is not an enum
- enum 'QGraphicsSimpleTextItem::Type' does not have a type entry or is not an enum
- enum 'QGraphicsTextItem::Type' does not have a type entry or is not an enum
- enum 'QGraphicsItemGroup::Type' does not have a type entry or is not an enum
- enum 'QGraphicsRectItem::Type' does not have a type entry or is not an enum
- enum 'QGraphicsLineItem::Type' does not have a type entry or is not an enum
- enum 'QGraphicsPathItem::Type' does not have a type entry or is not an enum
- enum 'QGraphicsPolygonItem::Type' does not have a type entry or is not an enum
- """
- -->
- <rejection class="*" enum-name="enum_1"/>
-
-
- <!--
- Event classes have a lot of non-documented protected fields, those fields
- are removed from PySide because they are Qt implementation details,
- besides the fact they are accessible by ordinary event methods.
- -->
-
- <object-type name="QStyleOption" polymorphic-id-expression="%1-&gt;type == QStyleOption::SO_Default">
- <enum-type name="OptionType"/>
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionGraphicsItem" polymorphic-id-expression="%1-&gt;type == QStyleOptionGraphicsItem::Type &amp;&amp; %1-&gt;version == QStyleOptionGraphicsItem::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionSizeGrip" polymorphic-id-expression="%1-&gt;type == QStyleOptionSizeGrip::Type &amp;&amp; %1-&gt;version == QStyleOptionSizeGrip::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionButton" polymorphic-id-expression="%1-&gt;type == QStyleOptionButton::Type &amp;&amp; %1-&gt;version == QStyleOptionButton::Version">
- <enum-type name="ButtonFeature" flags="ButtonFeatures"/>
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionComboBox" polymorphic-id-expression="%1-&gt;type == QStyleOptionComboBox::Type &amp;&amp; %1-&gt;version == QStyleOptionComboBox::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionComplex" polymorphic-id-expression="%1-&gt;type == QStyleOptionComplex::Type &amp;&amp; %1-&gt;version == QStyleOptionComplex::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionDockWidget" polymorphic-id-expression="%1-&gt;type == QStyleOptionDockWidget::Type &amp;&amp; %1-&gt;version == QStyleOptionDockWidget::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionFocusRect" polymorphic-id-expression="%1-&gt;type == QStyleOptionFocusRect::Type &amp;&amp; %1-&gt;version == QStyleOptionFocusRect::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionFrame" polymorphic-id-expression="%1-&gt;type == QStyleOptionFrame::Type &amp;&amp; %1-&gt;version == QStyleOptionFrame::Version">
- <enum-type name="FrameFeature" flags="FrameFeatures"/>
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionGroupBox" polymorphic-id-expression="%1-&gt;type == QStyleOptionGroupBox::Type &amp;&amp; %1-&gt;version == QStyleOptionGroupBox::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionHeader" polymorphic-id-expression="%1-&gt;type == QStyleOptionHeader::Type &amp;&amp; %1-&gt;version == QStyleOptionHeader::Version">
- <enum-type name="SectionPosition"/>
- <enum-type name="SelectedPosition"/>
- <enum-type name="SortIndicator"/>
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionMenuItem" polymorphic-id-expression="%1-&gt;type == QStyleOptionMenuItem::Type &amp;&amp; %1-&gt;version == QStyleOptionMenuItem::Version">
- <enum-type name="CheckType"/>
- <enum-type name="MenuItemType"/>
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionProgressBar" polymorphic-id-expression="%1-&gt;type == QStyleOptionProgressBar::Type &amp;&amp; %1-&gt;version == QStyleOptionProgressBar::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionRubberBand" polymorphic-id-expression="%1-&gt;type == QStyleOptionRubberBand::Type &amp;&amp; %1-&gt;version == QStyleOptionRubberBand::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionSlider" polymorphic-id-expression="%1-&gt;type == QStyleOptionSlider::Type &amp;&amp; %1-&gt;version == QStyleOptionSlider::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionSpinBox" polymorphic-id-expression="%1-&gt;type == QStyleOptionSpinBox::Type &amp;&amp; %1-&gt;version == QStyleOptionSpinBox::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionTab" polymorphic-id-expression="%1-&gt;type == QStyleOptionTab::Type &amp;&amp; %1-&gt;version == QStyleOptionTab::Version">
- <enum-type name="CornerWidget" flags="CornerWidgets"/>
- <enum-type name="SelectedPosition"/>
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- <enum-type name="TabFeature" flags="TabFeatures"/>
- <enum-type name="TabPosition"/>
- </object-type>
- <object-type name="QStyleOptionTabBarBase" polymorphic-id-expression="%1-&gt;type == QStyleOptionTabBarBase::Type &amp;&amp; %1-&gt;version == QStyleOptionTabBarBase::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionTabWidgetFrame" polymorphic-id-expression="%1-&gt;type == QStyleOptionTabWidgetFrame::Type &amp;&amp; %1-&gt;version == QStyleOptionTabWidgetFrame::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionTitleBar" polymorphic-id-expression="%1-&gt;type == QStyleOptionTitleBar::Type &amp;&amp; %1-&gt;version == QStyleOptionTitleBar::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleOptionToolBar" polymorphic-id-expression="%1-&gt;type == QStyleOptionToolBar::Type &amp;&amp; %1-&gt;version == QStyleOptionToolBar::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- <enum-type name="ToolBarFeature" flags="ToolBarFeatures"/>
- <enum-type name="ToolBarPosition"/>
- </object-type>
- <object-type name="QStyleOptionToolBox" polymorphic-id-expression="%1-&gt;type == QStyleOptionToolBox::Type &amp;&amp; %1-&gt;version == QStyleOptionToolBox::Version">
- <enum-type name="SelectedPosition"/>
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- <enum-type name="TabPosition"/>
- </object-type>
- <object-type name="QStyleOptionToolButton" polymorphic-id-expression="%1-&gt;type == QStyleOptionToolButton::Type &amp;&amp; %1-&gt;version == QStyleOptionToolButton::Version">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- <enum-type name="ToolButtonFeature" flags="ToolButtonFeatures"/>
- </object-type>
- <value-type name="QStyleOptionViewItem" polymorphic-id-expression="%1-&gt;type == QStyleOptionViewItem::Type &amp;&amp; %1-&gt;version == QStyleOptionViewItem::Version">
- <enum-type name="Position"/>
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- <enum-type name="ViewItemFeature" flags="ViewItemFeatures"/>
- <enum-type name="ViewItemPosition"/>
- </value-type>
-
- <object-type name="QAccessibleWidget"/>
- <value-type name="QColormap">
- <enum-type name="Mode"/>
- </value-type>
- <value-type name="QSizePolicy">
- <enum-type name="ControlType" flags="ControlTypes"/>
- <enum-type name="Policy"/>
- <enum-type name="PolicyFlag"/>
- </value-type>
- <value-type name="QTableWidgetSelectionRange"/>
-
- <value-type name="QTreeWidgetItemIterator" >
- <modify-function signature="QTreeWidgetItemIterator(QTreeWidget*,QFlags&lt;QTreeWidgetItemIterator::IteratorFlag&gt;)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
-
- <add-function signature="__iter__()" return-type="PyObject*">
- <inject-code class="target" position="beginning">
- <insert-template name="__iter__"/>
- </inject-code>
- </add-function>
- <add-function signature="__next__()" return-type="PyObject*">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qtreewidgetitemiterator-next"/>
- </add-function>
-
- <add-function signature="value()" return-type="QTreeWidgetItem*">
- <inject-code file="../glue/qtwidgets.cpp" snippet="qtreewidgetitemiterator-value"/>
- </add-function>
- <enum-type name="IteratorFlag" flags="IteratorFlags"/>
- <!-- ### See bug 778 -->
- <modify-function signature="operator++(int)" remove="all"/>
- <modify-function signature="operator--(int)" remove="all"/>
- <modify-function signature="operator++()" remove="all"/>
- <modify-function signature="operator--()" remove="all"/>
- <!-- ### Operator* doesn't make sense in Python. -->
- <modify-function signature="operator*()const" remove="all"/>
- <!-- ### -->
- </value-type>
-
- <object-type name="QLayoutItem">
-
- <modify-function signature="widget()">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="layout()">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="spacerItem()">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QGraphicsItem">
- <enum-type name="CacheMode"/>
- <enum-type name="Extension"/>
- <enum-type name="GraphicsItemChange"/>
- <enum-type name="GraphicsItemFlag" flags="GraphicsItemFlags"/>
- <enum-type name="PanelModality" since="4.6"/>
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="qgraphicsitem"/>
- <modify-function signature="setParentItem(QGraphicsItem*)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="scene()const">
- <inject-code position="end" file="../glue/qtwidgets.cpp" snippet="qgraphicsitem-scene-return-parenting"/>
- <modify-argument index="this">
- <parent index="return" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="parentItem()const">
- <modify-argument index="return">
- <define-ownership owner="target"/>
- </modify-argument>
- <modify-argument index="this">
- <parent index="return" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="parentWidget()const">
- <modify-argument index="this">
- <parent index="return" action="add"/>
- </modify-argument>
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="paint(QPainter*,const QStyleOptionGraphicsItem*,QWidget*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="collidesWithItem(const QGraphicsItem*,Qt::ItemSelectionMode)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="contextMenuEvent(QGraphicsSceneContextMenuEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="dragEnterEvent(QGraphicsSceneDragDropEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="dragLeaveEvent(QGraphicsSceneDragDropEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="dragMoveEvent(QGraphicsSceneDragDropEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="dropEvent(QGraphicsSceneDragDropEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="focusInEvent(QFocusEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="focusOutEvent(QFocusEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="hoverEnterEvent(QGraphicsSceneHoverEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="hoverLeaveEvent(QGraphicsSceneHoverEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="hoverMoveEvent(QGraphicsSceneHoverEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="inputMethodEvent(QInputMethodEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="isBlockedByModalPanel(QGraphicsItem**)const" since="4.6">
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(retval, blockingPanel)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qgraphicsitem-isblockedbymodalpanel"/>
- </modify-function>
- <modify-function signature="itemTransform(const QGraphicsItem*,bool*)const">
- <modify-argument index="2">
- <remove-argument />
- <remove-default-expression />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(QTransform, bool ok)"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- <modify-function signature="isObscuredBy(const QGraphicsItem*)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="keyPressEvent(QKeyEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="keyReleaseEvent(QKeyEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="mouseDoubleClickEvent(QGraphicsSceneMouseEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="mouseMoveEvent(QGraphicsSceneMouseEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="mousePressEvent(QGraphicsSceneMouseEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="mouseReleaseEvent(QGraphicsSceneMouseEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="sceneEvent(QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="sceneEventFilter(QGraphicsItem*,QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- <modify-argument index="2" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="wheelEvent(QGraphicsSceneWheelEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="setGraphicsEffect(QGraphicsEffect*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <!-- ### These methods are internal on Qt. -->
- <modify-function signature="supportsExtension(QGraphicsItem::Extension)const" remove="all"/>
- <modify-function signature="setExtension(QGraphicsItem::Extension,QVariant)" remove="all"/>
- <!-- ### -->
- </object-type>
- <object-type name="QAbstractGraphicsShapeItem"/>
- <object-type name="QAbstractItemView">
- <enum-type name="CursorAction"/>
- <enum-type name="DragDropMode"/>
- <enum-type name="DropIndicatorPosition"/>
- <enum-type name="EditTrigger" flags="EditTriggers"/>
- <enum-type name="ScrollHint"/>
- <enum-type name="ScrollMode"/>
- <enum-type name="SelectionBehavior"/>
- <enum-type name="SelectionMode"/>
- <enum-type name="State"/>
- <modify-function signature="setModel(QAbstractItemModel*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setSelectionModel(QItemSelectionModel*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItemDelegate(QAbstractItemDelegate*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItemDelegateForColumn(int,QAbstractItemDelegate*)">
- <modify-argument index="2">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItemDelegateForRow(int,QAbstractItemDelegate*)">
- <modify-argument index="2">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="viewOptions()const">
- <modify-argument index="return">
- <replace-default-expression with="QStyleOptionViewItem()"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="model()const">
- <modify-argument index="return">
- <!-- Defining ownership as "default" avoids the object to be automatically
- set as parent of the returned pointer. -->
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="selectionModel()const">
- <modify-argument index="return">
- <!-- Defining ownership as "default" avoids the object to be automatically
- set as parent of the returned pointer. -->
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setIndexWidget(const QModelIndex &amp;,QWidget*)" allow-thread="yes">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="edit(QModelIndex,QAbstractItemView::EditTrigger,QEvent*)">
- <modify-argument index="3" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="selectionCommand(QModelIndex,const QEvent*)const">
- <modify-argument index="2" invalidate-after-use="yes"/>
- </modify-function>
- </object-type>
- <object-type name="QAbstractSlider">
- <enum-type name="SliderAction"/>
- <enum-type name="SliderChange"/>
- </object-type>
- <object-type name="QActionGroup">
- <enum-type name="ExclusionPolicy" since="5.14"/>
- <modify-function signature="addAction(QAction*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeAction(QAction*)">
- <modify-argument index="1">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QCheckBox"/>
- <object-type name="QCommonStyle">
- </object-type>
- <object-type name="QDataWidgetMapper">
- <enum-type name="SubmitPolicy"/>
- <modify-function signature="addMapping(QWidget*,int)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addMapping(QWidget*,int,QByteArray)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeMapping(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItemDelegate(QAbstractItemDelegate*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setModel(QAbstractItemModel*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QDateEdit"/>
- <object-type name="QDialog">
- <enum-type name="DialogCode"/>
- <modify-function signature="exec()" rename="exec_" allow-thread="yes"/>
- </object-type>
- <object-type name="QDialogButtonBox">
- <enum-type name="ButtonLayout"/>
- <enum-type name="ButtonRole"/>
- <enum-type name="StandardButton" flags="StandardButtons"/>
- <modify-function signature="addButton(QAbstractButton*,QDialogButtonBox::ButtonRole)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeButton(QAbstractButton*)">
- <modify-argument index="1">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QDirModel" polymorphic-id-expression="qobject_cast&lt;QDirModel*&gt;(%1)">
- <enum-type name="Roles"/>
- <modify-function signature="setIconProvider(QFileIconProvider*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QFileIconProvider">
- <enum-type name="IconType"/>
- <enum-type name="Option" flags="Options"/>
- </object-type>
- <object-type name="QWizard">
- <enum-type name="WizardButton"/>
- <enum-type name="WizardOption" flags="WizardOptions"/>
- <enum-type name="WizardPixmap"/>
- <enum-type name="WizardStyle"/>
- <modify-function signature="addPage(QWizardPage*)">
- <modify-argument index="1">
- <no-null-pointer/>
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setButton(QWizard::WizardButton,QAbstractButton*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QWizardPage">
- <modify-function signature="wizard()const">
- <modify-argument index="this">
- <parent index="return" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="registerField(const QString&amp;,QWidget*,const char*,const char*)" allow-thread="yes"/>
- </object-type>
- <object-type name="QFocusFrame">
- <modify-function signature="setWidget(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QFontComboBox">
- <enum-type name="FontFilter" flags="FontFilters"/>
- </object-type>
- <object-type name="QFontDialog">
- <enum-type name="FontDialogOption" flags="FontDialogOptions"/>
- <modify-function signature="getFont(bool*,QWidget*)" allow-thread="yes">
- <modify-argument index="1">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyTuple"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="bool*_fix,arg"/>
- </inject-code>
- </modify-function>
- <modify-function signature="getFont(bool*,QFont,QWidget*,QString,QFlags&lt;QFontDialog::FontDialogOption&gt;)" allow-thread="yes">
- <modify-argument index="1">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyTuple"/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="bool*_fix,arg,arg,arg,arg"/>
- </inject-code>
- </modify-function>
- </object-type>
- <object-type name="QGraphicsEllipseItem"/>
- <object-type name="QGraphicsItemAnimation">
- <modify-function signature="setItem(QGraphicsItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setTimeLine(QTimeLine*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <extra-includes>
- <include file-name="QPair" location="global"/>
- </extra-includes>
- </object-type>
- <object-type name="QGraphicsItemGroup">
- <modify-function signature="addToGroup(QGraphicsItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QGraphicsLineItem"/>
- <object-type name="QGraphicsPathItem"/>
- <object-type name="QGraphicsPixmapItem">
- <enum-type name="ShapeMode"/>
- </object-type>
- <object-type name="QGraphicsPolygonItem"/>
- <object-type name="QGraphicsRectItem"/>
- <object-type name="QGraphicsSimpleTextItem"/>
- <object-type name="QHBoxLayout"/>
- <object-type name="QHeaderView">
- <enum-type name="ResizeMode"/>
- <modify-function signature="paintSection(QPainter*,QRect,int)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- </object-type>
- <object-type name="QItemDelegate">
- <!-- ### "doLayout(...)" is an internal method. -->
- <modify-function signature="doLayout(QStyleOptionViewItem,QRect*,QRect*,QRect*,bool)const" remove="all"/>
- <!-- ### "selected(QPixmap,QPalette,bool)" is an internal method. -->
- <modify-function signature="selected(QPixmap,QPalette,bool)const" remove="all"/>
- <!-- ### -->
- <modify-function signature="drawCheck(QPainter*,QStyleOptionViewItem,QRect,Qt::CheckState)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="drawDecoration(QPainter*,QStyleOptionViewItem,QRect,QPixmap)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="drawDisplay(QPainter*,QStyleOptionViewItem,QRect,QString)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="drawFocus(QPainter*,QStyleOptionViewItem,QRect)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="setItemEditorFactory(QItemEditorFactory*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QItemEditorCreatorBase">
- <modify-function signature="createWidget(QWidget*)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- </object-type>
- <object-type name="QItemEditorFactory">
- <modify-function signature="registerEditor(int,QItemEditorCreatorBase*)">
- <modify-argument index="2">
- <reference-count action="set"/>
- </modify-argument>
- <inject-code file="../glue/qtwidgets.cpp" snippet="qitemeditorfactory-registereditor"/>
- </modify-function>
- <modify-function signature="setDefaultFactory(QItemEditorFactory*)">
- <modify-argument index="1">
- <define-ownership owner="c++"/>
- </modify-argument>
- <inject-code file="../glue/qtwidgets.cpp" snippet="qitemeditorfactory-setdefaultfactory"/>
- </modify-function>
- </object-type>
- <object-type name="QListView">
- <enum-type name="Flow"/>
- <enum-type name="LayoutMode"/>
- <enum-type name="Movement"/>
- <enum-type name="ResizeMode"/>
- <enum-type name="ViewMode"/>
- </object-type>
- <object-type name="QColumnView">
- <modify-function signature="setPreviewWidget(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QMainWindow">
- <enum-type name="DockOption" flags="DockOptions"/>
- <modify-function signature="setCentralWidget(QWidget*)">
- <inject-code class="target" position="beginning">
- <insert-template name="replace_child">
- <replace from="$FUNCTION_GET_OLD" to="centralWidget"/>
- <replace from="$CHILD_TYPE" to="QWidget"/>
- <replace from="$PYARG" to="%PYARG_1"/>
- <replace from="$CPPARG" to="%1"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setMenuBar(QMenuBar*)">
- <inject-code class="target" position="beginning">
- <insert-template name="replace_child">
- <replace from="$FUNCTION_GET_OLD" to="menuBar"/>
- <replace from="$CHILD_TYPE" to="QMenuBar"/>
- <replace from="$PYARG" to="%PYARG_1"/>
- <replace from="$CPPARG" to="%1"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setMenuWidget(QWidget*)">
- <inject-code class="target" position="beginning">
- <insert-template name="replace_child">
- <replace from="$FUNCTION_GET_OLD" to="menuWidget"/>
- <replace from="$CHILD_TYPE" to="QWidget"/>
- <replace from="$PYARG" to="%PYARG_1"/>
- <replace from="$CPPARG" to="%1"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="setStatusBar(QStatusBar*)">
- <inject-code class="target" position="beginning">
- <insert-template name="replace_child">
- <replace from="$FUNCTION_GET_OLD" to="statusBar"/>
- <replace from="$CHILD_TYPE" to="QStatusBar"/>
- <replace from="$PYARG" to="%PYARG_1"/>
- <replace from="$CPPARG" to="%1"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <modify-function signature="addDockWidget(Qt::DockWidgetArea,QDockWidget*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addDockWidget(Qt::DockWidgetArea,QDockWidget*,Qt::Orientation)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <!-- this fuction is declared when not defined QT_NO_TOOLBA -->
- <modify-function signature="addToolBar(Qt::ToolBarArea,QToolBar*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addToolBar(QToolBar*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addToolBar(const QString&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <!--- END QT_NO_TOOLBAR -->
- <modify-function signature="removeDockWidget(QDockWidget*)">
- <modify-argument index="1">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeToolBar(QToolBar*)">
- <modify-argument index="1">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeDockWidget(QDockWidget*)">
- <modify-argument index="2">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
-
- </object-type>
- <object-type name="QMdiArea">
- <enum-type name="AreaOption" flags="AreaOptions"/>
- <enum-type name="ViewMode"/>
- <enum-type name="WindowOrder"/>
- <modify-function signature="addSubWindow(QWidget*,QFlags&lt;Qt::WindowType&gt;)" >
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeSubWindow(QWidget*)" allow-thread="yes"/>
- </object-type>
- <object-type name="QMdiSubWindow">
- <enum-type name="SubWindowOption" flags="SubWindowOptions"/>
- <modify-function signature="setWidget(QWidget*)" allow-thread="yes">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setSystemMenu(QMenu*)" allow-thread="yes">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QMenu">
- <inject-code class="native" position="beginning" file="../glue/qtwidgets.cpp" snippet="qmenu-glue"/>
-
- <modify-function signature="exec()" rename="exec_" allow-thread="yes"/>
- <modify-function signature="exec(const QPoint&amp;,QAction*)" rename="exec_" allow-thread="yes"/>
- <modify-function signature="exec(QList&lt;QAction*>,const QPoint&amp;,QAction*,QWidget*)" rename="exec_" allow-thread="yes"/>
- <modify-function signature="addAction(const QString&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addMenu(QMenu*)">
- <modify-argument index="return">
- <parent index="1" action="add"/>
- </modify-argument>
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addMenu(const QString&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addMenu(const QIcon &amp;,const QString &amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertMenu(QAction*,QMenu*)">
- <modify-argument index="return">
- <parent index="2" action="add"/>
- </modify-argument>
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addMenu(const QString&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addMenu(const QIcon &amp;,const QString &amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <!-- ### "setNoReplayFor(QWidget*)" is an internal method. -->
- <modify-function signature="setNoReplayFor(QWidget*)" remove="all"/>
-
- <add-function signature="addAction(QString&amp;,PyObject*,QKeySequence&amp;)">
- <modify-argument index="3">
- <replace-default-expression with="0"/>
- </modify-argument>
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
-
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qmenu-addaction-1"/>
- </add-function>
-
- <add-function signature="addAction(QIcon&amp;,QString&amp;,PyObject*,QKeySequence&amp;)">
- <modify-argument index="4">
- <replace-default-expression with="0"/>
- </modify-argument>
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
-
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qmenu-addaction-2"/>
- </add-function>
-
- <add-function signature="addAction(QAction*)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qmenu-addaction-3"/>
- </add-function>
-
- <modify-function signature="clear()">
- <inject-code file="../glue/qtwidgets.cpp" snippet="qmenu-clear"/>
- </modify-function>
-
- </object-type>
-
- <object-type name="QMenuBar">
- <inject-code class="native" position="beginning" file="../glue/qtwidgets.cpp" snippet="qmenubar-glue"/>
- <modify-function signature="addAction(const QString&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addAction(QString,const QObject*,const char*)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <add-function signature="addAction(const QString&amp;,PyObject*)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qmenubar-addaction-1"/>
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </add-function>
- <modify-function signature="addMenu(QMenu*)">
- <modify-argument index="return">
- <parent index="1" action="add"/>
- </modify-argument>
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addSeparator()">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertMenu(QAction*,QMenu*)">
- <modify-argument index="return">
- <parent index="2" action="add"/>
- </modify-argument>
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertSeparator(QAction*)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="clear()">
- <inject-code file="../glue/qtwidgets.cpp" snippet="qmenubar-clear"/>
- </modify-function>
-
- <add-function signature="addAction(QAction*)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qmenubar-addaction-2"/>
- </add-function>
-
- </object-type>
- <object-type name="QProgressBar">
- <enum-type name="Direction"/>
- </object-type>
- <object-type name="QProxyStyle">
- <modify-function signature="QProxyStyle(QStyle*)">
- <modify-argument index="1">
- <define-ownership owner="c++"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QPushButton"/>
- <object-type name="QScrollArea">
- <modify-function signature="setWidget(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QShortcut">
- <add-function signature="QShortcut(QKeySequence&amp;,QWidget*,PyCallable*,Qt::ShortcutContext)">
- <modify-argument index="4">
- <replace-default-expression with="Qt::WindowShortcut"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qshortcut-1"/>
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="qshortcut-2"/>
- </add-function>
- </object-type>
- <object-type name="QSpacerItem"/>
- <object-type name="QStatusBar">
- <modify-function signature="addWidget(QWidget*,int)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addPermanentWidget(QWidget*,int)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertWidget(int,QWidget*,int)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertPermanentWidget(int,QWidget*,int)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QStyleFactory">
- <modify-function signature="create(const QString&amp;)">
- <modify-argument index="return">
- <define-ownership owner="target"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QStyleHintReturn">
- <enum-type name="HintReturnType"/>
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleHintReturnVariant">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStyleHintReturnMask">
- <enum-type name="StyleOptionType"/>
- <enum-type name="StyleOptionVersion"/>
- </object-type>
- <object-type name="QStylePainter"/>
- <object-type name="QTableView">
- <modify-function signature="setHorizontalHeader(QHeaderView*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setVerticalHeader(QHeaderView*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QTimeEdit"/>
- <object-type name="QToolBox">
- <modify-function signature="addItem(QWidget*,const QIcon&amp;,const QString&amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addItem(QWidget*,const QString&amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertItem(int,QWidget*,const QIcon&amp;,const QString&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertItem(int,QWidget*,const QString&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeItem(int)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qtoolbox-removeitem"/>
- </modify-function>
- </object-type>
- <object-type name="QToolButton">
- <enum-type name="ToolButtonPopupMode"/>
- <modify-function signature="setDefaultAction(QAction*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setMenu(QMenu*)">
- </modify-function>
- </object-type>
- <object-type name="QToolTip"/>
- <object-type name="QTreeView">
- <modify-function signature="drawBranches(QPainter*,QRect,QModelIndex)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="drawRow(QPainter*,QStyleOptionViewItem,QModelIndex)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="setHeader(QHeaderView*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QUndoCommand">
- <modify-function signature="mergeWith(const QUndoCommand*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- </object-type>
- <object-type name="QUndoGroup">
- <modify-function signature="addStack(QUndoStack*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeStack(QUndoStack*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QUndoStack">
- <modify-function signature="createUndoAction(QObject*,const QString&amp;)const">
- <modify-argument index="return">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="createRedoAction(QObject*,const QString&amp;)const">
- <modify-argument index="return">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="push(QUndoCommand*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QUndoView">
- <modify-function signature="setGroup(QUndoGroup*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setStack(QUndoStack*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="QUndoView(QUndoGroup*,QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="QUndoView(QUndoStack*,QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QVBoxLayout"/>
-
- <object-type name="QWhatsThis"/>
- <object-type name="QWidgetAction">
- <modify-function signature="setDefaultWidget(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="releaseWidget(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QWidgetItem" polymorphic-id-expression="%1-&gt;widget()"/>
-
- <object-type name="QGraphicsSceneContextMenuEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::GraphicsSceneContextMenu">
- <enum-type name="Reason"/>
- </object-type>
- <object-type name="QGraphicsSceneDragDropEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::GraphicsSceneDragEnter || %1-&gt;type() == QEvent::GraphicsSceneDragLeave || %1-&gt;type() == QEvent::GraphicsSceneDragMove || %1-&gt;type() == QEvent::GraphicsSceneDrop" >
- <!-- ### "setMimeData(const QMimeData*)" is an internal method. -->
- <modify-function signature="setMimeData(const QMimeData*)" remove="all"/>
- <!-- ### "setSource(QWidget*)" is an internal method. -->
- <modify-function signature="setSource(QWidget*)" remove="all"/>
- <!-- ### -->
- </object-type>
- <object-type name="QGraphicsSceneEvent" copyable="false">
- <!-- ### "setWidget(QWidget*)" is an internal method. -->
- <modify-function signature="setWidget(QWidget*)" remove="all"/>
- </object-type>
- <object-type name="QGraphicsSceneMoveEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::GraphicsSceneMove"/>
- <object-type name="QGraphicsSceneResizeEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::GraphicsSceneResize"/>
- <object-type name="QGraphicsSceneHelpEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::GraphicsSceneHelp"/>
- <object-type name="QGraphicsSceneHoverEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::GraphicsSceneHoverEnter || %1-&gt;type() == QEvent::GraphicsSceneHoverLeave || %1-&gt;type() == QEvent::GraphicsSceneHoverMove"/>
- <object-type name="QGraphicsSceneMouseEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::GraphicsSceneMouseDoubleClick || %1-&gt;type() == QEvent::GraphicsSceneMouseMove || %1-&gt;type() == QEvent::GraphicsSceneMousePress || %1-&gt;type() == QEvent::GraphicsSceneMouseRelease"/>
- <object-type name="QGraphicsSceneWheelEvent" copyable="false" polymorphic-id-expression="%1-&gt;type() == QEvent::GraphicsSceneWheel"/>
-
- <object-type name="QGestureEvent" polymorphic-id-expression="%1-&gt;type() == QEvent::Gesture || %1-&gt;type() == QEvent::GestureOverride" since="4.6">
- <modify-function signature="activeGestures()const">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="canceledGestures()const">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="gestures()const">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="gesture(Qt::GestureType)const">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="widget()const">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QAbstractButton"/>
- <object-type name="QStyle">
- <enum-type name="ComplexControl"/>
- <enum-type name="ContentsType"/>
- <enum-type name="ControlElement"/>
- <enum-type name="PixelMetric"/>
- <enum-type name="PrimitiveElement"/>
- <enum-type name="RequestSoftwareInputPanel" since="4.6"/>
- <enum-type name="StandardPixmap"/>
- <enum-type name="StateFlag" flags="State"/>
- <enum-type name="StyleHint"/>
- <enum-type name="SubControl" flags="SubControls"/>
- <enum-type name="SubElement"/>
- <modify-function signature="drawComplexControl(QStyle::ComplexControl,const QStyleOptionComplex*,QPainter*,const QWidget*)const">
- <modify-argument index="3" invalidate-after-use="yes"/>
- <modify-argument index="4">
- <replace-default-expression with="0"/>
- <rename to="widget"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="drawControl(QStyle::ControlElement,const QStyleOption*,QPainter*,const QWidget*)const">
- <modify-argument index="3" invalidate-after-use="yes"/>
- <modify-argument index="4">
- <replace-default-expression with="0"/>
- <rename to="widget"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="drawPrimitive(QStyle::PrimitiveElement,const QStyleOption*,QPainter*,const QWidget*)const">
- <modify-argument index="3" invalidate-after-use="yes"/>
- <modify-argument index="4">
- <replace-default-expression with="0"/>
- <rename to="widget"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="hitTestComplexControl(QStyle::ComplexControl,const QStyleOptionComplex*,const QPoint&amp;,const QWidget*)const">
- <modify-argument index="4">
- <replace-default-expression with="0"/>
- <rename to="widget"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="styleHint(QStyle::StyleHint,const QStyleOption*,const QWidget*,QStyleHintReturn*)const">
- <modify-argument index="4" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="drawItemPixmap(QPainter*,QRect,int,QPixmap)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="drawItemText(QPainter*,QRect,int,QPalette,bool,QString,QPalette::ColorRole)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- </object-type>
- <object-type name="QColorDialog">
- <enum-type name="ColorDialogOption" flags="ColorDialogOptions"/>
- <modify-function signature="getColor(const QColor&amp;,QWidget*,const QString&amp;,QFlags&lt;QColorDialog::ColorDialogOption>)" allow-thread="yes"/>
- <!-- Qt5: obsolete -->
- <modify-function signature="getRgba(unsigned int,bool*,QWidget*)" remove="all"/>
- </object-type>
-
- <object-type name="QLayout">
- <inject-code class="native" position="beginning" file="../glue/qtwidgets.cpp" snippet="qlayout-help-functions"/>
-
- <enum-type name="SizeConstraint"/>
-
- <modify-function signature="itemAt(int)const">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="addownership-0"/>
- </modify-function>
-
- <modify-function signature="removeWidget(QWidget*)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="removeownership-1"/>
- </modify-function>
- <modify-function signature="removeItem(QLayoutItem*)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="removeownership-1"/>
- </modify-function>
-
- <modify-function signature="parentWidget()const">
- <modify-argument index="this">
- <parent index="return" action="add"/>
- </modify-argument>
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="takeAt(int)">
- <modify-argument index="return">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="addItem(QLayoutItem*)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-1"/>
- </modify-function>
-
- <modify-function signature="addWidget(QWidget*)" allow-thread="yes">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-1"/>
- </modify-function>
- <modify-function signature="addChildWidget(QWidget*)" allow-thread="yes">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-1"/>
- </modify-function>
- <modify-function signature="addChildLayout(QLayout*)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-1"/>
- </modify-function>
- <modify-function signature="setMenuBar(QWidget*)" allow-thread="yes">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-1"/>
- </modify-function>
-
- <modify-function signature="getContentsMargins(int*,int*,int*,int*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="int"/>
- </insert-template>
- </inject-code>
- <inject-code class="native" position="end">
- <insert-template name="fix_native_return_number*,number*,number*,number*">
- <replace from="$TYPE" to="int"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <add-function signature="setAlignment(QFlags&lt;Qt::AlignmentFlag&gt;)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qlayout-setalignment"/>
- </add-function>
-
- </object-type>
-
- <object-type name="QStackedLayout">
- <inject-code class="native" position="beginning" file="../glue/qtwidgets.cpp" snippet="qlayout-help-functions"/>
- <enum-type name="StackingMode"/>
- <modify-function signature="insertWidget(int,QWidget*)" allow-thread="yes">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-2"/>
- </modify-function>
- <modify-function signature="addWidget(QWidget*)" allow-thread="yes">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-1"/>
- </modify-function>
- </object-type>
-
- <object-type name="QBoxLayout">
- <inject-code class="native" position="beginning" file="../glue/qtwidgets.cpp" snippet="qlayout-help-functions"/>
-
- <enum-type name="Direction"/>
-
- <modify-function signature="addWidget(QWidget*,int,QFlags&lt;Qt::AlignmentFlag&gt;)" allow-thread="yes">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-1"/>
- </modify-function>
-
- <modify-function signature="addLayout(QLayout*,int)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-1"/>
- </modify-function>
-
- <modify-function signature="insertWidget(int,QWidget*,int,QFlags&lt;Qt::AlignmentFlag&gt;)" allow-thread="yes">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-2"/>
- </modify-function>
- <modify-function signature="insertLayout(int,QLayout*,int)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-2"/>
- </modify-function>
- <modify-function signature="insertItem(int,QLayoutItem*)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-2"/>
- </modify-function>
- <modify-function signature="addSpacerItem(QSpacerItem*)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-1"/>
- </modify-function>
- <modify-function signature="insertSpacerItem(int,QSpacerItem*)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-2"/>
- </modify-function>
- </object-type>
-
- <object-type name="QGridLayout">
- <inject-code class="native" position="beginning" file="../glue/qtwidgets.cpp" snippet="qlayout-help-functions"/>
- <modify-function signature="itemAtPosition (int,int)const">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="addownership-0"/>
- </modify-function>
- <modify-function signature="addWidget(QWidget*,int,int,QFlags&lt;Qt::AlignmentFlag&gt;)">
- <modify-argument index="4">
- <rename to="alignment"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-1"/>
- </modify-function>
- <modify-function signature="addWidget(QWidget*,int,int,int,int,QFlags&lt;Qt::AlignmentFlag&gt;)">
- <modify-argument index="6">
- <rename to="alignment"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-1"/>
- </modify-function>
- <modify-function signature="addLayout(QLayout*,int,int,QFlags&lt;Qt::AlignmentFlag&gt;)">
- <modify-argument index="4">
- <rename to="alignment"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-1"/>
- </modify-function>
- <modify-function signature="addLayout(QLayout*,int,int,int,int,QFlags&lt;Qt::AlignmentFlag&gt;)">
- <modify-argument index="6">
- <rename to="alignment"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-1"/>
- </modify-function>
- <modify-function signature="addItem(QLayoutItem*,int,int,int,int,QFlags&lt;Qt::AlignmentFlag&gt;)">
- <modify-argument index="4">
- <rename to="rowSpan"/>
- </modify-argument>
- <modify-argument index="5">
- <rename to="columnSpan"/>
- </modify-argument>
- <modify-argument index="6">
- <rename to="alignment"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="addownership-1"/>
- </modify-function>
- <modify-function signature="getItemPosition(int,int*,int*,int*,int*)const">
- <modify-argument index="return">
- <replace-type modified-type="PyObject*"/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="5">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qgridlayout-getitemposition"/>
- </modify-function>
- </object-type>
-
- <object-type name="QGraphicsView">
- <extra-includes>
- <include file-name="QPainterPath" location="global"/>
- <include file-name="QVarLengthArray" location="global"/>
- </extra-includes>
- <enum-type name="CacheModeFlag" flags="CacheMode"/>
- <enum-type name="DragMode"/>
- <enum-type name="OptimizationFlag" flags="OptimizationFlags"/>
- <enum-type name="ViewportAnchor"/>
- <enum-type name="ViewportUpdateMode"/>
- <modify-function signature="setScene(QGraphicsScene*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="scene()const">
- <inject-code position="end" file="../glue/qtwidgets.cpp" snippet="qgraphicsitem-scene-return-parenting"/>
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="itemAt(int,int)const">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="itemAt(QPoint)const">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="drawBackground(QPainter*,QRectF)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="drawForeground(QPainter*,QRectF)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
-
- <!-- TODO: Support conversions on virtual function -->
- <modify-function signature="drawItems(QPainter*,int,QGraphicsItem*[],const QStyleOptionGraphicsItem[])">
- <modify-argument index="2">
- <remove-argument/>
- <conversion-rule class="native">
- <insert-template name="pysequencesize_int"/>
- </conversion-rule>
- </modify-argument>
-
- <modify-argument index="3">
- <replace-type modified-type="PySequence"/>
- <conversion-rule class="native">
- <insert-template name="qgraphicsitem_pysequence"/>
- </conversion-rule>
-
- <conversion-rule class="target">
- <insert-template name="qgraphicsitem_pyobject"/>
- </conversion-rule>
- </modify-argument>
-
- <modify-argument index="4">
- <replace-type modified-type="PySequence"/>
- <conversion-rule class="target">
- <insert-template name="qstyleoptiongraphicsitem_pyobject"/>
- </conversion-rule>
-
- <conversion-rule class="native">
- <insert-template name="pysequence_qstyleoptiongraphicsitem"/>
- </conversion-rule>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QInputDialog">
- <enum-type name="InputDialogOption"/>
- <enum-type name="InputMode"/>
-
- <modify-function signature="getInt(QWidget*,const QString&amp;,const QString&amp;,int,int,int,int,bool*,QFlags&lt;Qt::WindowType&gt;)" allow-thread="yes">
- <modify-argument index="8">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_arg,arg,arg,arg,arg,arg,arg,bool*,arg"/>
- </inject-code>
- </modify-function>
-
- <modify-function signature="getItem(QWidget*,const QString&amp;,const QString&amp;,const QStringList&amp;,int,bool,bool*,QFlags&lt;Qt::WindowType&gt;,QFlags&lt;Qt::InputMethodHint&gt;)" allow-thread="yes">
- <modify-argument index="7">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_arg,arg,arg,arg,arg,arg,bool*,arg"/>
- </inject-code>
- </modify-function>
-
- <modify-function signature="getMultiLineText(QWidget*,const QString&amp;,const QString&amp;,const QString&amp;,bool*,QFlags&lt;Qt::WindowType&gt;,QFlags&lt;Qt::InputMethodHint&gt;)" allow-thread="yes">
- <modify-argument index="5">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_arg,arg,arg,arg,bool*,arg,arg"/>
- </inject-code>
- </modify-function>
-
- <modify-function signature="getText(QWidget*,const QString&amp;,const QString&amp;,QLineEdit::EchoMode,const QString&amp;,bool*,QFlags&lt;Qt::WindowType&gt;,QFlags&lt;Qt::InputMethodHint&gt;)" allow-thread="yes">
- <modify-argument index="6">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_arg,arg,arg,arg,arg,bool*,arg"/>
- </inject-code>
- </modify-function>
-
- <modify-function signature="getDouble(QWidget*,const QString&amp;,const QString&amp;,double,double,double,int,bool*,QFlags&lt;Qt::WindowType&gt;)" allow-thread="yes">
- <modify-argument index="8">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_arg,arg,arg,arg,arg,arg,arg,bool*,arg"/>
- </inject-code>
- </modify-function>
-
- <modify-function signature="getDouble(QWidget*,const QString&amp;,const QString&amp;,double,double,double,int,bool*,QFlags&lt;Qt::WindowType&gt;,double)" allow-thread="yes">
- <modify-argument index="8">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_arg,arg,arg,arg,arg,arg,arg,bool*,arg,arg"/>
- </inject-code>
- </modify-function>
- </object-type>
-
- <object-type name="QGraphicsScene">
- <extra-includes>
- <include file-name="QVarLengthArray" location="global"/>
- </extra-includes>
- <enum-type name="ItemIndexMethod"/>
- <enum-type name="SceneLayer" flags="SceneLayers"/>
-
- <!-- Qt5: note: this was called 'obsolete'. Is that true? -->
- <modify-function signature="drawItems(QPainter*,int,QGraphicsItem*[],const QStyleOptionGraphicsItem[],QWidget*)" remove="all"/>
-
- <modify-function signature="createItemGroup(const QList&lt;QGraphicsItem*&gt;&amp;)">
- <modify-argument index="1">
- <parent index="return" action="add"/>
- </modify-argument>
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="destroyItemGroup(QGraphicsItemGroup*)">
- <inject-code file="../glue/qtwidgets.cpp" snippet="qgraphicsscene-destroyitemgroup"/>
- </modify-function>
-
- <modify-function signature="contextMenuEvent(QGraphicsSceneContextMenuEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="dragEnterEvent(QGraphicsSceneDragDropEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="dragLeaveEvent(QGraphicsSceneDragDropEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="dragMoveEvent(QGraphicsSceneDragDropEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="drawBackground(QPainter*,QRectF)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="drawForeground(QPainter*,QRectF)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="dropEvent(QGraphicsSceneDragDropEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="focusInEvent(QFocusEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="focusOutEvent(QFocusEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="helpEvent(QGraphicsSceneHelpEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="inputMethodEvent(QInputMethodEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="keyPressEvent(QKeyEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="keyReleaseEvent(QKeyEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="mouseDoubleClickEvent(QGraphicsSceneMouseEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="mouseMoveEvent(QGraphicsSceneMouseEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="mousePressEvent(QGraphicsSceneMouseEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="mouseReleaseEvent(QGraphicsSceneMouseEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="wheelEvent(QGraphicsSceneWheelEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="addItem(QGraphicsItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="addEllipse(const QRectF&amp;,const QPen&amp;,const QBrush&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addEllipse(qreal,qreal,qreal,qreal,const QPen&amp;,const QBrush&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="addLine(const QLineF&amp;,const QPen&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addLine(qreal,qreal,qreal,qreal,const QPen&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="addPath(const QPainterPath&amp;,const QPen&amp;,const QBrush&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addPixmap(const QPixmap&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addPolygon(const QPolygonF&amp;,const QPen&amp;,const QBrush&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addRect(const QRectF&amp;,const QPen&amp;,const QBrush&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addRect(qreal,qreal,qreal,qreal,const QPen&amp;,const QBrush&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="addText(const QString&amp;,const QFont&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addSimpleText(const QString&amp;,const QFont&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="addWidget(QWidget*,QFlags&lt;Qt::WindowType&gt;)">
- <!-- TODO: Add a keeper attribute to reference-count tag to do what this inject code do. -->
- <inject-code file="../glue/qtwidgets.cpp" snippet="qgraphicsscene-addwidget"/>
- </modify-function>
-
- <modify-function signature="clear()">
- <inject-code file="../glue/qtwidgets.cpp" snippet="qgraphicsscene-clear"/>
- </modify-function>
-
- <modify-function signature="removeItem(QGraphicsItem*)">
- <modify-argument index="1">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="setFocusItem(QGraphicsItem*,Qt::FocusReason)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QCalendarWidget">
- <enum-type name="HorizontalHeaderFormat"/>
- <enum-type name="SelectionMode"/>
- <enum-type name="VerticalHeaderFormat"/>
- <extra-includes>
- <include file-name="QTextCharFormat" location="global"/>
- </extra-includes>
- <modify-function signature="paintCell(QPainter*,QRect,QDate)const">
- <modify-argument invalidate-after-use="yes" index="1"/>
- </modify-function>
- </object-type>
- <object-type name="QTreeWidget">
- <modify-function signature="mimeData(const QList&lt;QTreeWidgetItem*&gt;&amp;)const">
- <modify-argument index="return">
- <define-ownership class="native" owner="c++"/>
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItemWidget(QTreeWidgetItem*,int,QWidget*)" allow-thread="yes">
- <modify-argument index="3">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="dropMimeData(QTreeWidgetItem*,int,const QMimeData*,Qt::DropAction)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="addTopLevelItem(QTreeWidgetItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addTopLevelItems(const QList&lt;QTreeWidgetItem*&gt; &amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addTopLevelItem(QTreeWidgetItem*)">
- <modify-argument index="1">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertTopLevelItem(int,QTreeWidgetItem*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertTopLevelItems(int,const QList&lt;QTreeWidgetItem*&gt; &amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setHeaderItem(QTreeWidgetItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="takeTopLevelItem(int)">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="clear()">
- <inject-code file="../glue/qtwidgets.cpp" snippet="qtreewidget-clear"/>
- </modify-function>
- <modify-function signature="removeItemWidget(QTreeWidgetItem*,int)" allow-thread="yes"/>
- </object-type>
- <object-type name="QAbstractItemDelegate">
- <enum-type name="EndEditHint"/>
- <modify-function signature="paint(QPainter*,QStyleOptionViewItem,QModelIndex)const">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="editorEvent(QEvent*,QAbstractItemModel*,QStyleOptionViewItem,QModelIndex)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="createEditor(QWidget*,QStyleOptionViewItem,QModelIndex)const">
- <modify-argument index="1">
- <define-ownership owner="c++"/>
- </modify-argument>
- <modify-argument index="return">
- <define-ownership class="native" owner="c++"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="closeEditor(QWidget*,QAbstractItemDelegate::EndEditHint)" allow-thread="yes"/>
- </object-type>
- <object-type name="QTableWidgetItem" >
- <enum-type name="ItemType"/>
- <modify-function signature="read(QDataStream&amp;)" allow-thread="yes">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="write(QDataStream&amp;)const" allow-thread="yes">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- </object-type>
- <object-type name="QListWidgetItem" >
- <enum-type name="ItemType"/>
- <modify-function signature="QListWidgetItem(const QString&amp;,QListWidget*,int)">
- <modify-argument index="this">
- <parent index="2" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="QListWidgetItem(const QIcon&amp;,const QString&amp;,QListWidget*,int)">
- <modify-argument index="this">
- <parent index="3" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="QListWidgetItem(QListWidget*,int)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="listWidget()const">
- <modify-argument index="return">
- <define-ownership owner="target"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="read(QDataStream&amp;)" allow-thread="yes">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="write(QDataStream&amp;)const" allow-thread="yes">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- </object-type>
- <object-type name="QGraphicsTextItem">
- <!-- a QObject so main-thread delete redundant -->
- <extra-includes>
- <include file-name="QTextCursor" location="global"/>
- </extra-includes>
- <modify-function signature="setDocument(QTextDocument*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QCompleter">
- <enum-type name="CompletionMode"/>
- <enum-type name="ModelSorting"/>
- <modify-function signature="setModel(QAbstractItemModel*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setPopup(QAbstractItemView*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setWidget(QWidget*)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QTreeWidgetItem" hash-function="qHash">
- <enum-type name="ChildIndicatorPolicy"/>
- <enum-type name="ItemType"/>
- <modify-function signature="read(QDataStream&amp;)" allow-thread="yes">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="write(QDataStream&amp;)const" allow-thread="yes">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="QTreeWidgetItem(QTreeWidget*,int)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="QTreeWidgetItem(QTreeWidget*,const QStringList&amp;,int)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="QTreeWidgetItem(QTreeWidget*,QTreeWidgetItem*,int)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="QTreeWidgetItem(QTreeWidgetItem*,int)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="QTreeWidgetItem(QTreeWidgetItem*,const QStringList &amp;,int)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="QTreeWidgetItem(QTreeWidgetItem*,QTreeWidgetItem*,int)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addChild(QTreeWidgetItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addChildren(const QList&lt;QTreeWidgetItem*&gt; &amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertChild(int,QTreeWidgetItem*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertChildren(int,const QList&lt;QTreeWidgetItem*&gt; &amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeChild(QTreeWidgetItem*)">
- <modify-argument index="1">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="takeChild(int)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="takeChildren()">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="parent()const">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="qtreewidgetitem"/>
- </modify-function>
- <modify-function signature="treeWidget()const">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="qtreewidgetitem"/>
- </modify-function>
-
- </object-type>
- <object-type name="QListWidget">
- <modify-function signature="mimeData(const QList&lt;QListWidgetItem*&gt;&amp;)const">
- <modify-argument index="return">
- <define-ownership class="native" owner="c++"/>
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItemWidget(QListWidgetItem*,QWidget*)" allow-thread="yes">
- <modify-argument index="2">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addItem(QListWidgetItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertItem(int,QListWidgetItem*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="takeItem(int)">
- <modify-argument index="return">
- <define-ownership owner="default"/>
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="clear()">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qlistwidget-clear"/>
- </modify-function>
- <modify-function signature="removeItemWidget(QListWidgetItem*)" allow-thread="yes"/>
- </object-type>
-
- <object-type name="QWidget" delete-in-main-thread="true">
- <!-- see QWindow::nativeEvent(), QAbstractNativeEventFilter::nativeEventFilter() -->
- <modify-function signature="nativeEvent(const QByteArray &amp;,void*,long*)">
- <modify-argument index="3">
- <remove-argument/>
- <conversion-rule class="native">
- <insert-template name="return_native_eventfilter_conversion_variables"/>
- </conversion-rule>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- <conversion-rule class="native">
- <insert-template name="return_native_eventfilter_conversion"/>
- </conversion-rule>
- </modify-argument>
- <inject-code position="end">
- <insert-template name="return_native_eventfilter"/>
- </inject-code>
- </modify-function>
-
- <extra-includes>
- <include file-name="QIcon" location="global"/>
- <include file-name="QMessageBox" location="global"/>
- </extra-includes>
-
- <inject-code class="native" position="beginning" file="../glue/qtwidgets.cpp" snippet="qwidget-glue"/>
-
- <enum-type name="RenderFlag" flags="RenderFlags"/>
-
- <modify-function signature="setParent(QWidget*)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="setParent(QWidget*,QFlags&lt;Qt::WindowType&gt;)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="parentWidget()const">
- <modify-argument index="this">
- <parent index="return" action="add"/>
- </modify-argument>
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="actionEvent(QActionEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="changeEvent(QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="closeEvent(QCloseEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="contextMenuEvent(QContextMenuEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="dragEnterEvent(QDragEnterEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="dragLeaveEvent(QDragLeaveEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="dragMoveEvent(QDragMoveEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="dropEvent(QDropEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="enterEvent(QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="focusInEvent(QFocusEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="focusOutEvent(QFocusEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="hideEvent(QHideEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="inputMethodEvent(QInputMethodEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="keyPressEvent(QKeyEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="keyReleaseEvent(QKeyEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="leaveEvent(QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="mouseDoubleClickEvent(QMouseEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="mouseMoveEvent(QMouseEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="mousePressEvent(QMouseEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="mouseReleaseEvent(QMouseEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="moveEvent(QMoveEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="paintEvent(QPaintEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="resizeEvent(QResizeEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="showEvent(QShowEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="tabletEvent(QTabletEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="wheelEvent(QWheelEvent*)">
- <modify-argument index="1" invalidate-after-use="yes">
- <rename to="event"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="setStyle(QStyle*)">
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="qwidget-setstyle"/>
- </modify-function>
- <modify-function signature="style()const">
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="qwidget-style"/>
- <modify-argument index="return">
- <define-ownership owner="default"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="render(QPainter*,QPoint,QRegion,QFlags&lt;QWidget::RenderFlag&gt;)">
- <modify-argument index="2">
- <!-- Removed because the render(QPainter*) overload conflicts with the identical function in QGraphicsView -->
- <remove-default-expression/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setFocusProxy(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="getContentsMargins(int*,int*,int*,int*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="int"/>
- </insert-template>
- </inject-code>
- <inject-code class="native" position="end">
- <insert-template name="fix_native_return_number*,number*,number*,number*">
- <replace from="$TYPE" to="int"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="insertAction(QAction*,QAction*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="setLayout(QLayout*)" allow-thread="yes">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qwidget-setlayout"/>
- </modify-function>
- <modify-function signature="raise()" rename="raise_"/>
- <modify-function signature="setParent(QWidget*,QFlags&lt;Qt::WindowType>)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="window()const">
- <modify-argument index="return">
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QMessageBox">
- <enum-type name="ButtonRole"/>
- <enum-type name="Icon"/>
- <enum-type name="StandardButton" flags="StandardButtons"/>
- <modify-function signature="removeButton(QAbstractButton*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <extra-includes>
- <include file-name="QPixmap" location="global"/>
- </extra-includes>
-
- <modify-function signature="critical(QWidget*,const QString&amp;,const QString&amp;,QFlags&lt;QMessageBox::StandardButton&gt;,QMessageBox::StandardButton)" allow-thread="yes"/>
- <modify-function signature="information(QWidget*,const QString&amp;,const QString&amp;,QFlags&lt;QMessageBox::StandardButton&gt;,QMessageBox::StandardButton)" allow-thread="yes"/>
- <modify-function signature="question(QWidget*,const QString&amp;,const QString&amp;,QFlags&lt;QMessageBox::StandardButton&gt;,QMessageBox::StandardButton)" allow-thread="yes"/>
- <modify-function signature="warning(QWidget*,const QString&amp;,const QString&amp;,QFlags&lt;QMessageBox::StandardButton&gt;,QMessageBox::StandardButton)" allow-thread="yes"/>
- <modify-function signature="QMessageBox(const QString&amp;,const QString&amp;,QMessageBox::Icon,int,int,int,QWidget*,QFlags&lt;Qt::WindowType&gt;)" remove="all"/>
- <modify-function signature="critical(QWidget*,const QString&amp;,const QString&amp;,int,int,int)" remove="all"/>
- <modify-function signature="critical(QWidget*,const QString&amp;,const QString&amp;,const QString&amp;,const QString&amp;,const QString&amp;,int,int)" remove="all"/>
- <modify-function signature="information(QWidget*,const QString&amp;,const QString&amp;,int,int,int)" remove="all"/>
- <modify-function signature="information(QWidget*,const QString&amp;,const QString&amp;,const QString&amp;,const QString&amp;,const QString&amp;,int,int)" remove="all"/>
- <modify-function signature="question(QWidget*,const QString&amp;,const QString&amp;,int,int,int)" remove="all"/>
- <modify-function signature="question(QWidget*,const QString&amp;,const QString&amp;,const QString&amp;,const QString&amp;,const QString&amp;,int,int)" remove="all"/>
- <modify-function signature="warning(QWidget*,const QString&amp;,const QString&amp;,int,int,int)" remove="all"/>
- <modify-function signature="warning(QWidget*,const QString&amp;,const QString&amp;,const QString&amp;,const QString&amp;,const QString&amp;,int,int)" remove="all"/>
- <modify-function signature="about(QWidget*,const QString&amp;,const QString&amp;)" allow-thread="yes"/>
- <modify-function signature="aboutQt(QWidget*,const QString&amp;)" allow-thread="yes"/>
- </object-type>
- <object-type name="QAbstractSpinBox">
- <enum-type name="ButtonSymbols"/>
- <enum-type name="CorrectionMode"/>
- <enum-type name="StepEnabledFlag" flags="StepEnabled"/>
- <enum-type name="StepType" since="5.12"/>
- <modify-function signature="setLineEdit(QLineEdit*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="fixup(QString &amp;)const">
- <modify-argument index="return">
- <replace-type modified-type="QString"/>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtcore.cpp" snippet="qstring-return"/>
- </modify-function>
- <modify-function signature="validate(QString &amp;,int &amp;)const">
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- <conversion-rule class="native">
- <insert-template name="validator_conversionrule"/>
- </conversion-rule>
- </modify-argument>
- <inject-code class="target" position="end">
- <insert-template name="return_tuple_QValidator_QString_int"/>
- </inject-code>
- </modify-function>
- </object-type>
-
- <object-type name="QTabWidget">
- <enum-type name="TabPosition"/>
- <enum-type name="TabShape"/>
- <modify-function signature="addTab(QWidget*,const QString&amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addTab(QWidget*,const QIcon&amp;,const QString&amp;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertTab(int,QWidget*,const QIcon&amp;,const QString&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertTab(int,QWidget*,const QString&amp;)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setCornerWidget(QWidget*,Qt::Corner)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setTabBar(QTabBar*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <!-- This function need be re-implemented in inject code -->
- <modify-function signature="removeTab(int)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qtabwidget-removetab"/>
- </modify-function>
- <modify-function signature="clear()">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qtabwidget-clear"/>
- </modify-function>
- </object-type>
- <object-type name="QDateTimeEdit">
- <enum-type name="Section" flags="Sections"/>
- <modify-function signature="setCalendarWidget(QCalendarWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QSlider">
- <enum-type name="TickPosition"/>
- </object-type>
- <object-type name="QProgressDialog">
- <modify-function signature="setBar(QProgressBar*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setLabel(QLabel*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setCancelButton(QPushButton*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QLabel">
- <modify-function signature="setBuddy(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="pixmap()const">
- <modify-argument index="return">
- <!-- Defining ownership as "default" avoids the object to be automatically
- set as parent of the returned pointer. -->
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setMovie(QMovie *)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QFileDialog">
- <enum-type name="AcceptMode"/>
- <enum-type name="DialogLabel"/>
- <enum-type name="FileMode"/>
- <enum-type name="Option" flags="Options"/>
- <enum-type name="ViewMode"/>
- <extra-includes>
- <include file-name="QUrl" location="global"/>
- <include file-name="QAbstractProxyModel" location="global"/>
- </extra-includes>
- <modify-function signature="setIconProvider(QFileIconProvider*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItemDelegate(QAbstractItemDelegate*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="getExistingDirectory(QWidget*,const QString&amp;,const QString&amp;,QFlags&lt;QFileDialog::Option>)" allow-thread="yes"/>
- <modify-function signature="getExistingDirectoryUrl(QWidget*,const QString&amp;,const QUrl&amp;,QFlags&lt;QFileDialog::Option>,const QStringList&amp;)" allow-thread="yes"/>
- <modify-function signature="getOpenFileName(QWidget*,const QString&amp;,const QString&amp;,const QString&amp;,QString*,QFlags&lt;QFileDialog::Option&gt;)" allow-thread="yes">
- <modify-argument index="return">
- <replace-type modified-type="(fileName, selectedFilter)"/>
- </modify-argument>
- <modify-argument index="5">
- <replace-type modified-type="QString"/>
- <replace-default-expression with="QString()"/>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="qfiledialog-return" />
- </modify-function>
- <modify-function signature="getOpenFileNames(QWidget*,const QString&amp;,const QString&amp;,const QString&amp;,QString*,QFlags&lt;QFileDialog::Option&gt;)" allow-thread="yes">
- <modify-argument index="return">
- <replace-type modified-type="(fileNames, selectedFilter)"/>
- </modify-argument>
- <modify-argument index="5">
- <replace-type modified-type="QString"/>
- <replace-default-expression with="QString()"/>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="qfiledialog-return" />
- </modify-function>
-
- <modify-function signature="getOpenFileUrl(QWidget*,const QString&amp;,const QUrl&amp;,const QString&amp;,QString*,QFlags&lt;QFileDialog::Option&gt;,const QStringList&amp;)" allow-thread="yes">
- <modify-argument index="return">
- <replace-type modified-type="(fileName, selectedFilter)"/>
- </modify-argument>
- <modify-argument index="5">
- <replace-type modified-type="QString"/>
- <replace-default-expression with="QString()"/>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="qfiledialog-return" />
- </modify-function>
-
- <modify-function signature="getOpenFileUrls(QWidget*,const QString&amp;,const QUrl&amp;,const QString&amp;,QString*,QFlags&lt;QFileDialog::Option&gt;,const QStringList&amp;)" allow-thread="yes">
- <modify-argument index="return">
- <replace-type modified-type="(fileName, selectedFilter)"/>
- </modify-argument>
- <modify-argument index="5">
- <replace-type modified-type="QString"/>
- <replace-default-expression with="QString()"/>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="qfiledialog-return" />
- </modify-function>
-
- <modify-function signature="getSaveFileName(QWidget*,const QString&amp;,const QString&amp;,const QString&amp;,QString*,QFlags&lt;QFileDialog::Option&gt;)" allow-thread="yes">
- <modify-argument index="return">
- <replace-type modified-type="(fileName, selectedFilter)"/>
- </modify-argument>
- <modify-argument index="5">
- <replace-type modified-type="QString"/>
- <replace-default-expression with="QString()"/>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="qfiledialog-return" />
- </modify-function>
-
- <modify-function signature="getSaveFileUrl(QWidget*,const QString&amp;,const QUrl&amp;,const QString&amp;,QString*,QFlags&lt;QFileDialog::Option&gt;,const QStringList&amp;)" allow-thread="yes">
- <modify-argument index="return">
- <replace-type modified-type="(fileName, selectedFilter)"/>
- </modify-argument>
- <modify-argument index="5">
- <replace-type modified-type="QString"/>
- <replace-default-expression with="QString()"/>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="qfiledialog-return" />
- </modify-function>
-
- </object-type>
-
- <object-type name="QErrorMessage"/>
- <object-type name="QTabBar">
- <extra-includes>
- <include file-name="QIcon" location="global"/>
- </extra-includes>
- <enum-type name="Shape"/>
- <enum-type name="SelectionBehavior"/>
- <enum-type name="ButtonPosition"/>
- </object-type>
- <object-type name="QRadioButton"/>
- <object-type name="QScrollBar"/>
- <object-type name="QAbstractScrollArea">
- <enum-type name="SizeAdjustPolicy"/>
- <modify-function signature="setViewport(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addScrollBarWidget(QWidget*,QFlags&lt;Qt::AlignmentFlag&gt;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setCornerWidget(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setHorizontalScrollBar(QScrollBar*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setVerticalScrollBar(QScrollBar*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setViewport(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setupViewport(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="viewportEvent(QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- </object-type>
- <object-type name="QRubberBand">
- <enum-type name="Shape"/>
- <modify-function signature="QRubberBand(QRubberBand::Shape,QWidget*)">
- <modify-argument index="this">
- <parent index="2" action="add"/>
- </modify-argument>
- <modify-argument index="2">
- <rename to="parent"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QTableWidget">
- <modify-function signature="mimeData(const QList&lt;QTableWidgetItem*&gt;&amp;)const">
- <modify-argument index="return">
- <define-ownership class="native" owner="c++"/>
- <define-ownership class="target" owner="default"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setHorizontalHeaderItem(int,QTableWidgetItem*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItem(int,int,QTableWidgetItem*)">
- <modify-argument index="3">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="takeHorizontalHeaderItem(int)">
- <modify-argument index="return">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="takeVerticalHeaderItem(int)">
- <modify-argument index="return">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="takeItem(int,int)">
- <modify-argument index="return">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItemPrototype(const QTableWidgetItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setVerticalHeaderItem(int,QTableWidgetItem*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setCellWidget(int,int,QWidget*)" allow-thread="yes">
- <modify-argument index="3">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeCellWidget(int,int)" allow-thread="yes"/>
- <modify-function signature="setCurrentItem(QTableWidgetItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setCurrentItem(QTableWidgetItem*,QFlags&lt;QItemSelectionModel::SelectionFlag&gt;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QSplitter">
- <modify-function signature="getRange(int,int*,int*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,number*,number*">
- <replace from="$TYPE" to="int"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="addWidget(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertWidget(int,QWidget*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QGroupBox">
- <modify-function signature="clicked(bool)" allow-thread="yes"/>
- </object-type>
- <object-type name="QStackedWidget">
- <modify-function signature="addWidget(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertWidget(int,QWidget*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeWidget(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setCurrentWidget(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QSplitterHandle"/>
- <object-type name="QDial"/>
- <object-type name="QKeySequenceEdit"/>
- <object-type name="QLineEdit">
- <enum-type name="ActionPosition"/>
- <enum-type name="EchoMode"/>
- <modify-function signature="setCompleter(QCompleter*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setValidator(const QValidator*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="del()" rename="del_"/>
- <modify-function signature="getTextMargins(int*,int*,int*,int*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject*"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="int"/>
- </insert-template>
- </inject-code>
- </modify-function>
-
- <add-function signature="addAction(QAction*)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qlineedit-addaction"/>
- </add-function>
-
- </object-type>
- <object-type name="QLCDNumber">
- <enum-type name="Mode"/>
- <enum-type name="SegmentStyle"/>
- </object-type>
- <object-type name="QOpenGLWidget">
- <enum-type name="UpdateBehavior"/>
- </object-type>
- <object-type name="QSplashScreen">
- <!-- Override QWidget.painter -->
- <modify-function signature="repaint()" remove="all"/>
- <modify-function signature="drawContents(QPainter*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- </object-type>
- <object-type name="QDockWidget">
- <enum-type name="DockWidgetFeature" flags="DockWidgetFeatures"/>
- <modify-function signature="setTitleBarWidget(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setWidget(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QDesktopWidget"/>
- <object-type name="QFrame">
- <enum-type name="Shadow"/>
- <enum-type name="Shape"/>
- <enum-type name="StyleMask"/>
- </object-type>
- <object-type name="QSpinBox">
- <modify-function signature="valueChanged(int)">
- <inject-documentation mode="append" format="target">
-::
-
- def callback_int(value_as_int):
- print 'int value changed:', repr(value_as_int)
-
- app = QApplication(sys.argv)
- spinbox = QSpinBox()
- spinbox.valueChanged[unicode].connect(callback_unicode)
- spinbox.show()
- sys.exit(app.exec_())
- </inject-documentation>
- </modify-function>
- <modify-function signature="valueChanged(QString)">
- <inject-documentation mode="append" format="target">
-::
-
- def callback_unicode(value_as_unicode):
- print 'unicode value changed:', repr(value_as_unicode)
-
- app = QApplication(sys.argv)
- spinbox = QSpinBox()
- spinbox.valueChanged[unicode].connect(callback_unicode)
- spinbox.show()
- sys.exit(app.exec_())
- </inject-documentation>
- </modify-function>
- </object-type>
- <object-type name="QTextBrowser"/>
- <object-type name="QDoubleSpinBox"/>
- <object-type name="QButtonGroup">
- <modify-function signature="addButton(QAbstractButton*,int)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- <no-null-pointer/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeButton(QAbstractButton*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- <no-null-pointer/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setId(QAbstractButton*,int)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QToolBar">
- <modify-function signature="addAction(QIcon,QString,const QObject*,const char*)">
- <modify-argument index="3">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- <inject-code file="../glue/qtwidgets.cpp" snippet="qtoolbar-addaction-1"/>
- </modify-function>
- <modify-function signature="addAction(QString,const QObject*,const char*)">
- <modify-argument index="2">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument />
- </modify-argument>
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- <inject-code file="../glue/qtwidgets.cpp" snippet="qtoolbar-addaction-2"/>
- </modify-function>
- <modify-function signature="addAction(const QString&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addAction(const QIcon&amp;,const QString&amp;)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <add-function signature="addAction(QAction*)">
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qtoolbar-addaction-3"/>
- </add-function>
- <modify-function signature="addSeparator()">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addWidget(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertWidget(QAction*,QWidget*)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertSeparator(QAction*)">
- <modify-argument index="return">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="clear()">
- <inject-code file="../glue/qtwidgets.cpp" snippet="qtoolbar-clear"/>
- </modify-function>
- </object-type>
- <object-type name="QComboBox">
- <enum-type name="InsertPolicy"/>
- <enum-type name="SizeAdjustPolicy"/>
- <modify-function signature="setCompleter(QCompleter*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setValidator(const QValidator*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItemDelegate(QAbstractItemDelegate*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- <no-null-pointer/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setView(QAbstractItemView*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setLineEdit(QLineEdit*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setModel(QAbstractItemModel*)">
- <modify-argument index="1">
- <no-null-pointer/>
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QTextEdit">
- <enum-type name="AutoFormattingFlag" flags="AutoFormatting"/>
- <enum-type name="LineWrapMode"/>
- <value-type name="ExtraSelection" >
- <include file-name="QTextEdit" location="global"/>
- </value-type>
- <extra-includes>
- <include file-name="QTextCursor" location="global"/>
- </extra-includes>
- <modify-function signature="setDocument(QTextDocument*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertFromMimeData(const QMimeData*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="print(QPagedPaintDevice*)const" rename="print_"/>
- </object-type>
- <object-type name="QAction">
- <enum-type name="ActionEvent"/>
- <enum-type name="MenuRole"/>
- <enum-type name="Priority" since="4.6"/>
- <modify-function signature="setMenu(QMenu*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="triggered(bool)" allow-thread="yes"/>
- </object-type>
-
- <object-type name="QApplication">
- <enum-type name="ColorSpec"/>
- <extra-includes>
- <include file-name="QBasicTimer" location="global"/>
- <include file-name="QFont" location="global"/>
- <include file-name="QFontMetrics" location="global"/>
- <include file-name="QPalette" location="global"/>
- <include file-name="QIcon" location="global"/>
- <include file-name="QLocale" location="global"/>
- <include file-name="QStyle" location="global"/>
- </extra-includes>
- <modify-function signature="QApplication(int&amp;,char**,int)" access="private"/>
- <add-function signature="QApplication(QStringList)">
- <inject-code file="../glue/qtwidgets.cpp" snippet="qapplication-1"/>
- </add-function>
- <add-function signature="QApplication()">
- <inject-code file="../glue/qtwidgets.cpp" snippet="qapplication-2"/>
- </add-function>
- <modify-function signature="setStyle(QStyle*)">
- <inject-code class="target" position="end" file="../glue/qtwidgets.cpp" snippet="qapplication-setStyle"/>
- </modify-function>
- <modify-function signature="exec()" rename="exec_" allow-thread="yes"/>
- <modify-function signature="notify(QObject*,QEvent*)" allow-thread="yes"/>
- <modify-function signature="alert(QWidget*,int)" allow-thread="yes"/>
- <inject-code class="native" position="beginning" file="../glue/qtwidgets.cpp" snippet="qapplication-init"/>
- </object-type>
-
- <object-type name="QCommandLinkButton"/>
- <object-type name="QFileSystemModel" polymorphic-id-expression="qobject_cast&lt;QFileSystemModel*&gt;(%1)">
- <enum-type name="Roles"/>
- <enum-type name="Option" flags="Options" since="5.14"/>
- <modify-function signature="setIconProvider(QFileIconProvider*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QFormLayout">
- <inject-code class="native" position="beginning" file="../glue/qtwidgets.cpp" snippet="qlayout-help-functions"/>
-
- <enum-type name="FieldGrowthPolicy"/>
- <enum-type name="ItemRole"/>
- <enum-type name="RowWrapPolicy"/>
-
-
- <modify-function signature="getLayoutPosition(QLayout*,int*,QFormLayout::ItemRole*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qformlayout-fix-args" />
- </modify-function>
- <modify-function signature="getWidgetPosition(QWidget*,int*,QFormLayout::ItemRole*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qformlayout-fix-args" />
- </modify-function>
- <modify-function signature="getItemPosition(int,int*,QFormLayout::ItemRole*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtwidgets.cpp" snippet="qformlayout-fix-args" />
- </modify-function>
-
- <modify-function signature="addRow(QWidget*,QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addRow(QLayout*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addRow(QWidget*,QLayout*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addRow(QWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addRow(QString,QLayout*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addRow(QString,QWidget*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertRow(int,QLayout*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertRow(int,QWidget*,QLayout*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- <modify-argument index="3">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertRow(int,QWidget*,QWidget*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- <modify-argument index="3">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertRow(int,QWidget*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertRow(int,QString,QLayout*)">
- <modify-argument index="3">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertRow(int,QString,QWidget*)">
- <modify-argument index="3">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setLayout(int,QFormLayout::ItemRole,QLayout*)">
- <modify-argument index="3">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setWidget(int,QFormLayout::ItemRole,QWidget*)">
- <modify-argument index="3">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setItem(int,QFormLayout::ItemRole,QLayoutItem*)">
- <modify-argument index="3">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QGraphicsGridLayout" >
- <modify-function signature="addItem(QGraphicsLayoutItem*,int,int,QFlags&lt;Qt::AlignmentFlag&gt;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="addItem(QGraphicsLayoutItem*,int,int,int,int,QFlags&lt;Qt::AlignmentFlag&gt;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setAlignment(QGraphicsLayoutItem*,QFlags&lt;Qt::AlignmentFlag&gt;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QGraphicsLayout">
- <modify-function signature="getContentsMargins(qreal*,qreal*,qreal*,qreal*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="qreal"/>
- </insert-template>
- </inject-code>
- <inject-code class="native" position="end">
- <insert-template name="fix_native_return_number*,number*,number*,number*">
- <replace from="$TYPE" to="qreal"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="widgetEvent(QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- </object-type>
- <object-type name="QGraphicsLayoutItem" copyable="false">
- <modify-function signature="getContentsMargins(qreal*,qreal*,qreal*,qreal*)const">
- <modify-argument index="0">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="qreal"/>
- </insert-template>
- </inject-code>
- <inject-code class="native" position="end">
- <insert-template name="fix_native_return_number*,number*,number*,number*">
- <replace from="$TYPE" to="qreal"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="setParentLayoutItem(QGraphicsLayoutItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QGraphicsLinearLayout" >
- <modify-function signature="addItem(QGraphicsLayoutItem*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertItem(int,QGraphicsLayoutItem*)">
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="removeItem(QGraphicsLayoutItem*)">
- <modify-argument index="1">
- <parent index="this" action="remove"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setAlignment(QGraphicsLayoutItem*,QFlags&lt;Qt::AlignmentFlag&gt;)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setStretchFactor(QGraphicsLayoutItem*,int)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QGraphicsProxyWidget">
- <modify-function signature="QGraphicsProxyWidget(QGraphicsItem*,QFlags&lt;Qt::WindowType&gt;)">
- <modify-argument index="this">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="createProxyForChildWidget(QWidget*)">
- <modify-argument index="return">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="newProxyWidget(const QWidget*)">
- <modify-argument index="return">
- <parent index="1" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setWidget(QWidget*)" allow-thread="yes">
- <inject-code file="../glue/qtwidgets.cpp" snippet="qgraphicsproxywidget-setwidget"/>
- </modify-function>
- </object-type>
- <!-- a QObject so main-thread delete redundant -->
- <object-type name="QGraphicsWidget">
- <modify-function signature="getContentsMargins(qreal*,qreal*,qreal*,qreal*)const">
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- </modify-argument>
-
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="qreal"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="getWindowFrameMargins(qreal*,qreal*,qreal*,qreal*)const">
- <modify-argument index="return">
- <replace-type modified-type="PyObject"/>
- </modify-argument>
- <modify-argument index="1">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="2">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- </modify-argument>
-
- <inject-code class="target" position="beginning">
- <insert-template name="fix_number*,number*,number*,number*">
- <replace from="$TYPE" to="qreal"/>
- </insert-template>
- </inject-code>
- </modify-function>
- <modify-function signature="setLayout(QGraphicsLayout*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="changeEvent(QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="closeEvent(QCloseEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="grabKeyboardEvent(QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="grabMouseEvent(QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="hideEvent(QHideEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="moveEvent(QGraphicsSceneMoveEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="paintWindowFrame(QPainter*,const QStyleOptionGraphicsItem*,QWidget*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="resizeEvent(QGraphicsSceneResizeEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="showEvent(QShowEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="ungrabKeyboardEvent(QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="ungrabMouseEvent(QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="windowFrameEvent(QEvent*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="setStyle(QStyle*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setTabOrder(QGraphicsWidget*,QGraphicsWidget*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- <modify-argument index="2">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QPlainTextDocumentLayout"/>
- <object-type name="QPlainTextEdit">
- <enum-type name="LineWrapMode"/>
- <modify-function signature="setDocument(QTextDocument*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="insertFromMimeData(const QMimeData*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="print(QPagedPaintDevice*)const" rename="print_"/>
- </object-type>
- <object-type name="QStyledItemDelegate">
- <modify-function signature="setItemEditorFactory(QItemEditorFactory*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setEditorData(QWidget*,QModelIndex)const">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setModelData(QWidget*,QAbstractItemModel*,QModelIndex)const">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <object-type name="QGesture" since="4.6">
- <enum-type name="GestureCancelPolicy"/>
- </object-type>
- <object-type name="QGestureRecognizer" since="4.6">
- <enum-type name="ResultFlag" flags="Result"/>
- </object-type>
- <object-type name="QTapAndHoldGesture" since="4.6"/>
- <object-type name="QTapGesture" since="4.6"/>
- <object-type name="QGraphicsAnchor" since="4.6"/>
- <object-type name="QGraphicsAnchorLayout" since="4.6"/>
- <object-type name="QGraphicsBlurEffect" since="4.6">
- <enum-type name="BlurHint" flags="BlurHints"/>
- </object-type>
- <object-type name="QGraphicsColorizeEffect" since="4.6"/>
- <object-type name="QGraphicsDropShadowEffect" since="4.6"/>
-
- <object-type name="QGraphicsEffect" since="4.6">
- <enum-type name="ChangeFlag" flags="ChangeFlags"/>
- <enum-type name="PixmapPadMode"/>
- </object-type>
-
- <object-type name="QGraphicsObject" since="4.6" default-superclass="QGraphicsItem"/>
- <object-type name="QGraphicsOpacityEffect" since="4.6"/>
- <object-type name="QGraphicsRotation" since="4.6"/>
- <object-type name="QGraphicsScale" since="4.6"/>
- <object-type name="QGraphicsTransform" since="4.6"/>
- <object-type name="QKeyEventTransition" since="4.6"/>
- <object-type name="QMouseEventTransition" since="4.6"/>
- <object-type name="QPanGesture" since="4.6"/>
- <object-type name="QPinchGesture" since="4.6">
- <enum-type name="ChangeFlag" flags="ChangeFlags"/>
- </object-type>
- <object-type name="QSwipeGesture" since="4.6">
- <enum-type name="SwipeDirection"/>
- </object-type>
-
- <value-type name="QTileRules" since="4.6"/>
-
- <object-type name="QScroller">
- <enum-type name="State"/>
- <enum-type name="ScrollerGestureType"/>
- <enum-type name="Input"/>
- </object-type>
- <value-type name="QScrollerProperties">
- <enum-type name="OvershootPolicy"/>
- <enum-type name="FrameRates"/>
- <enum-type name="ScrollMetric"/>
- </value-type>
-
- <object-type name="QSizeGrip"/>
-
- <object-type name="QSystemTrayIcon">
- <enum-type name="ActivationReason"/>
- <enum-type name="MessageIcon"/>
- <modify-function signature="setContextMenu(QMenu*)">
- <modify-argument index="1">
- <reference-count action="set"/>
- </modify-argument>
- </modify-function>
- </object-type>
-
- <!-- The above entries may be present in the system or not. Keep this section organized. -->
-
- <!-- This enum is present on QtCore -->
- <suppress-warning text="enum 'QCoreApplication::ApplicationFlags' is specified in typesystem, but not declared"/>
- <suppress-warning text="QGraphicsEllipseItem::Type' does not have a type entry or is not an enum"/>
- <suppress-warning text="QGraphicsItemGroup::Type' does not have a type entry or is not an enum"/>
- <suppress-warning text="QGraphicsItem::UserType' does not have a type entry or is not an enum"/>
- <suppress-warning text="QGraphicsLineItem::Type' does not have a type entry or is not an enum"/>
- <suppress-warning text="QGraphicsPathItem::Type' does not have a type entry or is not an enum"/>
- <suppress-warning text="QGraphicsPixmapItem::Type' does not have a type entry or is not an enum"/>
- <suppress-warning text="QGraphicsPolygonItem::Type' does not have a type entry or is not an enum"/>
- <suppress-warning text="QGraphicsProxyWidget::Type' does not have a type entry or is not an enum"/>
- <suppress-warning text="QGraphicsRectItem::Type' does not have a type entry or is not an enum"/>
- <suppress-warning text="QGraphicsSimpleTextItem::Type' does not have a type entry or is not an enum"/>
- <suppress-warning text="QGraphicsSvgItem::Type' does not have a type entry or is not an enum"/>
- <suppress-warning text="QGraphicsTextItem::Type' does not have a type entry or is not an enum"/>
- <suppress-warning text="QGraphicsWidget::Type' does not have a type entry or is not an enum"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_mac.xml b/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_mac.xml
deleted file mode 100644
index af607ce1e..000000000
--- a/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_mac.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtWidgets">
- <rejection class="*" function-name="qt_mac_set_cursor"/>
- <rejection class="*" function-name="macMenu"/>
-
- <primitive-type name="Qt::HANDLE" target-lang-api-name="PyObject"/>
- <!-- Qt5: internal
- <object-type name="QMacStyle" >
- <enum-type name="FocusRectPolicy"/>
- <enum-type name="WidgetSizePolicy"/>
- </object-type>
- -->
- <rejection class="QWidget" function-name="macCGHandle"/>
- <rejection class="QWidget" function-name="macQDHandle"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_win.xml b/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_win.xml
deleted file mode 100644
index 4c51907fe..000000000
--- a/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_win.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtWidgets"/>
diff --git a/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_x11.xml b/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_x11.xml
deleted file mode 100644
index 4c51907fe..000000000
--- a/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_x11.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtWidgets"/>
diff --git a/sources/pyside2/PySide2/QtWinExtras/CMakeLists.txt b/sources/pyside2/PySide2/QtWinExtras/CMakeLists.txt
deleted file mode 100644
index 3593394c3..000000000
--- a/sources/pyside2/PySide2/QtWinExtras/CMakeLists.txt
+++ /dev/null
@@ -1,42 +0,0 @@
-project(QtWinExtras)
-
-set(QtWinExtras_SRC
-${QtWinExtras_GEN_DIR}/qtwin_wrapper.cpp
-${QtWinExtras_GEN_DIR}/qwincolorizationchangeevent_wrapper.cpp
-${QtWinExtras_GEN_DIR}/qwincompositionchangeevent_wrapper.cpp
-${QtWinExtras_GEN_DIR}/qwinevent_wrapper.cpp
-${QtWinExtras_GEN_DIR}/qwinjumplist_wrapper.cpp
-${QtWinExtras_GEN_DIR}/qwinjumplistcategory_wrapper.cpp
-${QtWinExtras_GEN_DIR}/qwinjumplistitem_wrapper.cpp
-#${QtWinExtras_GEN_DIR}/qwinmime_wrapper.cpp
-${QtWinExtras_GEN_DIR}/qwintaskbarbutton_wrapper.cpp
-${QtWinExtras_GEN_DIR}/qwintaskbarprogress_wrapper.cpp
-${QtWinExtras_GEN_DIR}/qwinthumbnailtoolbar_wrapper.cpp
-${QtWinExtras_GEN_DIR}/qwinthumbnailtoolbutton_wrapper.cpp
-
-# module is always needed
-${QtWinExtras_GEN_DIR}/qtwinextras_module_wrapper.cpp
-)
-
-set(QtWinExtras_include_dirs ${QtWinExtras_SOURCE_DIR}
- ${QtWinExtras_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}WinExtras_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${libpyside_SOURCE_DIR})
-
-set(QtWinExtras_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}WinExtras_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES})
-
-set(QtWinExtras_deps QtCore QtGui)
-
-create_pyside_module(NAME QtWinExtras
- INCLUDE_DIRS QtWinExtras_include_dirs
- LIBRARIES QtWinExtras_libraries
- DEPS QtWinExtras_deps
- TYPESYSTEM_PATH QtWinExtras_SOURCE_DIR
- SOURCES QtWinExtras_SRC)
diff --git a/sources/pyside2/PySide2/QtWinExtras/typesystem_winextras.xml b/sources/pyside2/PySide2/QtWinExtras/typesystem_winextras.xml
deleted file mode 100644
index db7416a24..000000000
--- a/sources/pyside2/PySide2/QtWinExtras/typesystem_winextras.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtWinExtras">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
- <load-typesystem name="QtGui/typesystem_gui.xml" generate="no"/>
-
- <namespace-type name="QtWin">
- <enum-type name="HBitmapFormat"/>
- <enum-type name="WindowFlip3DPolicy"/>
- </namespace-type>
- <object-type name="QWinEvent" since="5.2"/>
- <object-type name="QWinColorizationChangeEvent" since="5.2"/>
- <object-type name="QWinCompositionChangeEvent" since="5.2"/>
- <object-type name="QWinJumpList" since="5.2"/>
- <object-type name="QWinJumpListCategory" since="5.2">
- <enum-type name="Type"/>
- </object-type>
- <object-type name="QWinJumpListItem" since="5.2">
- <enum-type name="Type"/>
- </object-type>
- <!-- <object-type name="QWinMime" since="5.4"/> -->
- <object-type name="QWinTaskbarButton" since="5.2"/>
- <object-type name="QWinTaskbarProgress" since="5.2"/>
- <object-type name="QWinThumbnailToolBar" since="5.2"/>
- <object-type name="QWinThumbnailToolButton" since="5.2"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtX11Extras/CMakeLists.txt b/sources/pyside2/PySide2/QtX11Extras/CMakeLists.txt
deleted file mode 100644
index 9008da747..000000000
--- a/sources/pyside2/PySide2/QtX11Extras/CMakeLists.txt
+++ /dev/null
@@ -1,33 +0,0 @@
-project(QtX11Extras)
-
-set(QtX11Extras_SRC
-${QtX11Extras_GEN_DIR}/qx11info_wrapper.cpp
-# module is always needed
-${QtX11Extras_GEN_DIR}/qtx11extras_module_wrapper.cpp
-)
-
-configure_file("${QtX11Extras_SOURCE_DIR}/QtX11Extras_global.post.h.in"
- "${QtX11Extras_BINARY_DIR}/QtX11Extras_global.post.h" @ONLY)
-
-set(QtX11Extras_include_dirs ${QtX11Extras_SOURCE_DIR}
- ${QtX11Extras_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}X11Extras_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS}
- ${QtCore_GEN_DIR}
- ${QtGui_GEN_DIR}
- ${libpyside_SOURCE_DIR})
-
-set(QtX11Extras_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}X11Extras_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}Gui_LIBRARIES})
-
-set(QtX11Extras_deps QtCore QtGui)
-
-create_pyside_module(NAME QtX11Extras
- INCLUDE_DIRS QtX11Extras_include_dirs
- LIBRARIES QtX11Extras_libraries
- DEPS QtX11Extras_deps
- TYPESYSTEM_PATH QtX11Extras_SOURCE_DIR
- SOURCES QtX11Extras_SRC)
diff --git a/sources/pyside2/PySide2/QtX11Extras/QtX11Extras_global.post.h.in b/sources/pyside2/PySide2/QtX11Extras/QtX11Extras_global.post.h.in
deleted file mode 100644
index abdaf3d5f..000000000
--- a/sources/pyside2/PySide2/QtX11Extras/QtX11Extras_global.post.h.in
+++ /dev/null
@@ -1 +0,0 @@
-#include <QtX11Extras/QX11Info>
diff --git a/sources/pyside2/PySide2/QtX11Extras/typesystem_x11extras.xml b/sources/pyside2/PySide2/QtX11Extras/typesystem_x11extras.xml
deleted file mode 100644
index 73fc2b77c..000000000
--- a/sources/pyside2/PySide2/QtX11Extras/typesystem_x11extras.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Copyright (C) 2016 Mateusz Skowroński <skowri@gmail.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtX11Extras">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
-
- <object-type name="QX11Info">
- <enum-type name="PeekOption" flags="PeekOptions" since="5.10"/>
- </object-type>
-</typesystem>
diff --git a/sources/pyside2/PySide2/QtXml/CMakeLists.txt b/sources/pyside2/PySide2/QtXml/CMakeLists.txt
deleted file mode 100644
index eb64b4795..000000000
--- a/sources/pyside2/PySide2/QtXml/CMakeLists.txt
+++ /dev/null
@@ -1,55 +0,0 @@
-project(QtXml)
-
-set(QtXml_SRC
-${QtXml_GEN_DIR}/qdomattr_wrapper.cpp
-${QtXml_GEN_DIR}/qdomcdatasection_wrapper.cpp
-${QtXml_GEN_DIR}/qdomcharacterdata_wrapper.cpp
-${QtXml_GEN_DIR}/qdomcomment_wrapper.cpp
-${QtXml_GEN_DIR}/qdomdocument_wrapper.cpp
-${QtXml_GEN_DIR}/qdomdocumentfragment_wrapper.cpp
-${QtXml_GEN_DIR}/qdomdocumenttype_wrapper.cpp
-${QtXml_GEN_DIR}/qdomelement_wrapper.cpp
-${QtXml_GEN_DIR}/qdomentity_wrapper.cpp
-${QtXml_GEN_DIR}/qdomentityreference_wrapper.cpp
-${QtXml_GEN_DIR}/qdomimplementation_wrapper.cpp
-${QtXml_GEN_DIR}/qdomnamednodemap_wrapper.cpp
-${QtXml_GEN_DIR}/qdomnode_wrapper.cpp
-${QtXml_GEN_DIR}/qdomnodelist_wrapper.cpp
-${QtXml_GEN_DIR}/qdomnotation_wrapper.cpp
-${QtXml_GEN_DIR}/qdomprocessinginstruction_wrapper.cpp
-${QtXml_GEN_DIR}/qdomtext_wrapper.cpp
-${QtXml_GEN_DIR}/qxmlattributes_wrapper.cpp
-${QtXml_GEN_DIR}/qxmlcontenthandler_wrapper.cpp
-${QtXml_GEN_DIR}/qxmldeclhandler_wrapper.cpp
-${QtXml_GEN_DIR}/qxmldefaulthandler_wrapper.cpp
-${QtXml_GEN_DIR}/qxmldtdhandler_wrapper.cpp
-${QtXml_GEN_DIR}/qxmlentityresolver_wrapper.cpp
-${QtXml_GEN_DIR}/qxmlerrorhandler_wrapper.cpp
-${QtXml_GEN_DIR}/qxmlinputsource_wrapper.cpp
-${QtXml_GEN_DIR}/qxmllexicalhandler_wrapper.cpp
-${QtXml_GEN_DIR}/qxmllocator_wrapper.cpp
-${QtXml_GEN_DIR}/qxmlnamespacesupport_wrapper.cpp
-${QtXml_GEN_DIR}/qxmlparseexception_wrapper.cpp
-${QtXml_GEN_DIR}/qxmlreader_wrapper.cpp
-${QtXml_GEN_DIR}/qxmlsimplereader_wrapper.cpp
-# module is always needed
-${QtXml_GEN_DIR}/qtxml_module_wrapper.cpp
-)
-
-set(QtXml_include_dirs ${QtXml_SOURCE_DIR}
- ${QtXml_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}Xml_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- )
-set(QtXml_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Xml_LIBRARIES})
-set(QtXml_deps QtCore)
-
-create_pyside_module(NAME QtXml
- INCLUDE_DIRS QtXml_include_dirs
- LIBRARIES QtXml_libraries
- DEPS QtXml_deps
- TYPESYSTEM_PATH QtXml_SOURCE_DIR
- SOURCES QtXml_SRC)
diff --git a/sources/pyside2/PySide2/QtXml/typesystem_xml.xml b/sources/pyside2/PySide2/QtXml/typesystem_xml.xml
deleted file mode 100644
index e1750fb80..000000000
--- a/sources/pyside2/PySide2/QtXml/typesystem_xml.xml
+++ /dev/null
@@ -1,388 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtXml">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no" />
- <load-typesystem name="templates/core_common.xml" generate="no" />
- <load-typesystem name="templates/xml_common.xml" generate="no" />
-
- <rejection class="QXmlAttributes::Attribute"/>
- <rejection class="QDomNode" field-name="impl"/>
- <rejection class="QXmlInputSource" field-name="EndOfData"/>
- <rejection class="QXmlInputSource" field-name="EndOfDocument"/>
-
- <value-type name="QDomAttr"/>
- <value-type name="QDomCDATASection"/>
- <value-type name="QDomCharacterData"/>
- <value-type name="QDomComment"/>
-
-
- <value-type name="QDomDocument">
- <!-- will be replaced in inject code -->
- <modify-function signature="setContent(const QByteArray&amp;,bool,QString*,int*,int*)">
- <modify-argument index="3">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="5">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(retval, errorMsg, errorLine, errorColumn)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtxml.cpp" snippet="qdomdocument-setcontent" />
- </modify-function>
- <modify-function signature="setContent(const QString&amp;,bool,QString*,int*,int*)">
- <modify-argument index="3">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="5">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(retval, errorMsg, errorLine, errorColumn)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtxml.cpp" snippet="qdomdocument-setcontent" />
- </modify-function>
- <modify-function signature="setContent(QIODevice*,bool,QString*,int*,int*)">
- <modify-argument index="3">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="5">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(retval, errorMsg, errorLine, errorColumn)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtxml.cpp" snippet="qdomdocument-setcontent" />
- </modify-function>
- <modify-function signature="setContent(const QByteArray&amp;,QString*,int*,int*)">
- <modify-argument index="2">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(retval, errorMsg, errorLine, errorColumn)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtxml.cpp" snippet="qdomdocument-setcontent" />
- </modify-function>
- <modify-function signature="setContent(QIODevice*,QString*,int*,int*)">
- <modify-argument index="2">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(retval, errorMsg, errorLine, errorColumn)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtxml.cpp" snippet="qdomdocument-setcontent" />
- </modify-function>
- <modify-function signature="setContent(QXmlInputSource*,bool,QString*,int*,int*)">
- <modify-argument index="3">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="5">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(retval, errorMsg, errorLine, errorColumn)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtxml.cpp" snippet="qdomdocument-setcontent" />
- </modify-function>
- <modify-function signature="setContent(QXmlInputSource*,QXmlReader*,QString*,int*,int*)">
- <modify-argument index="3">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="5">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(retval, errorMsg, errorLine, errorColumn)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtxml.cpp" snippet="qdomdocument-setcontent" />
- </modify-function>
- <modify-function signature="setContent(const QString&amp;,QString*,int*,int*)">
- <modify-argument index="2">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="3">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="4">
- <remove-argument/>
- <remove-default-expression/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="(retval, errorMsg, errorLine, errorColumn)"/>
- </modify-argument>
- <inject-code class="target" position="beginning" file="../glue/qtxml.cpp" snippet="qdomdocument-setcontent" />
- </modify-function>
- </value-type>
-
- <value-type name="QDomDocumentFragment"/>
- <value-type name="QDomDocumentType"/>
- <value-type name="QDomEntity"/>
- <value-type name="QDomEntityReference"/>
- <value-type name="QDomImplementation">
- <enum-type name="InvalidDataPolicy"/>
- </value-type>
-
- <value-type name="QDomNamedNodeMap"/>
-
- <value-type name="QDomNode">
- <enum-type name="EncodingPolicy"/>
- <enum-type name="NodeType"/>
- <modify-function signature="save(QTextStream&amp;,int,QDomNode::EncodingPolicy)const" allow-thread="yes"/>
- </value-type>
-
- <value-type name="QDomNodeList"/>
- <value-type name="QDomNotation"/>
- <value-type name="QDomProcessingInstruction"/>
-
- <value-type name="QDomText"/>
-
- <object-type name="QXmlParseException"/>
-
- <value-type name="QXmlAttributes"/>
-
- <object-type name="QXmlNamespaceSupport"/>
-
- <value-type name="QDomElement"/>
-
- <object-type name="QXmlContentHandler">
- <modify-function signature="setDocumentLocator(QXmlLocator*)">
- <modify-argument index="1">
- <define-ownership owner="c++"/>
- </modify-argument>
- </modify-function>
- </object-type>
- <object-type name="QXmlDTDHandler"/>
- <object-type name="QXmlDeclHandler"/>
- <object-type name="QXmlErrorHandler"/>
- <object-type name="QXmlLexicalHandler"/>
-
-
- <object-type name="QXmlEntityResolver">
- <modify-function signature="resolveEntity(const QString&amp;,const QString&amp;,QXmlInputSource*&amp;)">
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PySequence"/>
- <conversion-rule class="native">
- <insert-template name="QXmlEntityResolver_resolveEntity_return_conversion_native"/>
- </conversion-rule>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtxml.cpp" snippet="qxmlentityresolver-resolveentity"/>
- </modify-function>
- </object-type>
- <object-type name="QXmlDefaultHandler">
- <modify-function signature="setDocumentLocator(QXmlLocator*)">
- <modify-argument index="1">
- <define-ownership owner="c++"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="resolveEntity(const QString&amp;,const QString&amp;,QXmlInputSource*&amp;)">
- <modify-argument index="3">
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PySequence"/>
- <conversion-rule class="native">
- <insert-template name="QXmlEntityResolver_resolveEntity_return_conversion_native"/>
- </conversion-rule>
- </modify-argument>
- <inject-code class="target" position="end" file="../glue/qtxml.cpp" snippet="qxmlentityresolver-resolveentity"/>
- </modify-function>
- </object-type>
- <object-type name="QXmlInputSource"/>
- <object-type name="QXmlLocator"/>
-
- <object-type name="QXmlReader">
- <modify-function signature="parse(const QXmlInputSource*)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
- <modify-function signature="feature(QString,bool*)const">
- <modify-argument index="2">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PySequence"/>
- <conversion-rule class="native">
- <insert-template name="fix_virtual_method_return_value_and_bool*"/>
- </conversion-rule>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- <modify-function signature="property(QString,bool*)const">
- <modify-argument index="2">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PySequence"/>
- <conversion-rule class="native">
- <insert-template name="fix_virtual_method_return_value_and_bool*"/>
- </conversion-rule>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- </object-type>
- <object-type name="QXmlSimpleReader">
- <modify-function signature="parse(const QXmlInputSource*,bool)">
- <modify-argument index="1" invalidate-after-use="yes"/>
- </modify-function>
-
- <modify-function signature="setContentHandler(QXmlContentHandler*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setDTDHandler(QXmlDTDHandler*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setDeclHandler(QXmlDeclHandler*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setEntityResolver(QXmlEntityResolver*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setErrorHandler(QXmlErrorHandler*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
- <modify-function signature="setLexicalHandler(QXmlLexicalHandler*)">
- <modify-argument index="1">
- <parent index="this" action="add"/>
- </modify-argument>
- </modify-function>
-
- <modify-function signature="feature(QString,bool*)const">
- <modify-argument index="2">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PySequence"/>
- <conversion-rule class="native">
- <insert-template name="fix_virtual_method_return_value_and_bool*"/>
- </conversion-rule>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- <modify-function signature="property(QString,bool*)const">
- <modify-argument index="2">
- <remove-default-expression/>
- <remove-argument/>
- </modify-argument>
- <modify-argument index="return">
- <replace-type modified-type="PySequence"/>
- <conversion-rule class="native">
- <insert-template name="fix_virtual_method_return_value_and_bool*"/>
- </conversion-rule>
- </modify-argument>
- <inject-code class="target" position="beginning">
- <insert-template name="fix_args,bool*"/>
- </inject-code>
- </modify-function>
- </object-type>
-</typesystem>
-
diff --git a/sources/pyside2/PySide2/QtXmlPatterns/CMakeLists.txt b/sources/pyside2/PySide2/QtXmlPatterns/CMakeLists.txt
deleted file mode 100644
index adc1be516..000000000
--- a/sources/pyside2/PySide2/QtXmlPatterns/CMakeLists.txt
+++ /dev/null
@@ -1,41 +0,0 @@
-project(QtXmlPatterns)
-
-set(QtXmlPatterns_SRC
-${QtXmlPatterns_GEN_DIR}/qabstractmessagehandler_wrapper.cpp
-${QtXmlPatterns_GEN_DIR}/qabstracturiresolver_wrapper.cpp
-${QtXmlPatterns_GEN_DIR}/qabstractxmlnodemodel_wrapper.cpp
-${QtXmlPatterns_GEN_DIR}/qabstractxmlreceiver_wrapper.cpp
-${QtXmlPatterns_GEN_DIR}/qsourcelocation_wrapper.cpp
-${QtXmlPatterns_GEN_DIR}/qxmlformatter_wrapper.cpp
-${QtXmlPatterns_GEN_DIR}/qxmlitem_wrapper.cpp
-${QtXmlPatterns_GEN_DIR}/qxmlnamepool_wrapper.cpp
-${QtXmlPatterns_GEN_DIR}/qxmlname_wrapper.cpp
-${QtXmlPatterns_GEN_DIR}/qxmlnodemodelindex_wrapper.cpp
-${QtXmlPatterns_GEN_DIR}/qxmlquery_wrapper.cpp
-${QtXmlPatterns_GEN_DIR}/qxmlresultitems_wrapper.cpp
-${QtXmlPatterns_GEN_DIR}/qxmlschemavalidator_wrapper.cpp
-${QtXmlPatterns_GEN_DIR}/qxmlschema_wrapper.cpp
-${QtXmlPatterns_GEN_DIR}/qxmlserializer_wrapper.cpp
-## always needed
-${QtXmlPatterns_GEN_DIR}/qtxmlpatterns_module_wrapper.cpp
-)
-
-set(QtXmlPatterns_include_dirs ${QtXmlPatterns_SOURCE_DIR}
- ${QtXmlPatterns_BINARY_DIR}
- ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS}
- ${Qt${QT_MAJOR_VERSION}XmlPatterns_INCLUDE_DIRS}
- ${libpyside_SOURCE_DIR}
- ${QtCore_GEN_DIR}
- )
-set(QtXmlPatterns_libraries pyside2
- ${Qt${QT_MAJOR_VERSION}Core_LIBRARIES}
- ${Qt${QT_MAJOR_VERSION}XmlPatterns_LIBRARIES})
-set(QtXmlPatterns_deps QtCore)
-
-create_pyside_module(NAME QtXmlPatterns
- INCLUDE_DIRS QtXmlPatterns_include_dirs
- LIBRARIES QtXmlPatterns_libraries
- DEPS QtXmlPatterns_deps
- TYPESYSTEM_PATH QtXmlPatterns_SOURCE_DIR
- SOURCES QtXmlPatterns_SRC)
-
diff --git a/sources/pyside2/PySide2/QtXmlPatterns/typesystem_xmlpatterns.xml b/sources/pyside2/PySide2/QtXmlPatterns/typesystem_xmlpatterns.xml
deleted file mode 100644
index 1e8eec083..000000000
--- a/sources/pyside2/PySide2/QtXmlPatterns/typesystem_xmlpatterns.xml
+++ /dev/null
@@ -1,122 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem package="PySide2.QtXmlPatterns">
- <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/>
-
- <object-type name="QXmlSchema" since="4.6"/> <!-- Qt scoped pointer does not allow declare this as value type -->
- <object-type name="QXmlSchemaValidator" since="4.6">
- <modify-function signature="schema()const">
- <modify-argument index="return">
- <replace-type modified-type="QXmlSchema*"/>
- <define-ownership owner="target"/>
- </modify-argument>
- <inject-code file="../glue/qtxmlpatterns.cpp" snippet="qxmlschemavalidator-schema"/>
- </modify-function>
- </object-type>
- <object-type name="QAbstractMessageHandler"/>
- <object-type name="QAbstractUriResolver"/>
- <object-type name="QAbstractXmlNodeModel">
- <enum-type name="NodeCopySetting"/>
- <enum-type name="SimpleAxis"/>
- </object-type>
- <object-type name="QAbstractXmlReceiver"/>
- <value-type name="QSourceLocation"/>
- <object-type name="QXmlFormatter"/>
- <value-type name="QXmlItem"/>
- <value-type name="QXmlName">
- <primitive-type name="NamespaceCode"/>
- <primitive-type name="PrefixCode"/>
- <primitive-type name="LocalNameCode"/>
- <!-- ### These methods aren't part of Qt public API -->
- <modify-function signature="QXmlName(QXmlName::NamespaceCode,QXmlName::LocalNameCode,QXmlName::PrefixCode)" remove="all"/>
- <modify-function signature="setNamespaceURI(QXmlName::NamespaceCode)" remove="all"/>
- <modify-function signature="localName()const" remove="all"/>
- <modify-function signature="prefix()const" remove="all"/>
- <modify-function signature="hasPrefix()const" remove="all"/>
- <modify-function signature="hasNamespace()const" remove="all"/>
- <modify-function signature="namespaceURI()const" remove="all"/>
- <modify-function signature="isLexicallyEqual(const QXmlName&amp;)const" remove="all"/>
- <modify-function signature="setPrefix(QXmlName::PrefixCode)" remove="all"/>
- <modify-function signature="setLocalName(QXmlName::LocalNameCode)" remove="all"/>
- <modify-function signature="code()const" remove="all"/>
- <!-- ### -->
- </value-type>
- <value-type name="QXmlNamePool"/>
-
- <rejection class="QXmlNodeModelIndex" function-name="type"/>
- <rejection class="QXmlNodeModelIndex" function-name="sequencedTypedValue"/>
- <rejection class="QXmlNodeModelIndex" function-name="iterate"/>
- <!-- ### This enum isn't part of Qt public API -->
- <suppress-warning text="Enum 'QXmlNodeModelIndex::Axis' (class: QXmlNodeModelIndex) does not have a type entry"/>
- <value-type name="QXmlNodeModelIndex">
- <enum-type name="DocumentOrder"/>
- <enum-type name="NodeKind"/>
- <!-- ### Qt internal methods -->
- <modify-function signature="name()const" remove="all"/>
- <modify-function signature="root()const" remove="all"/>
- <modify-function signature="documentUri()const" remove="all"/>
- <modify-function signature="baseUri()const" remove="all"/>
- <modify-function signature="kind()const" remove="all"/>
- <modify-function signature="isDeepEqual(const QXmlNodeModelIndex&amp;)const" remove="all"/>
- <modify-function signature="compareOrder(const QXmlNodeModelIndex &amp;)const" remove="all"/>
- <modify-function signature="sendNamespaces(QAbstractXmlReceiver*const)const" remove="all"/>
- <modify-function signature="namespaceBindings()const" remove="all"/>
- <modify-function signature="namespaceForPrefix(QXmlName::PrefixCode)const" remove="all"/>
- <modify-function signature="stringValue()const" remove="all"/>
- <modify-function signature="is(const QXmlNodeModelIndex &amp;)const" remove="all"/>
- <modify-function signature="reset()" remove="all"/>
- <!-- ### -->
- </value-type>
-
- <value-type name="QXmlQuery">
- <!-- ### TODO: must evaluate if anything other than removal is needed. -->
- <enum-type name="QueryLanguage"/>
- <modify-function signature="evaluateTo(QStringList*)const" remove="all"/>
- <modify-function signature="evaluateTo(QString*)const" remove="all"/>
- <!-- ### -->
- </value-type>
- <object-type name="QXmlResultItems"/>
- <object-type name="QXmlSerializer"/>
-
- <suppress-warning text="class 'QAbstractXmlNodeModel' inherits from unknown base class 'QSharedData'"/>
- <suppress-warning text="class not found for setup inheritance 'QSharedData'"/>
-</typesystem>
diff --git a/sources/pyside2/PySide2/__init__.py.in b/sources/pyside2/PySide2/__init__.py.in
deleted file mode 100644
index 8013ac68a..000000000
--- a/sources/pyside2/PySide2/__init__.py.in
+++ /dev/null
@@ -1,88 +0,0 @@
-from __future__ import print_function
-import os
-import sys
-
-__all__ = list("Qt" + body for body in
- "@all_module_shortnames@"
- .split(";"))
-__version__ = "@FINAL_PACKAGE_VERSION@"
-__version_info__ = (@BINDING_API_MAJOR_VERSION@, @BINDING_API_MINOR_VERSION@, @BINDING_API_MICRO_VERSION@, "@BINDING_API_PRE_RELEASE_VERSION_TYPE@", "@BINDING_API_PRE_RELEASE_VERSION@")
-
-
-def _additional_dll_directories(package_dir):
- # Find shiboken2 relative to the package directory.
- root = os.path.dirname(package_dir)
- shiboken2 = os.path.join(root, 'shiboken2')
- if os.path.isdir(shiboken2): # Standard case, only shiboken2 is needed
- return [shiboken2]
- # The below code is for the build process when generate_pyi.py
- # is executed in the build directory. We need libpyside and Qt in addition.
- shiboken2 = os.path.join(os.path.dirname(root), 'shiboken2', 'libshiboken')
- if not os.path.isdir(shiboken2):
- raise ImportError(shiboken2 + ' does not exist')
- result = [shiboken2, os.path.join(root, 'libpyside')]
- for path in os.environ.get('PATH').split(';'):
- if path:
- if os.path.exists(os.path.join(path, 'qmake.exe')):
- result.append(path)
- break
- return result
-
-
-def _setupQtDirectories():
- # On Windows we need to explicitly import the shiboken2 module so
- # that the libshiboken.dll dependency is loaded by the time a
- # Qt module is imported. Otherwise due to PATH not containing
- # the shiboken2 module path, the Qt module import would fail
- # due to the missing libshiboken dll.
- # In addition, as of Python 3.8, the shiboken package directory
- # must be added to the DLL search paths so that shiboken2.dll
- # is found.
- # We need to do the same on Linux and macOS, because we do not
- # embed rpaths into the PySide2 libraries that would point to
- # the libshiboken library location. Importing the module
- # loads the libraries into the process memory beforehand, and
- # thus takes care of it for us.
-
- pyside_package_dir = os.path.abspath(os.path.dirname(__file__))
-
- if sys.platform == 'win32' and sys.version_info[0] == 3 and sys.version_info[1] >= 8:
- for dir in _additional_dll_directories(pyside_package_dir):
- os.add_dll_directory(dir)
-
- try:
- import shiboken2
- except Exception:
- paths = ', '.join(sys.path)
- print('PySide2/__init__.py: Unable to import shiboken2 from {}'.format(paths),
- file=sys.stderr)
- raise
-
- # Trigger signature initialization.
- type.__signature__
-
- if sys.platform == 'win32':
- # PATH has to contain the package directory, otherwise plugins
- # won't be able to find their required Qt libraries (e.g. the
- # svg image plugin won't find Qt5Svg.dll).
- os.environ['PATH'] = pyside_package_dir + os.pathsep + os.environ['PATH']
-
- # On Windows, add the PySide2\openssl folder (created by setup.py's
- # --openssl option) to the PATH so that the SSL DLLs can be found
- # when Qt tries to dynamically load them. Tell Qt to load them and
- # then reset the PATH.
- openssl_dir = os.path.join(pyside_package_dir, 'openssl')
- if os.path.exists(openssl_dir):
- path = os.environ['PATH']
- try:
- os.environ['PATH'] = openssl_dir + os.pathsep + path
- try:
- from . import QtNetwork
- except ImportError:
- pass
- else:
- QtNetwork.QSslSocket.supportsSsl()
- finally:
- os.environ['PATH'] = path
-
-_setupQtDirectories()
diff --git a/sources/pyside2/PySide2/_config.py.in b/sources/pyside2/PySide2/_config.py.in
deleted file mode 100644
index 740e9a001..000000000
--- a/sources/pyside2/PySide2/_config.py.in
+++ /dev/null
@@ -1,16 +0,0 @@
-built_modules = list(name for name in
- "@all_module_shortnames@"
- .split(";"))
-
-shiboken_library_soversion = str(@SHIBOKEN_SO_VERSION@)
-pyside_library_soversion = str(@PYSIDE_SO_VERSION@)
-
-version = "@FINAL_PACKAGE_VERSION@"
-version_info = (@BINDING_API_MAJOR_VERSION@, @BINDING_API_MINOR_VERSION@, @BINDING_API_MICRO_VERSION@, "@BINDING_API_PRE_RELEASE_VERSION_TYPE@", "@BINDING_API_PRE_RELEASE_VERSION@")
-
-@PACKAGE_BUILD_DATE@
-@PACKAGE_BUILD_COMMIT_DATE@
-@PACKAGE_BUILD_COMMIT_HASH@
-@PACKAGE_BUILD_COMMIT_HASH_DESCRIBED@
-@PACKAGE_SETUP_PY_PACKAGE_TIMESTAMP_ASSIGNMENT@
-@PACKAGE_SETUP_PY_PACKAGE_VERSION_ASSIGNMENT@
diff --git a/sources/pyside2/PySide2/global.h.in b/sources/pyside2/PySide2/global.h.in
deleted file mode 100644
index a8065a7ba..000000000
--- a/sources/pyside2/PySide2/global.h.in
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtCore/qnamespace.h>
-
-#if @ENABLE_X11@
- #define Q_OS_X11
-#elif @ENABLE_MAC@
- #define Q_OS_MAC
-#elif @ENABLE_WIN@
- #define Q_OS_WIN
-#endif
-
-// There are symbols in Qt that exist in Debug but
-// not in release
-#define QT_NO_DEBUG
-
-// Make "signals:", "slots:" visible as access specifiers
-#define QT_ANNOTATE_ACCESS_SPECIFIER(a) __attribute__((annotate(#a)))
-
-// Here are now all configured modules appended:
diff --git a/sources/pyside2/PySide2/glue/qtcharts.cpp b/sources/pyside2/PySide2/glue/qtcharts.cpp
deleted file mode 100644
index 1828fecc0..000000000
--- a/sources/pyside2/PySide2/glue/qtcharts.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// @snippet qchart-releaseownership
-Shiboken::Object::releaseOwnership(%PYARG_1);
-// @snippet qchart-releaseownership
diff --git a/sources/pyside2/PySide2/glue/qtcore.cpp b/sources/pyside2/PySide2/glue/qtcore.cpp
deleted file mode 100644
index 9b927cce4..000000000
--- a/sources/pyside2/PySide2/glue/qtcore.cpp
+++ /dev/null
@@ -1,1970 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*********************************************************************
- * INJECT CODE
- ********************************************************************/
-
-// @snippet include-pyside
-#include <pyside.h>
-#include <limits>
-// @snippet include-pyside
-
-// @snippet pystring-check
-bool py2kStrCheck(PyObject *obj)
-{
-#ifdef IS_PY3K
- return false;
-#else
- return PyString_Check(obj);
-#endif
-}
-// @snippet pystring-check
-
-// @snippet qsettings-value
-// If we enter the kwds, means that we have a defaultValue or
-// at least a type.
-// This avoids that we are passing '0' as defaultValue.
-// defaultValue can also be passed as positional argument,
-// not only as keyword.
-QVariant out;
-if (kwds || numArgs > 1) {
- Py_BEGIN_ALLOW_THREADS
- out = %CPPSELF.value(%1, %2);
- Py_END_ALLOW_THREADS
-} else {
- Py_BEGIN_ALLOW_THREADS
- out = %CPPSELF.value(%1);
- Py_END_ALLOW_THREADS
-}
-
-PyTypeObject *typeObj = reinterpret_cast<PyTypeObject*>(%PYARG_3);
-
-if (typeObj) {
- if (typeObj == &PyList_Type) {
- QByteArray out_ba = out.toByteArray();
- if (!out_ba.isEmpty()) {
- QByteArrayList valuesList = out_ba.split(',');
- const int valuesSize = valuesList.size();
- if (valuesSize > 0) {
- PyObject *list = PyList_New(valuesSize);
- for (int i = 0; i < valuesSize; i++) {
- PyObject *item = PyUnicode_FromString(valuesList[i].data());
- PyList_SET_ITEM(list, i, item);
- }
- %PYARG_0 = list;
-
- } else {
- %PYARG_0 = %CONVERTTOPYTHON[QVariant](out);
- }
- } else {
- %PYARG_0 = PyList_New(0);
- }
- } else if (typeObj == &PyBytes_Type) {
- QByteArray asByteArray = out.toByteArray();
- %PYARG_0 = PyBytes_FromString(asByteArray.data());
- } else if (typeObj == &PyUnicode_Type) {
- QByteArray asByteArray = out.toByteArray();
- %PYARG_0 = PyUnicode_FromString(asByteArray.data());
-#ifdef IS_PY3K
- } else if (typeObj == &PyLong_Type) {
- float asFloat = out.toFloat();
- pyResult = PyLong_FromDouble(asFloat);
-#else
- } else if (typeObj == &PyInt_Type) {
- float asFloat = out.toFloat();
- pyResult = PyInt_FromLong(long(asFloat));
-#endif
- } else if (typeObj == &PyFloat_Type) {
- float asFloat = out.toFloat();
- %PYARG_0 = PyFloat_FromDouble(asFloat);
- } else if (typeObj == &PyBool_Type) {
- if (out.toBool()) {
- Py_INCREF(Py_True);
- %PYARG_0 = Py_True;
- } else {
- Py_INCREF(Py_False);
- %PYARG_0 = Py_False;
- }
- }
- // TODO: PyDict_Type and PyTuple_Type
-}
-else {
- if (!out.isValid()) {
- Py_INCREF(Py_None);
- %PYARG_0 = Py_None;
- } else {
- %PYARG_0 = %CONVERTTOPYTHON[QVariant](out);
- }
-}
-
-// @snippet qsettings-value
-
-// @snippet qvariant-conversion
-static const char *QVariant_resolveMetaType(PyTypeObject *type, int *typeId)
-{
- if (PyObject_TypeCheck(type, SbkObjectType_TypeF())) {
- auto sbkType = reinterpret_cast<SbkObjectType *>(type);
- const char *typeName = Shiboken::ObjectType::getOriginalName(sbkType);
- if (!typeName)
- return nullptr;
- const bool valueType = '*' != typeName[qstrlen(typeName) - 1];
- // Do not convert user type of value
- if (valueType && Shiboken::ObjectType::isUserType(type))
- return nullptr;
- int obTypeId = QMetaType::type(typeName);
- if (obTypeId) {
- *typeId = obTypeId;
- return typeName;
- }
- // Do not resolve types to value type
- if (valueType)
- return nullptr;
- // Find in base types. First check tp_bases, and only after check tp_base, because
- // tp_base does not always point to the first base class, but rather to the first
- // that has added any python fields or slots to its object layout.
- // See https://mail.python.org/pipermail/python-list/2009-January/520733.html
- if (type->tp_bases) {
- for (int i = 0, size = PyTuple_GET_SIZE(type->tp_bases); i < size; ++i) {
- const char *derivedName = QVariant_resolveMetaType(reinterpret_cast<PyTypeObject *>(PyTuple_GET_ITEM(
- type->tp_bases, i)), typeId);
- if (derivedName)
- return derivedName;
- }
- }
- else if (type->tp_base) {
- return QVariant_resolveMetaType(type->tp_base, typeId);
- }
- }
- *typeId = 0;
- return nullptr;
-}
-static QVariant QVariant_convertToValueList(PyObject *list)
-{
- if (PySequence_Size(list) < 0) {
- // clear the error if < 0 which means no length at all
- PyErr_Clear();
- return QVariant();
- }
-
- Shiboken::AutoDecRef element(PySequence_GetItem(list, 0));
- int typeId;
- const char *typeName = QVariant_resolveMetaType(element.cast<PyTypeObject *>(), &typeId);
- if (typeName) {
- QByteArray listTypeName("QList<");
- listTypeName += typeName;
- listTypeName += '>';
- typeId = QMetaType::type(listTypeName);
- if (typeId > 0) {
- Shiboken::Conversions::SpecificConverter converter(listTypeName);
- if (converter) {
- QVariant var(typeId, nullptr);
- converter.toCpp(list, &var);
- return var;
- }
- qWarning() << "Type converter for :" << listTypeName << "not registered.";
- }
- }
- return QVariant();
-}
-static bool QVariant_isStringList(PyObject *list)
-{
- if (!PySequence_Check(list)) {
- // If it is not a list or a derived list class
- // we assume that will not be a String list neither.
- return false;
- }
-
- if (PySequence_Size(list) < 0) {
- // clear the error if < 0 which means no length at all
- PyErr_Clear();
- return false;
- }
-
- Shiboken::AutoDecRef fast(PySequence_Fast(list, "Failed to convert QVariantList"));
- const Py_ssize_t size = PySequence_Fast_GET_SIZE(fast.object());
- for (Py_ssize_t i = 0; i < size; ++i) {
- PyObject *item = PySequence_Fast_GET_ITEM(fast.object(), i);
- if (!%CHECKTYPE[QString](item))
- return false;
- }
- return true;
-}
-static QVariant QVariant_convertToVariantMap(PyObject *map)
-{
- Py_ssize_t pos = 0;
- Shiboken::AutoDecRef keys(PyDict_Keys(map));
- if (!QVariant_isStringList(keys))
- return QVariant();
- PyObject *key;
- PyObject *value;
- QMap<QString,QVariant> ret;
- while (PyDict_Next(map, &pos, &key, &value)) {
- QString cppKey = %CONVERTTOCPP[QString](key);
- QVariant cppValue = %CONVERTTOCPP[QVariant](value);
- ret.insert(cppKey, cppValue);
- }
- return QVariant(ret);
-}
-static QVariant QVariant_convertToVariantList(PyObject *list)
-{
- if (QVariant_isStringList(list)) {
- QList<QString > lst = %CONVERTTOCPP[QList<QString>](list);
- return QVariant(QStringList(lst));
- }
- QVariant valueList = QVariant_convertToValueList(list);
- if (valueList.isValid())
- return valueList;
-
- if (PySequence_Size(list) < 0) {
- // clear the error if < 0 which means no length at all
- PyErr_Clear();
- return QVariant();
- }
-
- QList<QVariant> lst;
- Shiboken::AutoDecRef fast(PySequence_Fast(list, "Failed to convert QVariantList"));
- const Py_ssize_t size = PySequence_Fast_GET_SIZE(fast.object());
- for (Py_ssize_t i = 0; i < size; ++i) {
- PyObject *pyItem = PySequence_Fast_GET_ITEM(fast.object(), i);
- QVariant item = %CONVERTTOCPP[QVariant](pyItem);
- lst.append(item);
- }
- return QVariant(lst);
-}
-// @snippet qvariant-conversion
-
-// @snippet qvariantmap-check
-static bool QVariantType_isStringList(PyObject *list)
-{
- Shiboken::AutoDecRef fast(PySequence_Fast(list, "Failed to convert QVariantList"));
- const Py_ssize_t size = PySequence_Fast_GET_SIZE(fast.object());
- for (Py_ssize_t i=0; i < size; i++) {
- PyObject *item = PySequence_Fast_GET_ITEM(fast.object(), i);
- if (!%CHECKTYPE[QString](item))
- return false;
- }
- return true;
-}
-static bool QVariantType_checkAllStringKeys(PyObject *dict)
-{
- Shiboken::AutoDecRef keys(PyDict_Keys(dict));
- return QVariantType_isStringList(keys);
-}
-// @snippet qvariantmap-check
-
-// @snippet qt-qabs
-double _abs = qAbs(%1);
-%PYARG_0 = %CONVERTTOPYTHON[double](_abs);
-// @snippet qt-qabs
-
-// @snippet qt-postroutine
-namespace PySide {
-static QStack<PyObject *> globalPostRoutineFunctions;
-void globalPostRoutineCallback()
-{
- Shiboken::GilState state;
- for (auto *callback : globalPostRoutineFunctions) {
- Shiboken::AutoDecRef result(PyObject_CallObject(callback, nullptr));
- Py_DECREF(callback);
- }
- globalPostRoutineFunctions.clear();
-}
-void addPostRoutine(PyObject *callback)
-{
- if (PyCallable_Check(callback)) {
- globalPostRoutineFunctions << callback;
- Py_INCREF(callback);
- } else {
- PyErr_SetString(PyExc_TypeError, "qAddPostRoutine: The argument must be a callable object.");
- }
-}
-} // namespace
-// @snippet qt-postroutine
-
-// @snippet qt-addpostroutine
-PySide::addPostRoutine(%1);
-// @snippet qt-addpostroutine
-
-// @snippet qt-qaddpostroutine
-qAddPostRoutine(PySide::globalPostRoutineCallback);
-// @snippet qt-qaddpostroutine
-
-// @snippet qt-version
-QList<QByteArray> version = QByteArray(qVersion()).split('.');
-PyObject *pyQtVersion = PyTuple_New(3);
-for (int i = 0; i < 3; ++i)
- PyTuple_SET_ITEM(pyQtVersion, i, PyInt_FromLong(version[i].toInt()));
-PyModule_AddObject(module, "__version_info__", pyQtVersion);
-PyModule_AddStringConstant(module, "__version__", qVersion());
-// @snippet qt-version
-
-// @snippet qobject-connect
-static bool isDecorator(PyObject *method, PyObject *self)
-{
- Shiboken::AutoDecRef methodName(PyObject_GetAttr(method, Shiboken::PyMagicName::name()));
- if (!PyObject_HasAttr(self, methodName))
- return true;
- Shiboken::AutoDecRef otherMethod(PyObject_GetAttr(self, methodName));
- return PyMethod_GET_FUNCTION(otherMethod.object()) != PyMethod_GET_FUNCTION(method);
-}
-
-static bool getReceiver(QObject *source, const char *signal, PyObject *callback, QObject **receiver, PyObject **self, QByteArray *callbackSig)
-{
- bool forceGlobalReceiver = false;
- if (PyMethod_Check(callback)) {
- *self = PyMethod_GET_SELF(callback);
- if (%CHECKTYPE[QObject *](*self))
- *receiver = %CONVERTTOCPP[QObject *](*self);
- forceGlobalReceiver = isDecorator(callback, *self);
- } else if (PyCFunction_Check(callback)) {
- *self = PyCFunction_GET_SELF(callback);
- if (*self && %CHECKTYPE[QObject *](*self))
- *receiver = %CONVERTTOCPP[QObject *](*self);
- } else if (PyCallable_Check(callback)) {
- // Ok, just a callable object
- *receiver = nullptr;
- *self = nullptr;
- }
-
- bool usingGlobalReceiver = !*receiver || forceGlobalReceiver;
-
- // Check if this callback is a overwrite of a non-virtual Qt slot.
- if (!usingGlobalReceiver && receiver && self) {
- *callbackSig = PySide::Signal::getCallbackSignature(signal, *receiver, callback, usingGlobalReceiver).toLatin1();
- const QMetaObject *metaObject = (*receiver)->metaObject();
- int slotIndex = metaObject->indexOfSlot(callbackSig->constData());
- if (slotIndex != -1 && slotIndex < metaObject->methodOffset() && PyMethod_Check(callback))
- usingGlobalReceiver = true;
- }
-
- if (usingGlobalReceiver) {
- PySide::SignalManager &signalManager = PySide::SignalManager::instance();
- *receiver = signalManager.globalReceiver(source, callback);
- *callbackSig = PySide::Signal::getCallbackSignature(signal, *receiver, callback, usingGlobalReceiver).toLatin1();
- }
-
- return usingGlobalReceiver;
-}
-
-static bool qobjectConnect(QObject *source, const char *signal, QObject *receiver, const char *slot, Qt::ConnectionType type)
-{
- if (!signal || !slot)
- return false;
-
- if (!PySide::Signal::checkQtSignal(signal))
- return false;
- signal++;
-
- if (!PySide::SignalManager::registerMetaMethod(source, signal, QMetaMethod::Signal))
- return false;
-
- bool isSignal = PySide::Signal::isQtSignal(slot);
- slot++;
- PySide::SignalManager::registerMetaMethod(receiver, slot, isSignal ? QMetaMethod::Signal : QMetaMethod::Slot);
- bool connection;
- connection = QObject::connect(source, signal - 1, receiver, slot - 1, type);
- return connection;
-}
-
-static bool qobjectConnect(QObject *source, QMetaMethod signal, QObject *receiver, QMetaMethod slot, Qt::ConnectionType type)
-{
- return qobjectConnect(source, signal.methodSignature(), receiver, slot.methodSignature(), type);
-}
-
-static bool qobjectConnectCallback(QObject *source, const char *signal, PyObject *callback, Qt::ConnectionType type)
-{
- if (!signal || !PySide::Signal::checkQtSignal(signal))
- return false;
- signal++;
-
- int signalIndex = PySide::SignalManager::registerMetaMethodGetIndex(source, signal, QMetaMethod::Signal);
- if (signalIndex == -1)
- return false;
-
- PySide::SignalManager &signalManager = PySide::SignalManager::instance();
-
- // Extract receiver from callback
- QObject *receiver = nullptr;
- PyObject *self = nullptr;
- QByteArray callbackSig;
- bool usingGlobalReceiver = getReceiver(source, signal, callback, &receiver, &self, &callbackSig);
- if (receiver == nullptr && self == nullptr)
- return false;
-
- const QMetaObject *metaObject = receiver->metaObject();
- const char *slot = callbackSig.constData();
- int slotIndex = metaObject->indexOfSlot(slot);
- QMetaMethod signalMethod = metaObject->method(signalIndex);
-
- if (slotIndex == -1) {
- if (!usingGlobalReceiver && self && !Shiboken::Object::hasCppWrapper(reinterpret_cast<SbkObject *>(self))) {
- qWarning("You can't add dynamic slots on an object originated from C++.");
- if (usingGlobalReceiver)
- signalManager.releaseGlobalReceiver(source, receiver);
-
- return false;
- }
-
- if (usingGlobalReceiver)
- slotIndex = signalManager.globalReceiverSlotIndex(receiver, slot);
- else
- slotIndex = PySide::SignalManager::registerMetaMethodGetIndex(receiver, slot, QMetaMethod::Slot);
-
- if (slotIndex == -1) {
- if (usingGlobalReceiver)
- signalManager.releaseGlobalReceiver(source, receiver);
-
- return false;
- }
- }
- bool connection;
- connection = QMetaObject::connect(source, signalIndex, receiver, slotIndex, type);
- if (connection) {
- if (usingGlobalReceiver)
- signalManager.notifyGlobalReceiver(receiver);
- #ifndef AVOID_PROTECTED_HACK
- source->connectNotify(signalMethod); //Qt5: QMetaMethod instead of char *
- #else
- // Need to cast to QObjectWrapper * and call the public version of
- // connectNotify when avoiding the protected hack.
- reinterpret_cast<QObjectWrapper *>(source)->connectNotify(signalMethod); //Qt5: QMetaMethod instead of char *
- #endif
-
- return connection;
- }
-
- if (usingGlobalReceiver)
- signalManager.releaseGlobalReceiver(source, receiver);
-
- return false;
-}
-
-
-static bool qobjectDisconnectCallback(QObject *source, const char *signal, PyObject *callback)
-{
- if (!PySide::Signal::checkQtSignal(signal))
- return false;
-
- PySide::SignalManager &signalManager = PySide::SignalManager::instance();
-
- // Extract receiver from callback
- QObject *receiver = nullptr;
- PyObject *self = nullptr;
- QByteArray callbackSig;
- QMetaMethod slotMethod;
- bool usingGlobalReceiver = getReceiver(nullptr, signal, callback, &receiver, &self, &callbackSig);
- if (receiver == nullptr && self == nullptr)
- return false;
-
- const QMetaObject *metaObject = receiver->metaObject();
- int signalIndex = source->metaObject()->indexOfSignal(++signal);
- int slotIndex = -1;
-
- slotIndex = metaObject->indexOfSlot(callbackSig);
- slotMethod = metaObject->method(slotIndex);
-
- bool disconnected;
- disconnected = QMetaObject::disconnectOne(source, signalIndex, receiver, slotIndex);
-
- if (disconnected) {
- if (usingGlobalReceiver)
- signalManager.releaseGlobalReceiver(source, receiver);
-
- #ifndef AVOID_PROTECTED_HACK
- source->disconnectNotify(slotMethod); //Qt5: QMetaMethod instead of char *
- #else
- // Need to cast to QObjectWrapper * and call the public version of
- // connectNotify when avoiding the protected hack.
- reinterpret_cast<QObjectWrapper *>(source)->disconnectNotify(slotMethod); //Qt5: QMetaMethod instead of char *
- #endif
- return true;
- }
- return false;
-}
-// @snippet qobject-connect
-
-// @snippet qobject-connect-1
-// %FUNCTION_NAME() - disable generation of function call.
-bool %0 = qobjectConnect(%1, %2, %CPPSELF, %3, %4);
-%PYARG_0 = %CONVERTTOPYTHON[bool](%0);
-// @snippet qobject-connect-1
-
-// @snippet qobject-connect-2
-// %FUNCTION_NAME() - disable generation of function call.
-bool %0 = qobjectConnect(%1, %2, %3, %4, %5);
-%PYARG_0 = %CONVERTTOPYTHON[bool](%0);
-// @snippet qobject-connect-2
-
-// @snippet qobject-connect-3
-// %FUNCTION_NAME() - disable generation of function call.
-bool %0 = qobjectConnect(%1, %2, %3, %4, %5);
-%PYARG_0 = %CONVERTTOPYTHON[bool](%0);
-// @snippet qobject-connect-3
-
-// @snippet qobject-connect-4
-// %FUNCTION_NAME() - disable generation of function call.
-%RETURN_TYPE %0 = qobjectConnectCallback(%1, %2, %PYARG_3, %4);
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-// @snippet qobject-connect-4
-
-// @snippet qobject-connect-5
-// %FUNCTION_NAME() - disable generation of function call.
-%RETURN_TYPE %0 = qobjectConnectCallback(%CPPSELF, %1, %PYARG_2, %3);
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-// @snippet qobject-connect-5
-
-// @snippet qobject-connect-6
-// %FUNCTION_NAME() - disable generation of function call.
-%RETURN_TYPE %0 = qobjectConnect(%CPPSELF, %1, %2, %3, %4);
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-// @snippet qobject-connect-6
-
-// @snippet qobject-emit
-%RETURN_TYPE %0 = PySide::SignalManager::instance().emitSignal(%CPPSELF, %1, %PYARG_2);
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-// @snippet qobject-emit
-
-// @snippet qobject-disconnect-1
-// %FUNCTION_NAME() - disable generation of function call.
-%RETURN_TYPE %0 = qobjectDisconnectCallback(%CPPSELF, %1, %2);
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-// @snippet qobject-disconnect-1
-
-// @snippet qobject-disconnect-2
-// %FUNCTION_NAME() - disable generation of function call.
-%RETURN_TYPE %0 = qobjectDisconnectCallback(%1, %2, %3);
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-// @snippet qobject-disconnect-2
-
-// @snippet qfatal
-// qFatal doesn't have a stream version, so we do a
-// qWarning call followed by a qFatal() call using a
-// literal.
-Py_BEGIN_ALLOW_THREADS
-qWarning() << %1;
-qFatal("[A qFatal() call was made from Python code]");
-Py_END_ALLOW_THREADS
-// @snippet qfatal
-
-// @snippet moduleshutdown
-PySide::runCleanupFunctions();
-// @snippet moduleshutdown
-
-// @snippet qt-pysideinit
-Shiboken::Conversions::registerConverterName(SbkPySide2_QtCoreTypeConverters[SBK_QSTRING_IDX], "unicode");
-Shiboken::Conversions::registerConverterName(SbkPySide2_QtCoreTypeConverters[SBK_QSTRING_IDX], "str");
-Shiboken::Conversions::registerConverterName(SbkPySide2_QtCoreTypeConverters[SBK_QTCORE_QLIST_QVARIANT_IDX], "QVariantList");
-Shiboken::Conversions::registerConverterName(SbkPySide2_QtCoreTypeConverters[SBK_QTCORE_QMAP_QSTRING_QVARIANT_IDX], "QVariantMap");
-
-PySide::registerInternalQtConf();
-PySide::init(module);
-Py_AtExit(QtCoreModuleExit);
-// @snippet qt-pysideinit
-
-// @snippet qt-messagehandler
-// Define a global variable to handle qInstallMessageHandler callback
-static PyObject *qtmsghandler = nullptr;
-
-static void msgHandlerCallback(QtMsgType type, const QMessageLogContext &ctx, const QString &msg)
-{
- Shiboken::GilState state;
- Shiboken::AutoDecRef arglist(PyTuple_New(3));
- PyTuple_SET_ITEM(arglist, 0, %CONVERTTOPYTHON[QtMsgType](type));
- PyTuple_SET_ITEM(arglist, 1, %CONVERTTOPYTHON[QMessageLogContext &](ctx));
- QByteArray array = msg.toUtf8(); // Python handler requires UTF-8
- char *data = array.data();
- PyTuple_SET_ITEM(arglist, 2, %CONVERTTOPYTHON[char *](data));
- Shiboken::AutoDecRef ret(PyObject_CallObject(qtmsghandler, arglist));
-}
-static void QtCoreModuleExit()
-{
- PySide::SignalManager::instance().clear();
-}
-// @snippet qt-messagehandler
-
-// @snippet qt-installmessagehandler
-if (%PYARG_1 == Py_None) {
- qInstallMessageHandler(0);
- %PYARG_0 = qtmsghandler ? qtmsghandler : Py_None;
- qtmsghandler = 0;
-} else if (!PyCallable_Check(%PYARG_1)) {
- PyErr_SetString(PyExc_TypeError, "parameter must be callable");
-} else {
- %PYARG_0 = qtmsghandler ? qtmsghandler : Py_None;
- Py_INCREF(%PYARG_1);
- qtmsghandler = %PYARG_1;
- qInstallMessageHandler(msgHandlerCallback);
-}
-
-if (%PYARG_0 == Py_None)
- Py_INCREF(%PYARG_0);
-// @snippet qt-installmessagehandler
-
-// @snippet qline-hash
-namespace PySide {
- template<> inline uint hash(const QLine &v) {
- return qHash(qMakePair(qMakePair(v.x1(), v.y1()), qMakePair(v.x2(), v.y2())));
- }
-};
-// @snippet qline-hash
-
-// @snippet qlinef-intersect
-QPointF p;
-%RETURN_TYPE retval = %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES, &p);
-%PYARG_0 = PyTuple_New(2);
-PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](retval));
-PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[QPointF](p));
-// @snippet qlinef-intersect
-
-// @snippet qresource-data
-const void *d = %CPPSELF.%FUNCTION_NAME();
-if (d) {
- %PYARG_0 = Shiboken::Buffer::newObject(d, %CPPSELF.size());
-} else {
- Py_INCREF(Py_None);
- %PYARG_0 = Py_None;
-}
-// @snippet qresource-data
-
-// @snippet qdate-topython
-if (!PyDateTimeAPI)
- PySideDateTime_IMPORT;
-%PYARG_0 = PyDate_FromDate(%CPPSELF.year(), %CPPSELF.month(), %CPPSELF.day());
-// @snippet qdate-topython
-
-// @snippet qdate-getdate
-int year, month, day;
-%CPPSELF.%FUNCTION_NAME(&year, &month, &day);
-%PYARG_0 = PyTuple_New(3);
-PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[int](year));
-PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[int](month));
-PyTuple_SET_ITEM(%PYARG_0, 2, %CONVERTTOPYTHON[int](day));
-// @snippet qdate-getdate
-
-// @snippet qdate-weeknumber
-int yearNumber;
-int week = %CPPSELF.%FUNCTION_NAME(&yearNumber);
-%PYARG_0 = PyTuple_New(2);
-PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[int](week));
-PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[int](yearNumber));
-// @snippet qdate-weeknumber
-
-// @snippet qdatetime-1
-QDate date(%1, %2, %3);
-QTime time(%4, %5, %6, %7);
-%0 = new %TYPE(date, time, Qt::TimeSpec(%8));
-// @snippet qdatetime-1
-
-// @snippet qdatetime-2
-QDate date(%1, %2, %3);
-QTime time(%4, %5, %6);
-%0 = new %TYPE(date, time);
-// @snippet qdatetime-2
-
-// @snippet qdatetime-topython
-QDate date = %CPPSELF.date();
-QTime time = %CPPSELF.time();
-if (!PyDateTimeAPI) PySideDateTime_IMPORT;
-%PYARG_0 = PyDateTime_FromDateAndTime(date.year(), date.month(), date.day(), time.hour(), time.minute(), time.second(), time.msec()*1000);
-// @snippet qdatetime-topython
-
-// @snippet qpoint
-namespace PySide {
- template<> inline uint hash(const QPoint &v) {
- return qHash(qMakePair(v.x(), v.y()));
- }
-};
-// @snippet qpoint
-
-// @snippet qrect
-namespace PySide {
- template<> inline uint hash(const QRect &v) {
- return qHash(qMakePair(qMakePair(v.x(), v.y()), qMakePair(v.width(), v.height())));
- }
-};
-// @snippet qrect
-
-// @snippet qsize
-namespace PySide {
- template<> inline uint hash(const QSize &v) {
- return qHash(qMakePair(v.width(), v.height()));
- }
-};
-// @snippet qsize
-
-// @snippet qtime-topython
-if (!PyDateTimeAPI)
- PySideDateTime_IMPORT;
-%PYARG_0 = PyTime_FromTime(%CPPSELF.hour(), %CPPSELF.minute(), %CPPSELF.second(), %CPPSELF.msec()*1000);
-// @snippet qtime-topython
-
-// @snippet qbitarray-len
-return %CPPSELF.size();
-// @snippet qbitarray-len
-
-// @snippet qbitarray-getitem
-if (_i < 0 || _i >= %CPPSELF.size()) {
- PyErr_SetString(PyExc_IndexError, "index out of bounds");
- return 0;
-}
-bool ret = %CPPSELF.at(_i);
-return %CONVERTTOPYTHON[bool](ret);
-// @snippet qbitarray-getitem
-
-// @snippet qbitarray-setitem
-PyObject *args = Py_BuildValue("(iiO)", _i, 1, _value);
-PyObject *result = Sbk_QBitArrayFunc_setBit(self, args);
-Py_DECREF(args);
-Py_XDECREF(result);
-return !result ? -1 : 0;
-// @snippet qbitarray-setitem
-
-// @snippet unlock
-%CPPSELF.unlock();
-// @snippet unlock
-
-// @snippet qabstractitemmodel-createindex
-%RETURN_TYPE %0 = %CPPSELF.%FUNCTION_NAME(%1, %2, %PYARG_3);
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-// @snippet qabstractitemmodel-createindex
-
-// @snippet qabstractitemmodel
-qRegisterMetaType<QVector<int> >("QVector<int>");
-// @snippet qabstractitemmodel
-
-// @snippet qobject-metaobject
-%RETURN_TYPE %0 = %CPPSELF.%FUNCTION_NAME();
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-// @snippet qobject-metaobject
-
-// @snippet qobject-findchild-1
-static QObject *_findChildHelper(const QObject *parent, const QString &name, PyTypeObject *desiredType)
-{
- for (auto *child : parent->children()) {
- Shiboken::AutoDecRef pyChild(%CONVERTTOPYTHON[QObject *](child));
- if (PyType_IsSubtype(Py_TYPE(pyChild), desiredType)
- && (name.isNull() || name == child->objectName())) {
- return child;
- }
- }
-
- for (auto *child : parent->children()) {
- QObject *obj = _findChildHelper(child, name, desiredType);
- if (obj)
- return obj;
- }
- return nullptr;
-}
-
-static inline bool _findChildrenComparator(const QObject *&child, const QRegExp &name)
-{
- return name.indexIn(child->objectName()) != -1;
-}
-
-static inline bool _findChildrenComparator(const QObject *&child, const QString &name)
-{
- return name.isNull() || name == child->objectName();
-}
-
-template<typename T>
-static void _findChildrenHelper(const QObject *parent, const T& name, PyTypeObject *desiredType, PyObject *result)
-{
- for (const auto *child : parent->children()) {
- Shiboken::AutoDecRef pyChild(%CONVERTTOPYTHON[QObject *](child));
- if (PyType_IsSubtype(Py_TYPE(pyChild), desiredType) && _findChildrenComparator(child, name))
- PyList_Append(result, pyChild);
- _findChildrenHelper(child, name, desiredType, result);
- }
-}
-// @snippet qobject-findchild-1
-
-// @snippet qobject-findchild-2
-QObject *child = _findChildHelper(%CPPSELF, %2, reinterpret_cast<PyTypeObject *>(%PYARG_1));
-%PYARG_0 = %CONVERTTOPYTHON[QObject *](child);
-// @snippet qobject-findchild-2
-
-// @snippet qobject-findchildren-1
-%PYARG_0 = PyList_New(0);
-_findChildrenHelper(%CPPSELF, %2, reinterpret_cast<PyTypeObject *>(%PYARG_1), %PYARG_0);
-// @snippet qobject-findchildren-1
-
-// @snippet qobject-findchildren-2
-%PYARG_0 = PyList_New(0);
-_findChildrenHelper(%CPPSELF, %2, reinterpret_cast<PyTypeObject *>(%PYARG_1), %PYARG_0);
-// @snippet qobject-findchildren-2
-
-// @snippet qobject-tr
-QString result;
-if (QCoreApplication::instance()) {
- PyObject *klass = PyObject_GetAttr(%PYSELF, Shiboken::PyMagicName::class_());
- PyObject *cname = PyObject_GetAttr(klass, Shiboken::PyMagicName::name());
- result = QString(QCoreApplication::instance()->translate(Shiboken::String::toCString(cname),
- /* %1, %2, QCoreApplication::CodecForTr, %3)); */
- %1, %2, %3));
-
- Py_DECREF(klass);
- Py_DECREF(cname);
-} else {
- result = QString(QString::fromLatin1(%1));
-}
-%PYARG_0 = %CONVERTTOPYTHON[QString](result);
-// @snippet qobject-tr
-
-// @snippet qobject-receivers
-// Avoid return +1 because SignalManager connect to "destroyed()" signal to control object timelife
-int ret = %CPPSELF.%FUNCTION_NAME(%1);
-if (ret > 0 && ((strcmp(%1, SIGNAL(destroyed())) == 0) || (strcmp(%1, SIGNAL(destroyed(QObject*))) == 0)))
- ret -= PySide::SignalManager::instance().countConnectionsWith(%CPPSELF);
-
-%PYARG_0 = %CONVERTTOPYTHON[int](ret);
-// @snippet qobject-receivers
-
-// @snippet qregexp-replace
-%1.replace(*%CPPSELF, %2);
-%PYARG_0 = %CONVERTTOPYTHON[QString](%1);
-// @snippet qregexp-replace
-
-// @snippet qbytearray-mgetitem
-if (PyIndex_Check(_key)) {
- Py_ssize_t _i;
- _i = PyNumber_AsSsize_t(_key, PyExc_IndexError);
- if (_i < 0 || _i >= %CPPSELF.size()) {
- PyErr_SetString(PyExc_IndexError, "index out of bounds");
- return 0;
- } else {
- char res[2];
- res[0] = %CPPSELF.at(_i);
- res[1] = 0;
- return PyBytes_FromStringAndSize(res, 1);
- }
-} else if (PySlice_Check(_key)) {
- Py_ssize_t start, stop, step, slicelength, cur;
-
-#ifdef IS_PY3K
- PyObject *key = _key;
-#else
- PySliceObject *key = reinterpret_cast<PySliceObject *>(_key);
-#endif
- if (PySlice_GetIndicesEx(key, %CPPSELF.count(), &start, &stop, &step, &slicelength) < 0) {
- return nullptr;
- }
-
- QByteArray ba;
- if (slicelength <= 0) {
- return %CONVERTTOPYTHON[QByteArray](ba);
- } else if (step == 1) {
- Py_ssize_t max = %CPPSELF.count();
- start = qBound(Py_ssize_t(0), start, max);
- stop = qBound(Py_ssize_t(0), stop, max);
- QByteArray ba;
- if (start < stop)
- ba = %CPPSELF.mid(start, stop - start);
- return %CONVERTTOPYTHON[QByteArray](ba);
- } else {
- QByteArray ba;
- for (cur = start; slicelength > 0; cur += static_cast<size_t>(step), slicelength--) {
- ba.append(%CPPSELF.at(cur));
- }
- return %CONVERTTOPYTHON[QByteArray](ba);
- }
-} else {
- PyErr_Format(PyExc_TypeError,
- "list indices must be integers or slices, not %.200s",
- Py_TYPE(_key)->tp_name);
- return nullptr;
-}
-// @snippet qbytearray-mgetitem
-
-// @snippet qbytearray-msetitem
-if (PyIndex_Check(_key)) {
- Py_ssize_t _i = PyNumber_AsSsize_t(_key, PyExc_IndexError);
- if (_i == -1 && PyErr_Occurred())
- return -1;
-
- if (_i < 0)
- _i += %CPPSELF.count();
-
- if (_i < 0 || _i >= %CPPSELF.size()) {
- PyErr_SetString(PyExc_IndexError, "QByteArray index out of range");
- return -1;
- }
-
- // Provide more specific error message for bytes/str, bytearray, QByteArray respectively
-#ifdef IS_PY3K
- if (PyBytes_Check(_value)) {
- if (Py_SIZE(_value) != 1) {
- PyErr_SetString(PyExc_ValueError, "bytes must be of size 1");
-#else
- if (PyString_CheckExact(_value)) {
- if (Py_SIZE(_value) != 1) {
- PyErr_SetString(PyExc_ValueError, "str must be of size 1");
-#endif
- return -1;
- }
- } else if (PyByteArray_Check(_value)) {
- if (Py_SIZE(_value) != 1) {
- PyErr_SetString(PyExc_ValueError, "bytearray must be of size 1");
- return -1;
- }
- } else if (reinterpret_cast<PyTypeObject *>(Py_TYPE(_value)) == reinterpret_cast<PyTypeObject *>(SbkPySide2_QtCoreTypes[SBK_QBYTEARRAY_IDX])) {
- if (PyObject_Length(_value) != 1) {
- PyErr_SetString(PyExc_ValueError, "QByteArray must be of size 1");
- return -1;
- }
- } else {
-#ifdef IS_PY3K
- PyErr_SetString(PyExc_ValueError, "a bytes, bytearray, QByteArray of size 1 is required");
-#else
- PyErr_SetString(PyExc_ValueError, "a str, bytearray, QByteArray of size 1 is required");
-#endif
- return -1;
- }
-
- // Not support int or long.
- %CPPSELF.remove(_i, 1);
- PyObject *args = Py_BuildValue("(nO)", _i, _value);
- PyObject *result = Sbk_QByteArrayFunc_insert(self, args);
- Py_DECREF(args);
- Py_XDECREF(result);
- return !result ? -1 : 0;
-} else if (PySlice_Check(_key)) {
- Py_ssize_t start, stop, step, slicelength, value_length;
-
-#ifdef IS_PY3K
- PyObject *key = _key;
-#else
- PySliceObject *key = reinterpret_cast<PySliceObject *>(_key);
-#endif
- if (PySlice_GetIndicesEx(key, %CPPSELF.count(), &start, &stop, &step, &slicelength) < 0) {
- return -1;
- }
- // The parameter candidates are: bytes/str, bytearray, QByteArray itself.
- // Not support iterable which contains ints between 0~255
-
- // case 1: value is nullpre, means delete the items within the range
- // case 2: step is 1, means shrink or expanse
- // case 3: step is not 1, then the number of slots have to equal the number of items in _value
- QByteArray ba;
- if (_value == nullptr || _value == Py_None) {
- ba = QByteArray();
- value_length = 0;
- } else if (!(PyBytes_Check(_value) || PyByteArray_Check(_value) || reinterpret_cast<PyTypeObject *>(Py_TYPE(_value)) == reinterpret_cast<PyTypeObject *>(SbkPySide2_QtCoreTypes[SBK_QBYTEARRAY_IDX]))) {
- PyErr_Format(PyExc_TypeError, "bytes, bytearray or QByteArray is required, not %.200s", Py_TYPE(_value)->tp_name);
- return -1;
- } else {
- value_length = PyObject_Length(_value);
- }
-
- if (step != 1 && value_length != slicelength) {
- PyErr_Format(PyExc_ValueError, "attempt to assign %s of size %d to extended slice of size %d",
- Py_TYPE(_value)->tp_name, int(value_length), int(slicelength));
- return -1;
- }
-
- if (step != 1) {
- int i = start;
- for (int j = 0; j < slicelength; j++) {
- PyObject *item = PyObject_GetItem(_value, PyLong_FromLong(j));
- QByteArray temp;
-#ifdef IS_PY3K
- if (PyLong_Check(item)) {
-#else
- if (PyLong_Check(item) || PyInt_Check(item)) {
-#endif
- int overflow;
- long ival = PyLong_AsLongAndOverflow(item, &overflow);
- // Not suppose to bigger than 255 because only bytes, bytearray, QByteArray were accept
- temp = QByteArray(reinterpret_cast<const char *>(&ival));
- } else {
- temp = %CONVERTTOCPP[QByteArray](item);
- }
-
- %CPPSELF.replace(i, 1, temp);
- i += step;
- }
- return 0;
- } else {
- ba = %CONVERTTOCPP[QByteArray](_value);
- %CPPSELF.replace(start, slicelength, ba);
- return 0;
- }
-} else {
- PyErr_Format(PyExc_TypeError, "QBytearray indices must be integers or slices, not %.200s",
- Py_TYPE(_key)->tp_name);
- return -1;
-}
-// @snippet qbytearray-msetitem
-
-// @snippet qbytearray-bufferprotocol
-extern "C" {
-// QByteArray buffer protocol functions
-// see: http://www.python.org/dev/peps/pep-3118/
-
-static int SbkQByteArray_getbufferproc(PyObject *obj, Py_buffer *view, int flags)
-{
- if (!view || !Shiboken::Object::isValid(obj))
- return -1;
-
- QByteArray * cppSelf = %CONVERTTOCPP[QByteArray *](obj);
- //XXX /|\ omitting this space crashes shiboken!
- #ifdef Py_LIMITED_API
- view->obj = obj;
- view->buf = reinterpret_cast<void *>(cppSelf->data());
- view->len = cppSelf->size();
- view->readonly = 0;
- view->itemsize = 1;
- view->format = const_cast<char *>("c");
- view->ndim = 1;
- view->shape = (flags & PyBUF_ND) == PyBUF_ND ? &(view->len) : nullptr;
- view->strides = &view->itemsize;
- view->suboffsets = NULL;
- view->internal = NULL;
-
- Py_XINCREF(obj);
- return 0;
-#else // Py_LIMITED_API
- const int result = PyBuffer_FillInfo(view, obj, reinterpret_cast<void *>(cppSelf->data()),
- cppSelf->size(), 0, flags);
- if (result == 0)
- Py_XINCREF(obj);
- return result;
-#endif
-}
-
-#if PY_VERSION_HEX < 0x03000000
-static Py_ssize_t SbkQByteArray_segcountproc(PyObject *self, Py_ssize_t *lenp)
-{
- if (lenp)
- *lenp = Py_TYPE(self)->tp_as_sequence->sq_length(self);
- return 1;
-}
-
-static Py_ssize_t SbkQByteArray_readbufferproc(PyObject *self, Py_ssize_t segment, void **ptrptr)
-{
- if (segment || !Shiboken::Object::isValid(self))
- return -1;
-
- QByteArray * cppSelf = %CONVERTTOCPP[QByteArray *](self);
- //XXX /|\ omitting this space crashes shiboken!
- *ptrptr = reinterpret_cast<void *>(cppSelf->data());
- return cppSelf->size();
-}
-
-PyBufferProcs SbkQByteArrayBufferProc = {
- /*bf_getreadbuffer*/ &SbkQByteArray_readbufferproc,
- /*bf_getwritebuffer*/ (writebufferproc) &SbkQByteArray_readbufferproc,
- /*bf_getsegcount*/ &SbkQByteArray_segcountproc,
- /*bf_getcharbuffer*/ (charbufferproc) &SbkQByteArray_readbufferproc,
- /*bf_getbuffer*/ (getbufferproc)SbkQByteArray_getbufferproc,
-};
-#else
-
-static PyBufferProcs SbkQByteArrayBufferProc = {
- /*bf_getbuffer*/ (getbufferproc)SbkQByteArray_getbufferproc,
- /*bf_releasebuffer*/ (releasebufferproc)0,
-};
-
-#endif
-}
-// @snippet qbytearray-bufferprotocol
-
-// @snippet qbytearray-operatorplus-1
-QByteArray ba = QByteArray(PyBytes_AS_STRING(%PYARG_1), PyBytes_GET_SIZE(%PYARG_1)) + *%CPPSELF;
-%PYARG_0 = %CONVERTTOPYTHON[QByteArray](ba);
-// @snippet qbytearray-operatorplus-1
-
-// @snippet qbytearray-operatorplus-2
-QByteArray ba = QByteArray(PyByteArray_AsString(%PYARG_1), PyByteArray_Size(%PYARG_1)) + *%CPPSELF;
-%PYARG_0 = %CONVERTTOPYTHON[QByteArray](ba);
-// @snippet qbytearray-operatorplus-2
-
-// @snippet qbytearray-operatorplus-3
-QByteArray ba = *%CPPSELF + QByteArray(PyByteArray_AsString(%PYARG_1), PyByteArray_Size(%PYARG_1));
-%PYARG_0 = %CONVERTTOPYTHON[QByteArray](ba);
-// @snippet qbytearray-operatorplus-3
-
-// @snippet qbytearray-operatorplusequal
-*%CPPSELF += QByteArray(PyByteArray_AsString(%PYARG_1), PyByteArray_Size(%PYARG_1));
-// @snippet qbytearray-operatorplusequal
-
-// @snippet qbytearray-operatorequalequal
-if (PyUnicode_CheckExact(%PYARG_1)) {
- Shiboken::AutoDecRef data(PyUnicode_AsASCIIString(%PYARG_1));
- QByteArray ba = QByteArray(PyBytes_AsString(data.object()), PyBytes_GET_SIZE(data.object()));
- bool cppResult = %CPPSELF == ba;
- %PYARG_0 = %CONVERTTOPYTHON[bool](cppResult);
-}
-// @snippet qbytearray-operatorequalequal
-
-// @snippet qbytearray-operatornotequal
-if (PyUnicode_CheckExact(%PYARG_1)) {
- Shiboken::AutoDecRef data(PyUnicode_AsASCIIString(%PYARG_1));
- QByteArray ba = QByteArray(PyBytes_AsString(data.object()), PyBytes_GET_SIZE(data.object()));
- bool cppResult = %CPPSELF != ba;
- %PYARG_0 = %CONVERTTOPYTHON[bool](cppResult);
-}
-// @snippet qbytearray-operatornotequal
-
-// @snippet qbytearray-operatorgreater
-if (PyUnicode_CheckExact(%PYARG_1)) {
- Shiboken::AutoDecRef data(PyUnicode_AsASCIIString(%PYARG_1));
- QByteArray ba = QByteArray(PyBytes_AsString(data.object()), PyBytes_GET_SIZE(data.object()));
- bool cppResult = %CPPSELF > ba;
- %PYARG_0 = %CONVERTTOPYTHON[bool](cppResult);
-}
-// @snippet qbytearray-operatorgreater
-
-// @snippet qbytearray-operatorgreaterequal
-if (PyUnicode_CheckExact(%PYARG_1)) {
- Shiboken::AutoDecRef data(PyUnicode_AsASCIIString(%PYARG_1));
- QByteArray ba = QByteArray(PyBytes_AsString(data.object()), PyBytes_GET_SIZE(data.object()));
- bool cppResult = %CPPSELF >= ba;
- %PYARG_0 = %CONVERTTOPYTHON[bool](cppResult);
-}
-// @snippet qbytearray-operatorgreaterequal
-
-// @snippet qbytearray-operatorlower
-if (PyUnicode_CheckExact(%PYARG_1)) {
- Shiboken::AutoDecRef data(PyUnicode_AsASCIIString(%PYARG_1));
- QByteArray ba = QByteArray(PyBytes_AsString(data.object()), PyBytes_GET_SIZE(data.object()));
- bool cppResult = %CPPSELF < ba;
- %PYARG_0 = %CONVERTTOPYTHON[bool](cppResult);
-}
-// @snippet qbytearray-operatorlower
-
-// @snippet qbytearray-operatorlowerequal
-if (PyUnicode_CheckExact(%PYARG_1)) {
- Shiboken::AutoDecRef data(PyUnicode_AsASCIIString(%PYARG_1));
- QByteArray ba = QByteArray(PyBytes_AsString(data.object()), PyBytes_GET_SIZE(data.object()));
- bool cppResult = %CPPSELF <= ba;
- %PYARG_0 = %CONVERTTOPYTHON[bool](cppResult);
-}
-// @snippet qbytearray-operatorlowerequal
-
-// @snippet qbytearray-repr
-PyObject *aux = PyBytes_FromStringAndSize(%CPPSELF.constData(), %CPPSELF.size());
-if (aux == nullptr) {
- return nullptr;
-}
-QByteArray b(Py_TYPE(%PYSELF)->tp_name);
-#ifdef IS_PY3K
- %PYARG_0 = PyUnicode_FromFormat("%s(%R)", b.constData(), aux);
-#else
- aux = PyObject_Repr(aux);
- b += '(';
- b += QByteArray(PyBytes_AS_STRING(aux), PyBytes_GET_SIZE(aux));
- b += ')';
- %PYARG_0 = Shiboken::String::fromStringAndSize(b.constData(), b.size());
-#endif
-Py_DECREF(aux);
-// @snippet qbytearray-repr
-
-// @snippet qbytearray-1
-if (PyBytes_Check(%PYARG_1)) {
- %0 = new QByteArray(PyBytes_AsString(%PYARG_1), PyBytes_GET_SIZE(%PYARG_1));
-} else if (Shiboken::String::check(%PYARG_1)) {
- %0 = new QByteArray(Shiboken::String::toCString(%PYARG_1), Shiboken::String::len(%PYARG_1));
-}
-// @snippet qbytearray-1
-
-// @snippet qbytearray-2
-%0 = new QByteArray(PyByteArray_AsString(%PYARG_1), PyByteArray_Size(%PYARG_1));
-// @snippet qbytearray-2
-
-// @snippet qbytearray-3
-%0 = new QByteArray(PyBytes_AS_STRING(%PYARG_1), PyBytes_GET_SIZE(%PYARG_1));
-// @snippet qbytearray-3
-
-// @snippet qbytearray-py3
-#if PY_VERSION_HEX < 0x03000000
-Shiboken::SbkType<QByteArray>()->tp_as_buffer = &SbkQByteArrayBufferProc;
-Shiboken::SbkType<QByteArray>()->tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER;
-#else
-PepType_AS_BUFFER(Shiboken::SbkType<QByteArray>()) = &SbkQByteArrayBufferProc;
-#endif
-// @snippet qbytearray-py3
-
-// @snippet qbytearray-data
-%PYARG_0 = PyBytes_FromStringAndSize(%CPPSELF.%FUNCTION_NAME(), %CPPSELF.size());
-// @snippet qbytearray-data
-
-// @snippet qbytearray-fromrawdata
-%RETURN_TYPE %0 = %CPPSELF.%FUNCTION_NAME(PyBytes_AsString(%PYARG_1), PyBytes_GET_SIZE(%PYARG_1));
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-// @snippet qbytearray-fromrawdata
-
-// @snippet qbytearray-str
-PyObject *aux = PyBytes_FromStringAndSize(%CPPSELF.constData(), %CPPSELF.size());
-if (aux == nullptr) {
- return nullptr;
-}
-#ifdef IS_PY3K
- %PYARG_0 = PyObject_Repr(aux);
- Py_DECREF(aux);
-#else
- %PYARG_0 = aux;
-#endif
-// @snippet qbytearray-str
-
-// @snippet qbytearray-len
-return %CPPSELF.count();
-// @snippet qbytearray-len
-
-// @snippet qbytearray-getitem
-if (_i < 0 || _i >= %CPPSELF.size()) {
- PyErr_SetString(PyExc_IndexError, "index out of bounds");
- return 0;
-} else {
- char res[2];
- res[0] = %CPPSELF.at(_i);
- res[1] = 0;
- return PyBytes_FromStringAndSize(res, 1);
-}
-// @snippet qbytearray-getitem
-
-// @snippet qbytearray-setitem
-%CPPSELF.remove(_i, 1);
-PyObject *args = Py_BuildValue("(nO)", _i, _value);
-PyObject *result = Sbk_QByteArrayFunc_insert(self, args);
-Py_DECREF(args);
-Py_XDECREF(result);
-return !result ? -1 : 0;
-// @snippet qbytearray-setitem
-
-// @snippet qfiledevice-unmap
-uchar *ptr = reinterpret_cast<uchar *>(Shiboken::Buffer::getPointer(%PYARG_1));
-%RETURN_TYPE %0 = %CPPSELF.%FUNCTION_NAME(ptr);
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-// @snippet qfiledevice-unmap
-
-// @snippet qfiledevice-map
-%PYARG_0 = Shiboken::Buffer::newObject(%CPPSELF.%FUNCTION_NAME(%1, %2, %3), %2, Shiboken::Buffer::ReadWrite);
-// @snippet qfiledevice-map
-
-// @snippet qiodevice-readdata
-QByteArray ba(1 + int(%2), char(0));
-%CPPSELF.%FUNCTION_NAME(ba.data(), int(%2));
-%PYARG_0 = Shiboken::String::fromCString(ba.constData());
-// @snippet qiodevice-readdata
-
-// @snippet qcryptographichash-adddata
-%CPPSELF.%FUNCTION_NAME(Shiboken::String::toCString(%PYARG_1), Shiboken::String::len(%PYARG_1));
-// @snippet qcryptographichash-adddata
-
-// @snippet qsocketnotifier
-PyObject *socket = %PYARG_1;
-if (socket != nullptr) {
- // We use qintptr as PyLong, but we check for int
- // since it is currently an alias to be Python2 compatible.
- // Internally, ints are qlonglongs.
- if (%CHECKTYPE[int](socket)) {
- int cppSocket = %CONVERTTOCPP[int](socket);
- qintptr socket = (qintptr)cppSocket;
- %0 = new %TYPE(socket, %2, %3);
- } else {
- PyErr_SetString(PyExc_TypeError,
- "QSocketNotifier: first argument (socket) must be an int.");
- }
-}
-// @snippet qsocketnotifier
-
-// @snippet qtranslator-load
-Py_ssize_t size;
-uchar *ptr = reinterpret_cast<uchar *>(Shiboken::Buffer::getPointer(%PYARG_1, &size));
-%RETURN_TYPE %0 = %CPPSELF.%FUNCTION_NAME(const_cast<const uchar *>(ptr), size);
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-// @snippet qtranslator-load
-
-// @snippet qtimer-singleshot-1
-// %FUNCTION_NAME() - disable generation of c++ function call
-(void) %2; // remove warning about unused variable
-Shiboken::AutoDecRef emptyTuple(PyTuple_New(0));
-PyObject *pyTimer = reinterpret_cast<PyTypeObject *>(Shiboken::SbkType<QTimer>())->tp_new(Shiboken::SbkType<QTimer>(), emptyTuple, 0);
-reinterpret_cast<PyTypeObject *>(Shiboken::SbkType<QTimer>())->tp_init(pyTimer, emptyTuple, 0);
-
-auto timer = %CONVERTTOCPP[QTimer *](pyTimer);
-//XXX /|\ omitting this space crashes shiboken!
-Shiboken::AutoDecRef result(
- PyObject_CallMethod(pyTimer,
- const_cast<char *>("connect"),
- const_cast<char *>("OsOs"),
- pyTimer,
- SIGNAL(timeout()),
- %PYARG_2,
- %3)
-);
-Shiboken::Object::releaseOwnership((SbkObject *)pyTimer);
-Py_XDECREF(pyTimer);
-timer->setSingleShot(true);
-timer->connect(timer, SIGNAL(timeout()), timer, SLOT(deleteLater()));
-timer->start(%1);
-// @snippet qtimer-singleshot-1
-
-// @snippet qtimer-singleshot-2
-// %FUNCTION_NAME() - disable generation of c++ function call
-Shiboken::AutoDecRef emptyTuple(PyTuple_New(0));
-PyObject *pyTimer = reinterpret_cast<PyTypeObject *>(Shiboken::SbkType<QTimer>())->tp_new(Shiboken::SbkType<QTimer>(), emptyTuple, 0);
-reinterpret_cast<PyTypeObject *>(Shiboken::SbkType<QTimer>())->tp_init(pyTimer, emptyTuple, 0);
-QTimer * timer = %CONVERTTOCPP[QTimer *](pyTimer);
-timer->setSingleShot(true);
-
-if (PyObject_TypeCheck(%2, PySideSignalInstanceTypeF())) {
- PySideSignalInstance *signalInstance = reinterpret_cast<PySideSignalInstance *>(%2);
- Shiboken::AutoDecRef signalSignature(Shiboken::String::fromFormat("2%s", PySide::Signal::getSignature(signalInstance)));
- Shiboken::AutoDecRef result(
- PyObject_CallMethod(pyTimer,
- const_cast<char *>("connect"),
- const_cast<char *>("OsOO"),
- pyTimer,
- SIGNAL(timeout()),
- PySide::Signal::getObject(signalInstance),
- signalSignature.object())
- );
-} else {
- Shiboken::AutoDecRef result(
- PyObject_CallMethod(pyTimer,
- const_cast<char *>("connect"),
- const_cast<char *>("OsO"),
- pyTimer,
- SIGNAL(timeout()),
- %PYARG_2)
- );
-}
-
-timer->connect(timer, SIGNAL(timeout()), timer, SLOT(deleteLater()), Qt::DirectConnection);
-Shiboken::Object::releaseOwnership(reinterpret_cast<SbkObject *>(pyTimer));
-Py_XDECREF(pyTimer);
-timer->start(%1);
-// @snippet qtimer-singleshot-2
-
-// @snippet qprocess-startdetached
-qint64 pid;
-%RETURN_TYPE retval = %TYPE::%FUNCTION_NAME(%1, %2, %3, &pid);
-%PYARG_0 = PyTuple_New(2);
-PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](retval));
-PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[qint64](pid));
-// @snippet qprocess-startdetached
-
-// @snippet qprocess-pid
-long result;
-#ifdef WIN32
- _PROCESS_INFORMATION *procInfo = %CPPSELF.%FUNCTION_NAME();
- result = procInfo ? procInfo->dwProcessId : 0;
-#else
- result = %CPPSELF.%FUNCTION_NAME();
-#endif
-%PYARG_0 = %CONVERTTOPYTHON[long](result);
-// @snippet qprocess-pid
-
-// @snippet qcoreapplication-init
-static void QCoreApplicationConstructor(PyObject *self, PyObject *pyargv, QCoreApplicationWrapper **cptr)
-{
- static int argc;
- static char **argv;
- PyObject *stringlist = PyTuple_GET_ITEM(pyargv, 0);
- if (Shiboken::listToArgcArgv(stringlist, &argc, &argv, "PySideApp")) {
- *cptr = new QCoreApplicationWrapper(argc, argv);
- Shiboken::Object::releaseOwnership(reinterpret_cast<SbkObject *>(self));
- PySide::registerCleanupFunction(&PySide::destroyQCoreApplication);
- }
-}
-// @snippet qcoreapplication-init
-
-// @snippet qcoreapplication-1
-QCoreApplicationConstructor(%PYSELF, args, &%0);
-// @snippet qcoreapplication-1
-
-// @snippet qcoreapplication-2
-PyObject *empty = PyTuple_New(2);
-if (!PyTuple_SetItem(empty, 0, PyList_New(0))) {
- QCoreApplicationConstructor(%PYSELF, empty, &%0);
-}
-// @snippet qcoreapplication-2
-
-// @snippet qcoreapplication-instance
-PyObject *pyApp = Py_None;
-if (qApp) {
- pyApp = reinterpret_cast<PyObject *>(
- Shiboken::BindingManager::instance().retrieveWrapper(qApp));
- if (!pyApp)
- pyApp = %CONVERTTOPYTHON[QCoreApplication *](qApp);
- // this will keep app live after python exit (extra ref)
-}
-// PYSIDE-571: make sure that we return the singleton "None"
-if (Py_TYPE(pyApp) == Py_TYPE(Py_None))
- Py_DECREF(MakeQAppWrapper(nullptr));
-%PYARG_0 = pyApp;
-Py_XINCREF(%PYARG_0);
-// @snippet qcoreapplication-instance
-
-// @snippet qdatastream-readrawdata
-QByteArray data;
-data.resize(%2);
-int result = 0;
-Py_BEGIN_ALLOW_THREADS
-result = %CPPSELF.%FUNCTION_NAME(data.data(), data.size());
-Py_END_ALLOW_THREADS
-if (result == -1) {
- Py_INCREF(Py_None);
- %PYARG_0 = Py_None;
-} else {
- %PYARG_0 = PyBytes_FromStringAndSize(data.data(), result);
-}
-// @snippet qdatastream-readrawdata
-
-// @snippet qdatastream-writerawdata
-int r = 0;
-Py_BEGIN_ALLOW_THREADS
-r = %CPPSELF.%FUNCTION_NAME(%1, Shiboken::String::len(%PYARG_1));
-Py_END_ALLOW_THREADS
-%PYARG_0 = %CONVERTTOPYTHON[int](r);
-// @snippet qdatastream-writerawdata
-
-// @snippet releaseownership
-Shiboken::Object::releaseOwnership(%PYARG_0);
-// @snippet releaseownership
-
-// @snippet qanimationgroup-clear
-for (int counter = 0, count = %CPPSELF.animationCount(); counter < count; ++counter ) {
- QAbstractAnimation *animation = %CPPSELF.animationAt(counter);
- PyObject *obj = %CONVERTTOPYTHON[QAbstractAnimation *](animation);
- Shiboken::Object::setParent(nullptr, obj);
- Py_DECREF(obj);
-}
-%CPPSELF.clear();
-// @snippet qanimationgroup-clear
-
-// @snippet qeasingcurve
-PySideEasingCurveFunctor::init();
-// @snippet qeasingcurve
-
-// @snippet qeasingcurve-setcustomtype
-QEasingCurve::EasingFunction func = PySideEasingCurveFunctor::createCustomFuntion(%PYSELF, %PYARG_1);
-if (func)
- %CPPSELF.%FUNCTION_NAME(func);
-// @snippet qeasingcurve-setcustomtype
-
-// @snippet qeasingcurve-customtype
-//%FUNCTION_NAME()
-%PYARG_0 = PySideEasingCurveFunctor::callable(%PYSELF);
-// @snippet qeasingcurve-customtype
-
-// @snippet qsignaltransition
-if (PyObject_TypeCheck(%1, PySideSignalInstanceTypeF())) {
- PyObject *dataSource = PySide::Signal::getObject((PySideSignalInstance *)%PYARG_1);
- Shiboken::AutoDecRef obType(PyObject_Type(dataSource));
- QObject * sender = %CONVERTTOCPP[QObject *](dataSource);
- //XXX /|\ omitting this space crashes shiboken!
- if (sender) {
- const char *dataSignature = PySide::Signal::getSignature((PySideSignalInstance *)%PYARG_1);
- QByteArray signature(dataSignature); // Append SIGNAL flag (2)
- signature.prepend('2');
- %0 = new QSignalTransitionWrapper(sender, signature, %2);
- }
-}
-// @snippet qsignaltransition
-
-// @snippet qstate-addtransition-1
-QString signalName(%2);
-if (PySide::SignalManager::registerMetaMethod(%1, signalName.mid(1).toLatin1().data(), QMetaMethod::Signal)) {
- QSignalTransition *%0 = %CPPSELF->addTransition(%1, %2, %3);
- %PYARG_0 = %CONVERTTOPYTHON[QSignalTransition *](%0);
-} else {
- Py_INCREF(Py_None);
- %PYARG_0 = Py_None;
-}
-// @snippet qstate-addtransition-1
-
-// @snippet qstate-addtransition-2
-// Obviously the label used by the following goto is a very awkward solution,
-// since it refers to a name very tied to the generator implementation.
-// Check bug #362 for more information on this
-// http://bugs.openbossa.org/show_bug.cgi?id=362
-if (!PyObject_TypeCheck(%1, PySideSignalInstanceTypeF()))
- goto Sbk_%TYPEFunc_%FUNCTION_NAME_TypeError;
-PySideSignalInstance *signalInstance = reinterpret_cast<PySideSignalInstance *>(%1);
-auto sender = %CONVERTTOCPP[QObject *](PySide::Signal::getObject(signalInstance));
-QSignalTransition *%0 = %CPPSELF->%FUNCTION_NAME(sender, PySide::Signal::getSignature(signalInstance),%2);
-%PYARG_0 = %CONVERTTOPYTHON[QSignalTransition *](%0);
-// @snippet qstate-addtransition-2
-
-// @snippet qstatemachine-configuration
-%PYARG_0 = PySet_New(0);
-for (auto *abs_state : %CPPSELF.configuration()) {
- Shiboken::AutoDecRef obj(%CONVERTTOPYTHON[QAbstractState *](abs_state));
- Shiboken::Object::setParent(self, obj);
- PySet_Add(%PYARG_0, obj);
-}
-// @snippet qstatemachine-configuration
-
-// @snippet qstatemachine-defaultanimations
-%PYARG_0 = PyList_New(0);
-for (auto *abs_anim : %CPPSELF.defaultAnimations()) {
- Shiboken::AutoDecRef obj(%CONVERTTOPYTHON[QAbstractAnimation *](abs_anim));
- Shiboken::Object::setParent(self, obj);
- PyList_Append(%PYARG_0, obj);
-}
-// @snippet qstatemachine-defaultanimations
-
-// @snippet qt-signal
-%PYARG_0 = Shiboken::String::fromFormat("2%s",QMetaObject::normalizedSignature(%1).constData());
-// @snippet qt-signal
-
-// @snippet qt-slot
-%PYARG_0 = Shiboken::String::fromFormat("1%s",QMetaObject::normalizedSignature(%1).constData());
-// @snippet qt-slot
-
-// @snippet qt-registerresourcedata
-QT_BEGIN_NAMESPACE
-extern bool
-qRegisterResourceData(int,
- const unsigned char *,
- const unsigned char *,
- const unsigned char *);
-
-extern bool
-qUnregisterResourceData(int,
- const unsigned char *,
- const unsigned char *,
- const unsigned char *);
-QT_END_NAMESPACE
-// @snippet qt-registerresourcedata
-
-// @snippet qt-qregisterresourcedata
-%RETURN_TYPE %0 = %FUNCTION_NAME(%1, reinterpret_cast<uchar *>(PyBytes_AS_STRING(%PYARG_2)),
- reinterpret_cast<uchar *>(PyBytes_AS_STRING(%PYARG_3)),
- reinterpret_cast<uchar *>(PyBytes_AS_STRING(%PYARG_4)));
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-// @snippet qt-qregisterresourcedata
-
-// @snippet qt-qunregisterresourcedata
-%RETURN_TYPE %0 = %FUNCTION_NAME(%1, reinterpret_cast<uchar *>(PyBytes_AS_STRING(%PYARG_2)),
- reinterpret_cast<uchar *>(PyBytes_AS_STRING(%PYARG_3)),
- reinterpret_cast<uchar *>(PyBytes_AS_STRING(%PYARG_4)));
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-// @snippet qt-qunregisterresourcedata
-
-// @snippet use-stream-for-format-security
-// Uses the stream version for security reasons
-// see gcc man page at -Wformat-security
-Py_BEGIN_ALLOW_THREADS
-%FUNCTION_NAME() << %1;
-Py_END_ALLOW_THREADS
-// @snippet use-stream-for-format-security
-
-// @snippet qresource-registerResource
- auto ptr = reinterpret_cast<uchar *>(Shiboken::Buffer::getPointer(%PYARG_1));
- %RETURN_TYPE %0 = %CPPSELF.%FUNCTION_NAME(const_cast<const uchar *>(ptr), %2);
- %PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-// @snippet qresource-registerResource
-
-// @snippet qstring-return
-%PYARG_0 = %CONVERTTOPYTHON[QString](%1);
-// @snippet qstring-return
-
-// @snippet stream-write-method
-Py_BEGIN_ALLOW_THREADS
-(*%CPPSELF) << %1;
-Py_END_ALLOW_THREADS
-// @snippet stream-write-method
-
-// @snippet stream-read-method
-%RETURN_TYPE _cpp_result;
-Py_BEGIN_ALLOW_THREADS
-(*%CPPSELF) >> _cpp_result;
-Py_END_ALLOW_THREADS
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](_cpp_result);
-// @snippet stream-read-method
-
-// @snippet return-qstring-ref
-QString &res = *%0;
-%PYARG_0 = %CONVERTTOPYTHON[QString](res);
-// @snippet return-qstring-ref
-
-// @snippet return-readData
-%RETURN_TYPE %0 = 0;
-if (PyBytes_Check(%PYARG_0)) {
- %0 = PyBytes_GET_SIZE((PyObject *)%PYARG_0);
- memcpy(%1, PyBytes_AS_STRING((PyObject *)%PYARG_0), %0);
-} else if (Shiboken::String::check(%PYARG_0)) {
- %0 = Shiboken::String::len((PyObject *)%PYARG_0);
- memcpy(%1, Shiboken::String::toCString((PyObject *)%PYARG_0), %0);
-}
-// @snippet return-readData
-
-// @snippet qiodevice-readData
-QByteArray ba(1 + int(%2), char(0));
-Py_BEGIN_ALLOW_THREADS
-%CPPSELF.%FUNCTION_NAME(ba.data(), int(%2));
-Py_END_ALLOW_THREADS
-%PYARG_0 = Shiboken::String::fromCString(ba.constData());
-// @snippet qiodevice-readData
-
-// @snippet qt-module-shutdown
-{ // Avoid name clash
- Shiboken::AutoDecRef regFunc(static_cast<PyObject *>(nullptr));
- Shiboken::AutoDecRef atexit(Shiboken::Module::import("atexit"));
- if (atexit.isNull()) {
- qWarning("Module atexit not found for registering __moduleShutdown");
- PyErr_Clear();
- }else{
- regFunc.reset(PyObject_GetAttrString(atexit, "register"));
- if (regFunc.isNull()) {
- qWarning("Function atexit.register not found for registering __moduleShutdown");
- PyErr_Clear();
- }
- }
- if (!atexit.isNull() && !regFunc.isNull()){
- PyObject *shutDownFunc = PyObject_GetAttrString(module, "__moduleShutdown");
- Shiboken::AutoDecRef args(PyTuple_New(1));
- PyTuple_SET_ITEM(args, 0, shutDownFunc);
- Shiboken::AutoDecRef retval(PyObject_Call(regFunc, args, 0));
- Q_ASSERT(!retval.isNull());
- }
-}
-// @snippet qt-module-shutdown
-
-
-/*********************************************************************
- * CONVERSIONS
- ********************************************************************/
-
-// @snippet conversion-pybool
-%out = %OUTTYPE(%in == Py_True);
-// @snippet conversion-pybool
-
-// @snippet conversion-pylong
-%out = %OUTTYPE(PyLong_AsLong(%in));
-// @snippet conversion-pylong
-
-// @snippet conversion-pylong-unsigned
-%out = %OUTTYPE(PyLong_AsUnsignedLong(%in));
-// @snippet conversion-pylong-unsigned
-
-// @snippet conversion-pylong-quintptr
-#if defined(IS_PY3K) && QT_POINTER_SIZE == 8
-%out = %OUTTYPE(PyLong_AsUnsignedLongLong(%in));
-#else
-%out = %OUTTYPE(PyLong_AsUnsignedLong(%in));
-#endif
-// @snippet conversion-pylong-quintptr
-
-// @snippet conversion-pyunicode
-#ifndef Py_LIMITED_API
-Py_UNICODE *unicode = PyUnicode_AS_UNICODE(%in);
-# if defined(Py_UNICODE_WIDE)
-// cast as Py_UNICODE can be a different type
-# if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
-%out = QString::fromUcs4(reinterpret_cast<const char32_t *>(unicode));
-# else
-%out = QString::fromUcs4(reinterpret_cast<const uint *>(unicode));
-# endif // Qt 6
-# else // Py_UNICODE_WIDE
-# if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
-%out = QString::fromUtf16(reinterpret_cast<const char16_t *>(unicode), PepUnicode_GetLength(%in));
-# else
-%out = QString::fromUtf16(reinterpret_cast<const ushort *>(unicode), PepUnicode_GetLength(%in));
-# endif // Qt 6
-# endif
-#else
-wchar_t *temp = PyUnicode_AsWideCharString(%in, NULL);
-%out = QString::fromWCharArray(temp);
-PyMem_Free(temp);
-#endif
-// @snippet conversion-pyunicode
-
-// @snippet conversion-pystring
-#ifndef IS_PY3K
-const char * str = %CONVERTTOCPP[const char *](%in);
-//XXX /|\ omitting this space crashes shiboken!
-%out = %OUTTYPE(str);
-#endif
-// @snippet conversion-pystring
-
-// @snippet conversion-pynone
-%out = %OUTTYPE();
-// @snippet conversion-pynone
-
-// @snippet conversion-pystring-char
-char c = %CONVERTTOCPP[char](%in);
-%out = %OUTTYPE(c);
-// @snippet conversion-pystring-char
-
-// @snippet conversion-pyint
-int i = %CONVERTTOCPP[int](%in);
-%out = %OUTTYPE(i);
-// @snippet conversion-pyint
-
-// @snippet conversion-qlonglong
-// PYSIDE-1250: For QVariant, if the type fits into an int; use int preferably.
-qlonglong in = %CONVERTTOCPP[qlonglong](%in);
-constexpr qlonglong intMax = qint64(std::numeric_limits<int>::max());
-constexpr qlonglong intMin = qint64(std::numeric_limits<int>::min());
-%out = in >= intMin && in <= intMax ? %OUTTYPE(int(in)) : %OUTTYPE(in);
-// @snippet conversion-qlonglong
-
-// @snippet conversion-qstring
-QString in = %CONVERTTOCPP[QString](%in);
-%out = %OUTTYPE(in);
-// @snippet conversion-qstring
-
-// @snippet conversion-qbytearray
-QByteArray in = %CONVERTTOCPP[QByteArray](%in);
-%out = %OUTTYPE(in);
-// @snippet conversion-qbytearray
-
-// @snippet conversion-pyfloat
-double in = %CONVERTTOCPP[double](%in);
-%out = %OUTTYPE(in);
-// @snippet conversion-pyfloat
-
-// @snippet conversion-sbkobject
-// a class supported by QVariant?
-int typeCode;
-const char *typeName = QVariant_resolveMetaType(Py_TYPE(%in), &typeCode);
-if (!typeCode || !typeName) {
- // If the type was not encountered, return a default PyObjectWrapper
- %out = QVariant::fromValue(PySide::PyObjectWrapper(%in));
-}
-else {
- QVariant var(typeCode, nullptr);
- Shiboken::Conversions::SpecificConverter converter(typeName);
- converter.toCpp(pyIn, var.data());
- %out = var;
-}
-// @snippet conversion-sbkobject
-
-// @snippet conversion-pydict
-QVariant ret = QVariant_convertToVariantMap(%in);
-%out = ret.isValid() ? ret : QVariant::fromValue(PySide::PyObjectWrapper(%in));
-// @snippet conversion-pydict
-
-// @snippet conversion-pylist
-QVariant ret = QVariant_convertToVariantList(%in);
-%out = ret.isValid() ? ret : QVariant::fromValue(PySide::PyObjectWrapper(%in));
-// @snippet conversion-pylist
-
-// @snippet conversion-pyobject
-// Is a shiboken type not known by Qt
-%out = QVariant::fromValue(PySide::PyObjectWrapper(%in));
-// @snippet conversion-pyobject
-
-// @snippet conversion-qvariant-invalid
-%out = QVariant::Invalid;
-// @snippet conversion-qvariant-invalid
-
-// @snippet conversion-qvariant-pytypeobject
-const char *typeName;
-if (Shiboken::String::checkType(reinterpret_cast<PyTypeObject *>(%in)))
- typeName = "QString";
-else if (%in == reinterpret_cast<PyObject *>(&PyFloat_Type))
- typeName = "double"; // float is a UserType in QVariant.
-else if (%in == reinterpret_cast<PyObject *>(&PyLong_Type))
- typeName = "int"; // long is a UserType in QVariant.
-else if (Py_TYPE(%in) == SbkObjectType_TypeF())
- typeName = Shiboken::ObjectType::getOriginalName((SbkObjectType *)%in);
-else
- typeName = reinterpret_cast<PyTypeObject *>(%in)->tp_name;
-%out = QVariant::nameToType(typeName);
-// @snippet conversion-qvariant-pytypeobject
-
-// @snippet conversion-qvariant-pystring
-%out = QVariant::nameToType(Shiboken::String::toCString(%in));
-// @snippet conversion-qvariant-pystring
-
-// @snippet conversion-qvariant-pydict
-%out = QVariant::nameToType("QVariantMap");
-// @snippet conversion-qvariant-pydict
-
-// @snippet conversion-qvariant-pysequence
-%out = QVariantType_isStringList(%in) ? QVariant::StringList : QVariant::List;
-// @snippet conversion-qvariant-pysequence
-
-// @snippet conversion-qjsonobject-pydict
-QVariant dict = QVariant_convertToVariantMap(%in);
-QJsonValue val = QJsonValue::fromVariant(dict);
-%out = val.toObject();
-// @snippet conversion-qjsonobject-pydict
-
-// @snippet conversion-qpair-pysequence
-%out.first = %CONVERTTOCPP[%OUTTYPE_0](PySequence_Fast_GET_ITEM(%in, 0));
-%out.second = %CONVERTTOCPP[%OUTTYPE_1](PySequence_Fast_GET_ITEM(%in, 1));
-// @snippet conversion-qpair-pysequence
-
-// @snippet conversion-qdate-pydate
-int day = PyDateTime_GET_DAY(%in);
-int month = PyDateTime_GET_MONTH(%in);
-int year = PyDateTime_GET_YEAR(%in);
-%out = %OUTTYPE(year, month, day);
-// @snippet conversion-qdate-pydate
-
-// @snippet conversion-qdatetime-pydatetime
-int day = PyDateTime_GET_DAY(%in);
-int month = PyDateTime_GET_MONTH(%in);
-int year = PyDateTime_GET_YEAR(%in);
-int hour = PyDateTime_DATE_GET_HOUR(%in);
-int min = PyDateTime_DATE_GET_MINUTE(%in);
-int sec = PyDateTime_DATE_GET_SECOND(%in);
-int usec = PyDateTime_DATE_GET_MICROSECOND(%in);
-%out = %OUTTYPE(QDate(year, month, day), QTime(hour, min, sec, usec/1000));
-// @snippet conversion-qdatetime-pydatetime
-
-// @snippet conversion-qtime-pytime
-int hour = PyDateTime_TIME_GET_HOUR(%in);
-int min = PyDateTime_TIME_GET_MINUTE(%in);
-int sec = PyDateTime_TIME_GET_SECOND(%in);
-int usec = PyDateTime_TIME_GET_MICROSECOND(%in);
-%out = %OUTTYPE(hour, min, sec, usec/1000);
-// @snippet conversion-qtime-pytime
-
-// @snippet conversion-qbytearray-pybytes
-#ifdef IS_PY3K
-%out = %OUTTYPE(PyBytes_AS_STRING(%in), PyBytes_GET_SIZE(%in));
-#else
-%out = %OUTTYPE(Shiboken::String::toCString(%in), Shiboken::String::len(%in));
-#endif
-// @snippet conversion-qbytearray-pybytes
-
-// @snippet conversion-qbytearray-pybytearray
-%out = %OUTTYPE(PyByteArray_AsString(%in), PyByteArray_Size(%in));
-// @snippet conversion-qbytearray-pybytearray
-
-// @snippet conversion-qbytearray-pystring
-%out = %OUTTYPE(Shiboken::String::toCString(%in), Shiboken::String::len(%in));
-// @snippet conversion-qbytearray-pystring
-
-/*********************************************************************
- * NATIVE TO TARGET CONVERSIONS
- ********************************************************************/
-
-// @snippet return-pybool
-return PyBool_FromLong((bool)%in);
-// @snippet return-pybool
-
-// @snippet return-pylong
-return PyLong_FromLong(%in);
-// @snippet return-pylong
-
-// @snippet return-pylong-unsigned
-return PyLong_FromUnsignedLong(%in);
-// @snippet return-pylong-unsigned
-
-// @snippet return-pylong-quintptr
-#if defined(IS_PY3K) && QT_POINTER_SIZE == 8
-return PyLong_FromUnsignedLongLong(%in);
-#else
-return PyLong_FromUnsignedLong(%in);
-#endif
-// @snippet return-pylong-quintptr
-
-// @snippet return-pyunicode
-QByteArray ba = %in.toUtf8();
-return PyUnicode_FromStringAndSize(ba.constData(), ba.size());
-// @snippet return-pyunicode
-
-// @snippet return-pyunicode-qstringref
- const int N = %in.length();
- wchar_t *str = new wchar_t[N];
- %in.toString().toWCharArray(str);
- PyObject *%out = PyUnicode_FromWideChar(str, N);
- delete[] str;
- return %out;
-// @snippet return-pyunicode-qstringref
-
-// @snippet return-pyunicode-qchar
-wchar_t c = (wchar_t)%in.unicode();
-return PyUnicode_FromWideChar(&c, 1);
-// @snippet return-pyunicode-qchar
-
-// @snippet return-qvariant
-if (!%in.isValid())
- Py_RETURN_NONE;
-
-if (qstrcmp(%in.typeName(), "QVariantList") == 0) {
- QList<QVariant> var = %in.value<QVariantList>();
- return %CONVERTTOPYTHON[QList<QVariant>](var);
-}
-
-if (qstrcmp(%in.typeName(), "QStringList") == 0) {
- QStringList var = %in.value<QStringList>();
- return %CONVERTTOPYTHON[QList<QString>](var);
-}
-
-if (qstrcmp(%in.typeName(), "QVariantMap") == 0) {
- QMap<QString, QVariant> var = %in.value<QVariantMap>();
- return %CONVERTTOPYTHON[QMap<QString, QVariant>](var);
-}
-
-Shiboken::Conversions::SpecificConverter converter(cppInRef.typeName());
-if (converter) {
- void *ptr = cppInRef.data();
- return converter.toPython(ptr);
-}
-PyErr_Format(PyExc_RuntimeError, "Can't find converter for '%s'.", %in.typeName());
-return 0;
-// @snippet return-qvariant
-
-// @snippet return-qvariant-type
-const char *typeName = QVariant::typeToName(%in);
-PyObject *%out;
-PyTypeObject *pyType = nullptr;
-if (typeName)
- pyType = Shiboken::Conversions::getPythonTypeObject(typeName);
-%out = pyType ? (reinterpret_cast<PyObject *>(pyType)) : Py_None;
-Py_INCREF(%out);
-return %out;
-// @snippet return-qvariant-type
-
-// @snippet return-qjsonobject
-// The QVariantMap returned by QJsonObject seems to cause a segfault, so
-// using QJsonObject.toVariantMap() won't work.
-// Wrapping it in a QJsonValue first allows it to work
-QJsonValue val(%in);
-QVariant ret = val.toVariant();
-
-return %CONVERTTOPYTHON[QVariant](ret);
-// @snippet return-qjsonobject
-
-// @snippet return-qpair
-PyObject *%out = PyTuple_New(2);
-PyTuple_SET_ITEM(%out, 0, %CONVERTTOPYTHON[%INTYPE_0](%in.first));
-PyTuple_SET_ITEM(%out, 1, %CONVERTTOPYTHON[%INTYPE_1](%in.second));
-return %out;
-// @snippet return-qpair
diff --git a/sources/pyside2/PySide2/glue/qtdatavisualization.cpp b/sources/pyside2/PySide2/glue/qtdatavisualization.cpp
deleted file mode 100644
index 119d79a40..000000000
--- a/sources/pyside2/PySide2/glue/qtdatavisualization.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// @snippet releaseownership
-Shiboken::Object::releaseOwnership(%PYARG_1);
-// @snippet releaseownership
diff --git a/sources/pyside2/PySide2/glue/qtgui.cpp b/sources/pyside2/PySide2/glue/qtgui.cpp
deleted file mode 100644
index a6b45b7c0..000000000
--- a/sources/pyside2/PySide2/glue/qtgui.cpp
+++ /dev/null
@@ -1,547 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*********************************************************************
- * INJECT CODE
- ********************************************************************/
-
-// @snippet qtransform-quadtoquad
-QTransform _result;
-if (QTransform::quadToQuad(%1, %2, _result)) {
- %PYARG_0 = %CONVERTTOPYTHON[QTransform](_result);
-} else {
- Py_INCREF(Py_None);
- %PYARG_0 = Py_None;
-}
-// @snippet qtransform-quadtoquad
-
-// @snippet qtransform-quadtosquare
-QTransform _result;
-if (QTransform::quadToSquare(%1, _result)) {
- %PYARG_0 = %CONVERTTOPYTHON[QTransform](_result);
-} else {
- Py_INCREF(Py_None);
- %PYARG_0 = Py_None;
-}
-// @snippet qtransform-quadtosquare
-
-// @snippet qtransform-squaretoquad
-QTransform _result;
-if (QTransform::squareToQuad(%1, _result)) {
- %PYARG_0 = %CONVERTTOPYTHON[QTransform](_result);
-} else {
- Py_INCREF(Py_None);
- %PYARG_0 = Py_None;
-}
-// @snippet qtransform-squaretoquad
-
-// @snippet qbitmap-fromdata
-uchar *buffer = reinterpret_cast<uchar *>(Shiboken::Buffer::getPointer(%PYARG_2));
-QBitmap %0 = QBitmap::fromData(%1, buffer, %3);
-%PYARG_0 = %CONVERTTOPYTHON[QBitmap](%0);
-// @snippet qbitmap-fromdata
-
-// @snippet qtextline-cursortox
-%RETURN_TYPE %0 = %CPPSELF->::%TYPE::%FUNCTION_NAME(&%1, %2);
-%PYARG_0 = PyTuple_New(2);
-PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](%0));
-PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[%ARG1_TYPE](%1));
-// @snippet qtextline-cursortox
-
-// @snippet qkeysequence-getitem
-if (_i < 0 || _i >= %CPPSELF.count()) {
- PyErr_SetString(PyExc_IndexError, "index out of bounds");
- return 0;
-}
-int item = (*%CPPSELF)[_i];
-return %CONVERTTOPYTHON[int](item);
-// @snippet qkeysequence-getitem
-
-// @snippet qpicture-data
-%PYARG_0 = Shiboken::Buffer::newObject(%CPPSELF.data(), %CPPSELF.size());
-// @snippet qpicture-data
-
-// @snippet qtextblock-setuserdata
-const QTextDocument *doc = %CPPSELF.document();
-if (doc) {
- Shiboken::AutoDecRef pyDocument(%CONVERTTOPYTHON[QTextDocument *](doc));
- Shiboken::Object::setParent(pyDocument, %PYARG_1);
-}
-// @snippet qtextblock-setuserdata
-
-// @snippet qtextblock-userdata
-const QTextDocument *doc = %CPPSELF.document();
-if (doc) {
- Shiboken::AutoDecRef pyDocument(%CONVERTTOPYTHON[QTextDocument *](doc));
- Shiboken::Object::setParent(pyDocument, %PYARG_0);
-}
-// @snippet qtextblock-userdata
-
-// @snippet qopenglshaderprogram_setuniformvalue_float
-float value = %2;
-%CPPSELF.setUniformValue(%1, value);
-// @snippet qopenglshaderprogram_setuniformvalue_float
-
-// @snippet qopenglshaderprogram_setuniformvalue_int
-int value = %2;
-%CPPSELF.setUniformValue(%1, value);
-// @snippet qopenglshaderprogram_setuniformvalue_int
-
-// @snippet qpolygon-reduce
-PyObject *points = PyList_New(%CPPSELF.count());
-for (int i = 0, i_max = %CPPSELF.count(); i < i_max; ++i){
- int x, y;
- %CPPSELF.point(i, &x, &y);
- QPoint pt = QPoint(x, y);
- PyList_SET_ITEM(points, i, %CONVERTTOPYTHON[QPoint](pt));
-}
-// @snippet qpolygon-reduce
-
-// @snippet qpolygon-operatorlowerlower
-// %FUNCTION_NAME()
-*%CPPSELF << %1;
-%PYARG_0 = %CONVERTTOPYTHON[QPolygon *](%CPPSELF);
-// @snippet qpolygon-operatorlowerlower
-
-// @snippet qpixmap
-%0 = new %TYPE(QPixmap::fromImage(%1));
-// @snippet qpixmap
-
-// @snippet qimage-constbits
-%PYARG_0 = Shiboken::Buffer::newObject(%CPPSELF.%FUNCTION_NAME(), %CPPSELF.byteCount());
-// @snippet qimage-constbits
-
-// @snippet qimage-bits
-// byteCount() is only available on Qt4.7, so we use bytesPerLine * height
-%PYARG_0 = Shiboken::Buffer::newObject(%CPPSELF.%FUNCTION_NAME(), %CPPSELF.bytesPerLine() * %CPPSELF.height(), Shiboken::Buffer::ReadWrite);
-// @snippet qimage-bits
-
-// @snippet qimage-constscanline
-%PYARG_0 = Shiboken::Buffer::newObject(%CPPSELF.%FUNCTION_NAME(%1), %CPPSELF.bytesPerLine());
-// @snippet qimage-constscanline
-
-// @snippet qimage-scanline
-%PYARG_0 = Shiboken::Buffer::newObject(%CPPSELF.%FUNCTION_NAME(%1), %CPPSELF.bytesPerLine(), Shiboken::Buffer::ReadWrite);
-// @snippet qimage-scanline
-
-// @snippet qcolor-setstate
-Shiboken::AutoDecRef func(PyObject_GetAttr(%PYSELF, PyTuple_GET_ITEM(%1, 0)));
-PyObject *args = PyTuple_GET_ITEM(%1, 1);
-%PYARG_0 = PyObject_Call(func, args, NULL);
-// @snippet qcolor-setstate
-
-// @snippet qcolor-reduce
-switch (%CPPSELF.spec()) {
- case QColor::Rgb:
- {
- qreal r, g, b, a;
- %CPPSELF.getRgbF(&r, &g, &b, &a);
- %PYARG_0 = Py_BuildValue("(ON(s(ffff)))", Py_TYPE(%PYSELF), PyTuple_New(0),
- "setRgbF", float(r), float(g), float(b), float(a));
- break;
- }
- case QColor::Hsv:
- {
- qreal h, s, v, a;
- %CPPSELF.getHsvF(&h, &s, &v, &a);
- %PYARG_0 = Py_BuildValue("(ON(s(ffff)))", Py_TYPE(%PYSELF), PyTuple_New(0),
- "setHsvF", float(h), float(s), float(v), float(a));
- break;
- }
- case QColor::Cmyk:
- {
- qreal c, m, y, k, a;
- %CPPSELF.getCmykF(&c, &m, &y, &k, &a);
- %PYARG_0 = Py_BuildValue("(ON(s(fffff)))", Py_TYPE(%PYSELF), PyTuple_New(0),
- "setCmykF", float(c), float(m), float(y), float(k), float(a));
- break;
- }
- case QColor::Hsl:
- {
- qreal h, s, l, a;
- %CPPSELF.getHslF(&h, &s, &l, &a);
- %PYARG_0 = Py_BuildValue("(ON(s(ffff)))", Py_TYPE(%PYSELF), PyTuple_New(0),
- "setHslF", float(h), float(s), float(l), float(a));
- break;
- }
- default:
- {
- %PYARG_0 = Py_BuildValue("(N(O))", PyObject_Type(%PYSELF), Py_None);
- }
-}
-// @snippet qcolor-reduce
-
-// @snippet qcolor-totuple
-switch (%CPPSELF.spec()) {
- case QColor::Rgb:
- {
- int r, g, b, a;
- %CPPSELF.getRgb(&r, &g, &b, &a);
- %PYARG_0 = Py_BuildValue("iiii", r, g, b, a);
- break;
- }
- case QColor::Hsv:
- {
- int h, s, v, a;
- %CPPSELF.getHsv(&h, &s, &v, &a);
- %PYARG_0 = Py_BuildValue("iiii", h, s, v, a);
- break;
- }
- case QColor::Cmyk:
- {
- int c, m, y, k, a;
- %CPPSELF.getCmyk(&c, &m, &y, &k, &a);
- %PYARG_0 = Py_BuildValue("iiiii", c, m, y, k, a);
- break;
- }
- case QColor::Hsl:
- {
- int h, s, l, a;
- %CPPSELF.getHsl(&h, &s, &l, &a);
- %PYARG_0 = Py_BuildValue("iiii", h, s, l, a);
- break;
- }
- default:
- {
- %PYARG_0 = 0;
- }
-}
-// @snippet qcolor-totuple
-
-// @snippet qcolor
-if (%1.type() == QVariant::Color)
- %0 = new %TYPE(%1.value<QColor>());
-else
- PyErr_SetString(PyExc_TypeError, "QVariant must be holding a QColor");
-// @snippet qcolor
-
-// @snippet qfontmetricsf-boundingrect
-int *array = nullptr;
-bool errorOccurred = false;
-
-if (numArgs == 5) {
- array = Shiboken::sequenceToIntArray(%PYARG_5, true);
- if (PyErr_Occurred()) {
- delete [] array;
- errorOccurred = true;
- }
-}
-
-if (!errorOccurred) {
- %RETURN_TYPE retval = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, array);
-
- delete [] array;
-
- %PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](retval);
-}
-// @snippet qfontmetricsf-boundingrect
-
-// @snippet qfontmetricsf-size
-int *array = nullptr;
-bool errorOccurred = false;
-
-if (numArgs == 4) {
- array = Shiboken::sequenceToIntArray(%PYARG_4, true);
- if (PyErr_Occurred()) {
- delete [] array;
- errorOccurred = true;
- }
-}
-
-if (!errorOccurred) {
- %RETURN_TYPE retval = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, array);
-
- delete [] array;
-
- %PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](retval);
-}
-// @snippet qfontmetricsf-size
-
-// @snippet qfontmetrics-boundingrect-1
-int *array = nullptr;
-bool errorOccurred = false;
-
-if (numArgs == 8) {
- array = Shiboken::sequenceToIntArray(%PYARG_8, true);
- if (PyErr_Occurred()) {
- delete [] array;
- errorOccurred = true;
- }
-}
-
-if (!errorOccurred) {
- %RETURN_TYPE retval = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, %5, %6, %7, array);
-
- delete [] array;
-
- %PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](retval);
-}
-// @snippet qfontmetrics-boundingrect-1
-
-// @snippet qfontmetrics-boundingrect-2
-int *array = nullptr;
-bool errorOccurred = false;
-
-if (numArgs == 5) {
- array = Shiboken::sequenceToIntArray(%PYARG_5, true);
- if (PyErr_Occurred()) {
- delete [] array;
- errorOccurred = true;
- }
-}
-
-if (!errorOccurred) {
- %RETURN_TYPE retval = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, array);
-
- delete [] array;
-
- %PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](retval);
-}
-// @snippet qfontmetrics-boundingrect-2
-
-// @snippet qfontmetrics-size
-int *array = nullptr;
-bool errorOccurred = false;
-
-if (numArgs == 4) {
- array = Shiboken::sequenceToIntArray(%PYARG_4, true);
- if (PyErr_Occurred()) {
- delete [] array;
- errorOccurred = true;
- }
-}
-
-if (!errorOccurred) {
- %RETURN_TYPE retval = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, array);
-
- delete [] array;
-
- %PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](retval);
-}
-// @snippet qfontmetrics-size
-
-// @snippet qpixmapcache-find
-QPixmap p;
-if (%CPPSELF.%FUNCTION_NAME(%1, &p)) {
- %PYARG_0 = %CONVERTTOPYTHON[QPixmap](p);
-} else {
- %PYARG_0 = Py_None;
- Py_INCREF(%PYARG_0);
-}
-// @snippet qpixmapcache-find
-
-// @snippet qstandarditem-setchild-1
-// Clear parent from the old child
-QStandardItem *_i = %CPPSELF->child(%1, %2);
-if (_i) {
- PyObject *_pyI = %CONVERTTOPYTHON[QStandardItem *](_i);
- Shiboken::Object::setParent(nullptr, _pyI);
-}
-// @snippet qstandarditem-setchild-1
-
-// @snippet qstandarditem-setchild-2
-// Clear parent from the old child
-QStandardItem *_i = %CPPSELF->child(%1);
-if (_i) {
- PyObject *_pyI = %CONVERTTOPYTHON[QStandardItem *](_i);
- Shiboken::Object::setParent(nullptr, _pyI);
-}
-// @snippet qstandarditem-setchild-2
-
-// @snippet qkeyevent-operatornotequal
-bool ret = !(&%CPPSELF == %1);
-%PYARG_0 = %CONVERTTOPYTHON[bool](ret);
-// @snippet qkeyevent-operatornotequal
-
-// @snippet qstandarditemmodel-setitem-1
-// Clear parent from the old child
-QStandardItem *_i = %CPPSELF->item(%1, %2);
-if (_i) {
- PyObject *_pyI = %CONVERTTOPYTHON[QStandardItem *](_i);
- Shiboken::Object::setParent(nullptr, _pyI);
-}
-// @snippet qstandarditemmodel-setitem-1
-
-// @snippet qstandarditemmodel-setitem-2
-// Clear parent from the old child
-QStandardItem *_i = %CPPSELF->item(%1);
-if (_i) {
- PyObject *_pyI = %CONVERTTOPYTHON[QStandardItem *](_i);
- Shiboken::Object::setParent(nullptr, _pyI);
-}
-// @snippet qstandarditemmodel-setitem-2
-
-// @snippet qstandarditemmodel-setverticalheaderitem
-// Clear parent from the old child
-QStandardItem *_i = %CPPSELF->verticalHeaderItem(%1);
-if (_i) {
- PyObject *_pyI = %CONVERTTOPYTHON[QStandardItem *](_i);
- Shiboken::Object::setParent(nullptr, _pyI);
-}
-// @snippet qstandarditemmodel-setverticalheaderitem
-
-// @snippet qstandarditemmodel-clear
-Shiboken::BindingManager &bm = Shiboken::BindingManager::instance();
-SbkObject *pyRoot = bm.retrieveWrapper(%CPPSELF.invisibleRootItem());
-if (pyRoot) {
- Shiboken::Object::destroy(pyRoot, %CPPSELF.invisibleRootItem());
-}
-
-for (int r=0, r_max = %CPPSELF.rowCount(); r < r_max; r++) {
- QList<QStandardItem *> ri = %CPPSELF.takeRow(0);
-
- PyObject *pyResult = %CONVERTTOPYTHON[QList<QStandardItem * >](ri);
- Shiboken::Object::setParent(Py_None, pyResult);
- Py_XDECREF(pyResult);
-}
-// @snippet qstandarditemmodel-clear
-
-// @snippet qclipboard-text
-%BEGIN_ALLOW_THREADS
-%RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2);
-%END_ALLOW_THREADS
-%PYARG_0 = PyTuple_New(2);
-PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](retval_));
-PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[%ARG1_TYPE](%1));
-// @snippet qclipboard-text
-
-// @snippet qpainter-drawpolygon
-%CPPSELF.%FUNCTION_NAME(%1.data(), %1.size(), %2);
-// @snippet qpainter-drawpolygon
-
-// @snippet qmatrix-map-point
-QPoint p(%CPPSELF.%FUNCTION_NAME(%1));
-%PYARG_0 = %CONVERTTOPYTHON[QPoint](p);
-// @snippet qmatrix-map-point
-
-// @snippet qmatrix4x4
-// PYSIDE-795: All PySequences can be made iterable with PySequence_Fast.
-Shiboken::AutoDecRef seq(PySequence_Fast(%PYARG_1, "Can't turn into sequence"));
-if (PySequence_Size(seq) == 16) {
- float values[16];
- for (int i=0; i < 16; ++i) {
- PyObject *pv = PySequence_Fast_GET_ITEM(seq.object(), i);
- values[i] = PyFloat_AsDouble(pv);
- }
-
- %0 = new %TYPE(values[0], values[1], values[2], values[3],
- values[4], values[5], values[6], values[7],
- values[8], values[9], values[10], values[11],
- values[12], values[13], values[14], values[15]);
-}
-// @snippet qmatrix4x4
-
-// @snippet qmatrix4x4-copydatato
-float values[16];
-%CPPSELF.%FUNCTION_NAME(values);
-%PYARG_0 = PyTuple_New(16);
-for (int i = 0; i < 16; ++i) {
- PyObject *v = PyFloat_FromDouble(values[i]);
- PyTuple_SET_ITEM(%PYARG_0, i, v);
-}
-// @snippet qmatrix4x4-copydatato
-
-// @snippet qmatrix4x4-mgetitem
-if (PySequence_Check(_key)) {
- Shiboken::AutoDecRef key(PySequence_Fast(_key, "Invalid matrix index."));
- if (PySequence_Fast_GET_SIZE(key.object()) == 2) {
- PyObject *posx = PySequence_Fast_GET_ITEM(key.object(), 0);
- PyObject *posy = PySequence_Fast_GET_ITEM(key.object(), 1);
- Py_ssize_t x = PyInt_AsSsize_t(posx);
- Py_ssize_t y = PyInt_AsSsize_t(posy);
- float ret = (*%CPPSELF)(x,y);
- return %CONVERTTOPYTHON[float](ret);
- }
-}
-PyErr_SetString(PyExc_IndexError, "Invalid matrix index.");
-return 0;
-// @snippet qmatrix4x4-mgetitem
-
-// @snippet qguiapplication-init
-static void QGuiApplicationConstructor(PyObject *self, PyObject *pyargv, QGuiApplicationWrapper **cptr)
-{
- static int argc;
- static char **argv;
- PyObject *stringlist = PyTuple_GET_ITEM(pyargv, 0);
- if (Shiboken::listToArgcArgv(stringlist, &argc, &argv, "PySideApp")) {
- *cptr = new QGuiApplicationWrapper(argc, argv, 0);
- Shiboken::Object::releaseOwnership(reinterpret_cast<SbkObject *>(self));
- PySide::registerCleanupFunction(&PySide::destroyQCoreApplication);
- }
-}
-// @snippet qguiapplication-init
-
-// @snippet qguiapplication-1
-QGuiApplicationConstructor(%PYSELF, args, &%0);
-// @snippet qguiapplication-1
-
-// @snippet qguiapplication-2
-PyObject *empty = PyTuple_New(2);
-if (!PyTuple_SetItem(empty, 0, PyList_New(0))) {
- QGuiApplicationConstructor(%PYSELF, empty, &%0);
-}
-// @snippet qguiapplication-2
-
-// @snippet qscreen-grabWindow
-WId id = %1;
-%RETURN_TYPE retval = %CPPSELF.%FUNCTION_NAME(id, %2, %3, %4, %5);
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](retval);
-// @snippet qscreen-grabWindow
-
-// @snippet qwindow-fromWinId
-WId id = %1;
-%RETURN_TYPE retval = %CPPSELF.%FUNCTION_NAME(id);
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](retval);
-// @snippet qwindow-fromWinId
-
-/*********************************************************************
- * CONVERSIONS
- ********************************************************************/
-
-// @snippet conversion-pylong
-%out = reinterpret_cast<%OUTTYPE>(PyLong_AsVoidPtr(%in));
-// @snippet conversion-pylong
-
-/*********************************************************************
- * NATIVE TO TARGET CONVERSIONS
- ********************************************************************/
-
-// @snippet return-pylong-voidptr
-return PyLong_FromVoidPtr(reinterpret_cast<void *>(%in));
-// @snippet return-pylong-voidptr
diff --git a/sources/pyside2/PySide2/glue/qtmultimedia.cpp b/sources/pyside2/PySide2/glue/qtmultimedia.cpp
deleted file mode 100644
index cbe1367cb..000000000
--- a/sources/pyside2/PySide2/glue/qtmultimedia.cpp
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// @snippet upcast
-%BEGIN_ALLOW_THREADS
-QObject * upcastedArg = %CONVERTTOCPP[QObject *](%PYARG_1);
-//XXX /|\ omitting this space crashes shiboken!
-%CPPSELF.%FUNCTION_NAME(reinterpret_cast< %ARG1_TYPE >(upcastedArg));
-%END_ALLOW_THREADS
-// @snippet upcast
-
-// @snippet qvideoframe-bits
-%BEGIN_ALLOW_THREADS
-%RETURN_TYPE %0 = %CPPSELF.%FUNCTION_NAME();
-%END_ALLOW_THREADS
-%PYARG_0 = Shiboken::Buffer::newObject(%0, %CPPSELF.bytesPerLine() * %CPPSELF.height(), Shiboken::Buffer::ReadWrite);
-// @snippet qvideoframe-bits
diff --git a/sources/pyside2/PySide2/glue/qtnetwork.cpp b/sources/pyside2/PySide2/glue/qtnetwork.cpp
deleted file mode 100644
index cdb330c40..000000000
--- a/sources/pyside2/PySide2/glue/qtnetwork.cpp
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// @snippet qudpsocket-readdatagram
-Shiboken::AutoArrayPointer<char> data(%ARGUMENT_NAMES);
-QHostAddress ha;
-quint16 port;
-%BEGIN_ALLOW_THREADS
-%RETURN_TYPE retval = %CPPSELF.%FUNCTION_NAME(data, %ARGUMENT_NAMES, &ha, &port);
-%END_ALLOW_THREADS
-QByteArray ba(data, retval);
-%PYARG_0 = PyTuple_New(3);
-PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[QByteArray](ba));
-PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[QHostAddress](ha));
-PyTuple_SET_ITEM(%PYARG_0, 2, %CONVERTTOPYTHON[quint16](port));
-// @snippet qudpsocket-readdatagram
-
-// @snippet qipv6address-len
-return 16;
-// @snippet qipv6address-len
-
-// @snippet qipv6address-getitem
-if (_i >= 16) {
- PyErr_SetString(PyExc_IndexError, "index out of bounds");
- return 0;
-}
-if (_i < 0)
- _i = 16 - qAbs(_i);
-
-uint item = %CPPSELF.c[_i];
-return %CONVERTTOPYTHON[uint](item);
-// @snippet qipv6address-getitem
-
-// @snippet qipv6address-setitem
-if (_i >= 16) {
- PyErr_SetString(PyExc_IndexError, "index out of bounds");
- return -1;
-}
-if (_i < 0)
- _i = 16 - qAbs(_i);
-quint8 item = %CONVERTTOCPP[quint8](_value);
-%CPPSELF.c[_i] = item;
-return 0;
-// @snippet qipv6address-setitem
diff --git a/sources/pyside2/PySide2/glue/qtopengl.cpp b/sources/pyside2/PySide2/glue/qtopengl.cpp
deleted file mode 100644
index 25b6ee096..000000000
--- a/sources/pyside2/PySide2/glue/qtopengl.cpp
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// @snippet qglbuffer-allocate
-int size = (%2 < 0) ? %1.size() : %2;
-%CPPSELF.allocate(static_cast<const void *>(%1.data()), size);
-// @snippet qglbuffer-allocate
-
-// @snippet qglbuffer-read
-char *data = new char[%3];
-bool result = %CPPSELF.read(%1, data, %3);
-QByteArray ret;
-if (result)
- ret.append(data, %3);
-%PYARG_0 = PyTuple_New(2);
-PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[bool](result));
-PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[QByteArray](ret));
-delete[] data;
-// @snippet qglbuffer-read
-
-// @snippet qglbuffer-write
-int size = (%3 < 0) ? %2.size() : %3;
-%CPPSELF.write(%1, static_cast<const void *>(%2.data()), size);
-// @snippet qglbuffer-write
-
-// @snippet qglbuffer-map
-Py_ssize_t dataSize = %CPPSELF.size();
-void *data = %CPPSELF.map(%1);
-
-if (!data) {
- Py_INCREF(Py_None);
- %PYARG_0 = Py_None;
-} else if (%1 == QGLBuffer::ReadOnly) {
- %PYARG_0 = Shiboken::Buffer::newObject(data, dataSize, Shiboken::Buffer::ReadOnly);
-} else {
- %PYARG_0 = Shiboken::Buffer::newObject(data, dataSize, Shiboken::Buffer::ReadWrite);
-}
-// @snippet qglbuffer-map
diff --git a/sources/pyside2/PySide2/glue/qtprintsupport.cpp b/sources/pyside2/PySide2/glue/qtprintsupport.cpp
deleted file mode 100644
index 300a498c0..000000000
--- a/sources/pyside2/PySide2/glue/qtprintsupport.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// @snippet setpagesize
-bool out = %CPPSELF.setPageSize(%1);
-%PYARG_0 = %CONVERTTOPYTHON[bool](out);
-// @snippet setpagesize
diff --git a/sources/pyside2/PySide2/glue/qtqml.cpp b/sources/pyside2/PySide2/glue/qtqml.cpp
deleted file mode 100644
index 1913204c3..000000000
--- a/sources/pyside2/PySide2/glue/qtqml.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// @snippet qmlregistertype
-int %0 = PySide::qmlRegisterType(%ARGUMENT_NAMES);
-%PYARG_0 = %CONVERTTOPYTHON[int](%0);
-// @snippet qmlregistertype
-
-// @snippet init
-PySide::initQmlSupport(module);
-// @snippet init
-
-// @snippet qjsengine-toscriptvalue
-%RETURN_TYPE retval = %CPPSELF.%FUNCTION_NAME(%1);
-return %CONVERTTOPYTHON[%RETURN_TYPE](retval);
-// @snippet qjsengine-toscriptvalue
diff --git a/sources/pyside2/PySide2/glue/qtquick.cpp b/sources/pyside2/PySide2/glue/qtquick.cpp
deleted file mode 100644
index b7c31aff3..000000000
--- a/sources/pyside2/PySide2/glue/qtquick.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// @snippet qtquick
-PySide::initQuickSupport(module);
-// @snippet qtquick
diff --git a/sources/pyside2/PySide2/glue/qtscript.cpp b/sources/pyside2/PySide2/glue/qtscript.cpp
deleted file mode 100644
index cf168d6bd..000000000
--- a/sources/pyside2/PySide2/glue/qtscript.cpp
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// @snippet qscriptvalue-repr
-if (%CPPSELF.isVariant() || %CPPSELF.isString()) {
- QString format = QString::asprintf("%s(\"%s\")",
- Py_TYPE(%PYSELF)->tp_name,
- qPrintable(%CPPSELF.toString()));
- %PYARG_0 = Shiboken::String::fromCString(qPrintable(format));
- } else {
- %PYARG_0 = Shiboken::String::fromCString(Py_TYPE(%PYSELF)->tp_name);
-}
-// @snippet qscriptvalue-repr
-
-// @snippet qscriptvalue-mgetitem
-Shiboken::AutoDecRef key(PyObject_Str(_key));
-QVariant res = %CPPSELF.property(Shiboken::String::toCString(key.object())).toVariant();
-if (res.isValid()) {
- return %CONVERTTOPYTHON[QVariant](res);
-} else {
- PyObject *errorType = PyInt_Check(_key) ? PyExc_IndexError : PyExc_KeyError;
- PyErr_SetString(errorType, "Key not found.");
- return 0;
-}
-// @snippet qscriptvalue-mgetitem
-
-// @snippet qscriptvalueiterator-next
-if (%CPPSELF.hasNext()) {
- %CPPSELF.next();
- QString name = %CPPSELF.name();
- QVariant value = %CPPSELF.value().toVariant();
- %PYARG_0 = PyTuple_New(2);
- PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[QString](name));
- PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[QVariant](value));
-} else {
- PyErr_SetNone(PyExc_StopIteration);
-}
-// @snippet qscriptvalueiterator-next
diff --git a/sources/pyside2/PySide2/glue/qtuitools.cpp b/sources/pyside2/PySide2/glue/qtuitools.cpp
deleted file mode 100644
index 668b512e4..000000000
--- a/sources/pyside2/PySide2/glue/qtuitools.cpp
+++ /dev/null
@@ -1,249 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-// @snippet uitools-loadui
-/*
- * Based on code provided by:
- * Antonio Valentino <antonio.valentino at tiscali.it>
- * Frédéric <frederic.mantegazza at gbiloba.org>
- */
-
-#include <shiboken.h>
-#include <QUiLoader>
-#include <QFile>
-#include <QWidget>
-
-static void createChildrenNameAttributes(PyObject *root, QObject *object)
-{
- for (auto *child : object->children()) {
- const QByteArray name = child->objectName().toLocal8Bit();
-
- if (!name.isEmpty() && !name.startsWith("_") && !name.startsWith("qt_")) {
- Shiboken::AutoDecRef attrName(Py_BuildValue("s", name.constData()));
- if (!PyObject_HasAttr(root, attrName)) {
- Shiboken::AutoDecRef pyChild(%CONVERTTOPYTHON[QObject *](child));
- PyObject_SetAttr(root, attrName, pyChild);
- }
- createChildrenNameAttributes(root, child);
- }
- createChildrenNameAttributes(root, child);
- }
-}
-
-static PyObject *QUiLoadedLoadUiFromDevice(QUiLoader *self, QIODevice *dev, QWidget *parent)
-{
- QWidget *wdg = self->load(dev, parent);
-
- if (wdg) {
- PyObject *pyWdg = %CONVERTTOPYTHON[QWidget *](wdg);
- createChildrenNameAttributes(pyWdg, wdg);
- if (parent) {
- Shiboken::AutoDecRef pyParent(%CONVERTTOPYTHON[QWidget *](parent));
- Shiboken::Object::setParent(pyParent, pyWdg);
- }
- return pyWdg;
- }
-
- if (!PyErr_Occurred())
- PyErr_SetString(PyExc_RuntimeError, "Unable to open/read ui device");
- return nullptr;
-}
-
-static PyObject *QUiLoaderLoadUiFromFileName(QUiLoader *self, const QString &uiFile, QWidget *parent)
-{
- QFile fd(uiFile);
- return QUiLoadedLoadUiFromDevice(self, &fd, parent);
-}
-// @snippet uitools-loadui
-
-// @snippet quiloader
-Q_IMPORT_PLUGIN(PyCustomWidgets);
-// @snippet quiloader
-
-// @snippet quiloader-registercustomwidget
-registerCustomWidget(%PYARG_1);
-%CPPSELF.addPluginPath(""); // force reload widgets
-// @snippet quiloader-registercustomwidget
-
-// @snippet quiloader-load-1
-// Avoid calling the original function: %CPPSELF.%FUNCTION_NAME()
-%PYARG_0 = QUiLoadedLoadUiFromDevice(%CPPSELF, %1, %2);
-// @snippet quiloader-load-1
-
-// @snippet quiloader-load-2
-// Avoid calling the original function: %CPPSELF.%FUNCTION_NAME()
-%PYARG_0 = QUiLoaderLoadUiFromFileName(%CPPSELF, %1, %2);
-// @snippet quiloader-load-2
-
-// @snippet loaduitype
-/*
-Arguments:
- %PYARG_1 (uifile)
-*/
-// 1. Generate the Python code from the UI file
-#ifdef IS_PY3K
-PyObject *strObj = PyUnicode_AsUTF8String(%PYARG_1);
-char *arg1 = PyBytes_AsString(strObj);
-QByteArray uiFileName(arg1);
-Py_DECREF(strObj);
-#else
-QByteArray uiFileName(PyBytes_AsString(%PYARG_1));
-#endif
-
-QFile uiFile(uiFileName);
-
-if (!uiFile.exists()) {
- qCritical().noquote() << "File" << uiFileName << "does not exists";
- Py_RETURN_NONE;
-}
-
-if (uiFileName.isEmpty()) {
- qCritical() << "Error converting the UI filename to QByteArray";
- Py_RETURN_NONE;
-}
-
-QString uicBin("uic");
-QStringList uicArgs = {"-g", "python", QString::fromUtf8(uiFileName)};
-
-QProcess uicProcess;
-uicProcess.start(uicBin, uicArgs);
-if (!uicProcess.waitForFinished()) {
- qCritical() << "Cannot run 'uic': " << uicProcess.errorString() << " - "
- << "Exit status " << uicProcess.exitStatus()
- << " (" << uicProcess.exitCode() << ")\n"
- << "Check if 'uic' is in PATH";
- Py_RETURN_NONE;
-}
-QByteArray uiFileContent = uicProcess.readAllStandardOutput();
-QByteArray errorOutput = uicProcess.readAllStandardError();
-
-if (!errorOutput.isEmpty()) {
- qCritical().noquote() << errorOutput;
- Py_RETURN_NONE;
-}
-
-// 2. Obtain the 'classname' and the Qt base class.
-QByteArray className;
-QByteArray baseClassName;
-
-// Problem
-// The generated Python file doesn't have the Qt Base class information.
-
-// Solution
-// Use the XML file
-if (!uiFile.open(QIODevice::ReadOnly))
- Py_RETURN_NONE;
-
-// This will look for the first <widget> tag, e.g.:
-// <widget class="QWidget" name="ThemeWidgetForm">
-// and then extract the information from "class", and "name",
-// to get the baseClassName and className respectively
-QXmlStreamReader reader(&uiFile);
-while (!reader.atEnd() && baseClassName.isEmpty() && className.isEmpty()) {
- auto token = reader.readNext();
- if (token == QXmlStreamReader::StartElement && reader.name() == "widget") {
- baseClassName = reader.attributes().value(QLatin1String("class")).toUtf8();
- className = reader.attributes().value(QLatin1String("name")).toUtf8();
- }
-}
-
-uiFile.close();
-
-if (className.isEmpty() || baseClassName.isEmpty() || reader.hasError()) {
- qCritical() << "An error occurred when parsing the UI file while looking for the class info "
- << reader.errorString();
- Py_RETURN_NONE;
-}
-
-QByteArray pyClassName("Ui_"+className);
-
-PyObject *module = PyImport_ImportModule("__main__");
-PyObject *loc = PyModule_GetDict(module);
-
-// 3. exec() the code so the class exists in the context: exec(uiFileContent)
-// The context of PyRun_SimpleString is __main__.
-// 'Py_file_input' is the equivalent to using exec(), since it will execute
-// the code, without returning anything.
-Shiboken::AutoDecRef codeUi(Py_CompileString(uiFileContent.constData(), "<stdin>", Py_file_input));
-if (codeUi.isNull()) {
- qCritical() << "Error while compiling the generated Python file";
- Py_RETURN_NONE;
-}
-PyObject *uiObj = nullptr;
-#ifdef IS_PY3K
-uiObj = PyEval_EvalCode(codeUi, loc, loc);
-#else
-uiObj = PyEval_EvalCode(reinterpret_cast<PyCodeObject *>(codeUi.object()), loc, loc);
-#endif
-
-if (uiObj == nullptr) {
- qCritical() << "Error while running exec() on the generated code";
- Py_RETURN_NONE;
-}
-
-// 4. eval() the name of the class on a variable to return
-// 'Py_eval_input' is the equivalent to using eval(), since it will just
-// evaluate an expression.
-Shiboken::AutoDecRef codeClass(Py_CompileString(pyClassName.constData(),"<stdin>", Py_eval_input));
-if (codeClass.isNull()) {
- qCritical() << "Error while compiling the Python class";
- Py_RETURN_NONE;
-}
-
-Shiboken::AutoDecRef codeBaseClass(Py_CompileString(baseClassName.constData(), "<stdin>", Py_eval_input));
-if (codeBaseClass.isNull()) {
- qCritical() << "Error while compiling the base class";
- Py_RETURN_NONE;
-}
-
-#ifdef IS_PY3K
-PyObject *classObj = PyEval_EvalCode(codeClass, loc, loc);
-PyObject *baseClassObj = PyEval_EvalCode(codeBaseClass, loc, loc);
-#else
-PyObject *classObj = PyEval_EvalCode(reinterpret_cast<PyCodeObject *>(codeClass.object()), loc, loc);
-PyObject *baseClassObj = PyEval_EvalCode(reinterpret_cast<PyCodeObject *>(codeBaseClass.object()), loc, loc);
-#endif
-
-%PYARG_0 = PyTuple_New(2);
-if (%PYARG_0 == nullptr) {
- qCritical() << "Error while creating the return Tuple";
- Py_RETURN_NONE;
-}
-PyTuple_SET_ITEM(%PYARG_0, 0, classObj);
-PyTuple_SET_ITEM(%PYARG_0, 1, baseClassObj);
-// @snippet loaduitype
diff --git a/sources/pyside2/PySide2/glue/qtwebenginewidgets.cpp b/sources/pyside2/PySide2/glue/qtwebenginewidgets.cpp
deleted file mode 100644
index 5ee9f3554..000000000
--- a/sources/pyside2/PySide2/glue/qtwebenginewidgets.cpp
+++ /dev/null
@@ -1,157 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// @snippet qwebenginepage-findtext
-auto callable = %PYARG_3;
-auto callback = [callable](bool found)
-{
- if (!PyCallable_Check(callable)) {
- qWarning("Argument 3 of %FUNCTION_NAME must be a callable.");
- return;
- }
- Shiboken::GilState state;
- Shiboken::AutoDecRef arglist(PyTuple_New(1));
- PyTuple_SET_ITEM(arglist, 0, %CONVERTTOPYTHON[bool](found));
- Shiboken::AutoDecRef ret(PyObject_CallObject(callable, arglist));
- Py_DECREF(callable);
-
-};
-Py_INCREF(callable);
-%CPPSELF.%FUNCTION_NAME(%1, %2, callback);
-// @snippet qwebenginepage-findtext
-
-// @snippet qwebenginepage-print
-auto printer = %PYARG_1;
-auto callable = %PYARG_2;
-auto callback = [printer, callable](bool succeeded)
-{
- if (!PyCallable_Check(callable)) {
- qWarning("Argument 2 of %FUNCTION_NAME must be a callable.");
- return;
- }
- Shiboken::GilState state;
- Shiboken::AutoDecRef arglist(PyTuple_New(1));
- PyTuple_SET_ITEM(arglist, 0, %CONVERTTOPYTHON[bool](succeeded));
- Shiboken::AutoDecRef ret(PyObject_CallObject(callable, arglist));
- Py_DECREF(callable);
- Py_DECREF(printer);
-
-};
-Py_INCREF(printer); // Add a reference to the printer until asynchronous printing has finished
-Py_INCREF(callable);
-%CPPSELF.%FUNCTION_NAME(%1, callback);
-// @snippet qwebenginepage-print
-
-// @snippet qwebenginepage-convertto
-auto callable = %PYARG_1;
-auto callback = [callable](const QString &text)
-{
- if (!PyCallable_Check(callable)) {
- qWarning("Argument 1 of %FUNCTION_NAME must be a callable.");
- return;
- }
- Shiboken::GilState state;
- Shiboken::AutoDecRef arglist(PyTuple_New(1));
- PyTuple_SET_ITEM(arglist, 0, %CONVERTTOPYTHON[QString](text));
- Shiboken::AutoDecRef ret(PyObject_CallObject(callable, arglist));
- Py_DECREF(callable);
-
-};
-Py_INCREF(callable);
-%CPPSELF.%FUNCTION_NAME(callback);
-// @snippet qwebenginepage-convertto
-
-// @snippet qwebenginepage-runjavascript
-auto callable = %PYARG_3;
-auto callback = [callable](const QVariant &result)
-{
- if (!PyCallable_Check(callable)) {
- qWarning("Argument 3 of %FUNCTION_NAME must be a callable.");
- return;
- }
- Shiboken::GilState state;
- Shiboken::AutoDecRef arglist(PyTuple_New(1));
- switch (result.type()) {
- case QVariant::Bool: {
- const bool value = result.toBool();
- PyTuple_SET_ITEM(arglist, 0, %CONVERTTOPYTHON[QString](value));
- }
- break;
- case QVariant::Int:
- case QVariant::UInt:
- case QVariant::LongLong:
- case QVariant::ULongLong:
- case QVariant::Double: {
- const double number = result.toDouble();
- PyTuple_SET_ITEM(arglist, 0, %CONVERTTOPYTHON[double](number));
- }
- break;
- default: {
- const QString value = result.toString();
- PyTuple_SET_ITEM(arglist, 0, %CONVERTTOPYTHON[QString](value));
- }
- break;
- }
- // PyTuple_SET_ITEM(arglist, 0, %CONVERTTOPYTHON[bool](found));
- Shiboken::AutoDecRef ret(PyObject_CallObject(callable, arglist));
- Py_DECREF(callable);
-
-};
-Py_INCREF(callable);
-%CPPSELF.%FUNCTION_NAME(%1, %2, callback);
-// @snippet qwebenginepage-runjavascript
-
-// @snippet qwebenginepage-printtopdf
-auto callable = %PYARG_1;
-auto callback = [callable](const QByteArray &pdf)
-{
- if (!PyCallable_Check(callable)) {
- qWarning("Argument 1 of %FUNCTION_NAME must be a callable.");
- return;
- }
- Shiboken::GilState state;
- Shiboken::AutoDecRef arglist(PyTuple_New(1));
- PyTuple_SET_ITEM(arglist, 0, %CONVERTTOPYTHON[QByteArray](pdf));
- Shiboken::AutoDecRef ret(PyObject_CallObject(callable, arglist));
- Py_DECREF(callable);
-
-};
-Py_INCREF(callable);
-%CPPSELF.%FUNCTION_NAME(callback, %2);
-// @snippet qwebenginepage-printtopdf
diff --git a/sources/pyside2/PySide2/glue/qtwebkitwidgets.cpp b/sources/pyside2/PySide2/glue/qtwebkitwidgets.cpp
deleted file mode 100644
index c0f182747..000000000
--- a/sources/pyside2/PySide2/glue/qtwebkitwidgets.cpp
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// @snippet qwebview-page
-auto _pyReturn = reinterpret_cast<SbkObject *>(%PYARG_0);
-if (!Shiboken::Object::hasParentInfo(_pyReturn))
- Shiboken::Object::setParent(%PYSELF, %PYARG_0);
-// @snippet qwebview-page
-
-// @snippet qwebelementcollection-len
-return %CPPSELF.count();
-// @snippet qwebelementcollection-len
-
-// @snippet qwebelementcollection-getitem
-if (_i < 0 || _i >= %CPPSELF.count()) {
- PyErr_SetString(PyExc_IndexError, "index out of bounds");
- return 0;
-}
-QWebElement element = %CPPSELF.at(_i);
-return %CONVERTTOPYTHON[QWebElement](element);
-// @snippet qwebelementcollection-getitem
-
-// @snippet qwebpage-qt-metacall
-static int _signalIndex = -1;
-static QMetaMethod _m;
-
-if (_signalIndex == -1) {
- _signalIndex = QWebPage::staticMetaObject.indexOfSlot("shouldInterruptJavaScript()")
- _m = QWebPage::staticMetaObject.method(_signalIndex);
-}
-
-if (_signalIndex == id) {
- Shiboken::GilState gil;
- auto self = reinterpret_cast<PyObject *>(Shiboken::BindingManager::instance().retrieveWrapper(this));
-
- if (self) {
- Shiboken::AutoDecRef _pyMethod(PyObject_GetAttrString(self, "shouldInterruptJavaScript"));
- return PySide::SignalManager::callPythonMetaMethod(_m, args, _pyMethod, false);
- }
-}
-// @snippet qwebpage-qt-metacall
-
-// @snippet qwebframe-metadata
-%PYARG_0 = PyDict_New();
-const auto &keys = %0.keys();
-for (const auto &_key : keys) {
- Shiboken::AutoDecRef _pyValueList(PyList_New(0));
- for (auto it = %0.lowerBound(key), end = %0.upperBound(key); it ! = end; ++it) {
- Shiboken::AutoDecRef _pyValue(%CONVERTTOPYTHON[QString](it.value));
- PyList_Append(_pyValueList, _pyValue);
- }
-
- Shiboken::AutoDecRef _pyKey(%CONVERTTOPYTHON[QString](_key));
- PyDict_SetItem(%PYARG_0, _pyKey, _pyValueList);
-}
-// @snippet qwebframe-metadata
diff --git a/sources/pyside2/PySide2/glue/qtwidgets.cpp b/sources/pyside2/PySide2/glue/qtwidgets.cpp
deleted file mode 100644
index 4f9baadf1..000000000
--- a/sources/pyside2/PySide2/glue/qtwidgets.cpp
+++ /dev/null
@@ -1,663 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*********************************************************************
- * INJECT CODE
- ********************************************************************/
-
-// @snippet qtreewidgetitemiterator-next
-if (**%CPPSELF) {
- QTreeWidgetItemIterator *%0 = new QTreeWidgetItemIterator((*%CPPSELF)++);
- %PYARG_0 = %CONVERTTOPYTHON[QTreeWidgetItemIterator *](%0);
-}
-// @snippet qtreewidgetitemiterator-next
-
-// @snippet qtreewidgetitemiterator-value
-QTreeWidgetItem *%0 = %CPPSELF.operator *();
-%PYARG_0 = %CONVERTTOPYTHON[QTreeWidgetItem *](%0);
-Shiboken::Object::releaseOwnership(%PYARG_0);
-// @snippet qtreewidgetitemiterator-value
-
-// @snippet qgraphicsitem
-PyObject *userTypeConstant = PyInt_FromLong(QGraphicsItem::UserType);
-PyDict_SetItemString(reinterpret_cast<PyTypeObject *>(Sbk_QGraphicsItem_TypeF())->tp_dict, "UserType", userTypeConstant);
-// @snippet qgraphicsitem
-
-// @snippet qgraphicsitem-scene-return-parenting
-if (%0) {
- QObject *parent = %0->parent();
- Shiboken::AutoDecRef pyParent(%CONVERTTOPYTHON[QObject *](parent));
- Shiboken::Object::setParent(pyParent, %PYARG_0);
-}
-// @snippet qgraphicsitem-scene-return-parenting
-
-// @snippet qgraphicsitem-isblockedbymodalpanel
-QGraphicsItem *item_ = NULL;
-%RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&item_);
-%PYARG_0 = PyTuple_New(2);
-PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](retval_));
-PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[QGraphicsItem *](item_));
-// @snippet qgraphicsitem-isblockedbymodalpanel
-
-// @snippet qitemeditorfactory-registereditor
-Shiboken::Object::releaseOwnership(%PYARG_2);
-// @snippet qitemeditorfactory-registereditor
-
-// @snippet qitemeditorfactory-setdefaultfactory
-//this function is static we need keep ref to default value, to be able to call python virtual functions
-static PyObject *_defaultValue = nullptr;
-%CPPSELF.%FUNCTION_NAME(%1);
-Py_INCREF(%PYARG_1);
-if (_defaultValue)
- Py_DECREF(_defaultValue);
-
-_defaultValue = %PYARG_1;
-// @snippet qitemeditorfactory-setdefaultfactory
-
-// @snippet qformlayout-fix-args
-int _row;
-QFormLayout::ItemRole _role;
-%CPPSELF->%FUNCTION_NAME(%ARGUMENT_NAMES, &_row, &_role);
-%PYARG_0 = PyTuple_New(2);
-PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[int](_row));
-PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[QFormLayout::ItemRole](_role));
-// @snippet qformlayout-fix-args
-
-// @snippet qfiledialog-return
-%RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, &%5, %6);
-%PYARG_0 = PyTuple_New(2);
-PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](retval_));
-PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[%ARG5_TYPE](%5));
-// @snippet qfiledialog-return
-
-// @snippet qmenu-glue
-inline PyObject *addActionWithPyObject(QMenu *self, const QIcon &icon, const QString &text, PyObject *callback, const QKeySequence &shortcut)
-{
- QAction *act = self->addAction(text);
-
- if (!icon.isNull())
- act->setIcon(icon);
-
- if (!shortcut.isEmpty())
- act->setShortcut(shortcut);
-
- self->addAction(act);
-
- PyObject *pyAct = %CONVERTTOPYTHON[QAction *](act);
- Shiboken::AutoDecRef result(PyObject_CallMethod(pyAct,
- const_cast<char *>("connect"),
- const_cast<char *>("OsO"),
- pyAct,
- SIGNAL(triggered()), callback));
- if (result.isNull()) {
- Py_DECREF(pyAct);
- return nullptr;
- }
-
- return pyAct;
-}
-// @snippet qmenu-glue
-
-// @snippet qmenu-addaction-1
-%PYARG_0 = addActionWithPyObject(%CPPSELF, QIcon(), %1, %2, %3);
-// @snippet qmenu-addaction-1
-
-// @snippet qmenu-addaction-2
-%PYARG_0 = addActionWithPyObject(%CPPSELF, %1, %2, %3, %4);
-// @snippet qmenu-addaction-2
-
-// @snippet qmenu-addaction-3
-%CPPSELF.addAction(%1);
-// @snippet qmenu-addaction-3
-
-// @snippet qmenu-clear
-Shiboken::BindingManager &bm = Shiboken::BindingManager::instance();
-const auto &actions = %CPPSELF.actions();
-for (auto *act : actions) {
- if (auto wrapper = bm.retrieveWrapper(act)) {
- auto pyObj = reinterpret_cast<PyObject *>(wrapper);
- Py_INCREF(pyObj);
- Shiboken::Object::setParent(NULL, pyObj);
- Shiboken::Object::invalidate(pyObj);
- Py_DECREF(pyObj);
- }
-}
-// @snippet qmenu-clear
-
-// @snippet qmenubar-glue
-inline PyObject *
-addActionWithPyObject(QMenuBar *self, const QString &text, PyObject *callback)
-{
- QAction *act = self->addAction(text);
-
- self->addAction(act);
-
- PyObject *pyAct = %CONVERTTOPYTHON[QAction *](act);
- PyObject *result = PyObject_CallMethod(pyAct,
- const_cast<char *>("connect"),
- const_cast<char *>("OsO"),
- pyAct,
- SIGNAL(triggered(bool)), callback);
-
- if (result == nullptr || result == Py_False) {
- if (result)
- Py_DECREF(result);
- Py_DECREF(pyAct);
- return nullptr;
- }
-
- return pyAct;
-}
-// @snippet qmenubar-glue
-
-// @snippet qmenubar-clear
-const auto &actions = %CPPSELF.actions();
-for (auto *act : actions) {
- Shiboken::AutoDecRef pyAct(%CONVERTTOPYTHON[QAction *](act));
- Shiboken::Object::setParent(NULL, pyAct);
- Shiboken::Object::invalidate(pyAct);
-}
-// @snippet qmenubar-clear
-
-// @snippet qmenubar-addaction-1
-%PYARG_0 = addActionWithPyObject(%CPPSELF, %1, %2);
-// @snippet qmenubar-addaction-1
-
-// @snippet qmenubar-addaction-2
-%CPPSELF.addAction(%1);
-// @snippet qmenubar-addaction-2
-
-// @snippet qshortcut-1
-%0 = new %TYPE(%1, %2);
-// @snippet qshortcut-1
-
-// @snippet qshortcut-2
-Shiboken::AutoDecRef result(PyObject_CallMethod(%PYSELF,
- const_cast<char *>("connect"),
- const_cast<char *>("OsO"),
- %PYSELF, SIGNAL(activated()), %PYARG_3)
-);
-if (!result.isNull())
- Shiboken::Object::setParent(%PYARG_2, %PYSELF);
-// @snippet qshortcut-2
-
-// @snippet qtoolbox-removeitem
-QWidget *_widget = %CPPSELF.widget(%1);
-if (_widget) {
- Shiboken::AutoDecRef pyWidget(%CONVERTTOPYTHON[QWidget *](_widget));
- Shiboken::Object::setParent(0, pyWidget);
-}
-// @snippet qtoolbox-removeitem
-
-// @snippet qlayout-help-functions
-void addLayoutOwnership(QLayout *layout, QLayoutItem *item);
-void removeLayoutOwnership(QLayout *layout, QWidget *widget);
-
-inline QByteArray retrieveObjectName(PyObject *obj)
-{
- Shiboken::AutoDecRef objName(PyObject_Str(obj));
- return Shiboken::String::toCString(objName);
-}
-
-inline void addLayoutOwnership(QLayout *layout, QWidget *widget)
-{
- //transfer ownership to parent widget
- QWidget *lw = layout->parentWidget();
- QWidget *pw = widget->parentWidget();
-
- Shiboken::AutoDecRef pyChild(%CONVERTTOPYTHON[QWidget *](widget));
-
- //Transfer parent to layout widget
- if (pw && lw && pw != lw)
- Shiboken::Object::setParent(0, pyChild);
-
- if (!lw && !pw) {
- //keep the reference while the layout is orphan
- Shiboken::AutoDecRef pyParent(%CONVERTTOPYTHON[QWidget *](layout));
- Shiboken::Object::keepReference(reinterpret_cast<SbkObject *>(pyParent.object()), retrieveObjectName(pyParent).data(), pyChild, true);
- } else {
- if (!lw)
- lw = pw;
- Shiboken::AutoDecRef pyParent(%CONVERTTOPYTHON[QWidget *](lw));
- Shiboken::Object::setParent(pyParent, pyChild);
- }
-}
-
-inline void addLayoutOwnership(QLayout *layout, QLayout *other)
-{
- //transfer all children widgets from other to layout parent widget
- QWidget *parent = layout->parentWidget();
- if (!parent) {
- //keep the reference while the layout is orphan
- Shiboken::AutoDecRef pyParent(%CONVERTTOPYTHON[QLayout *](layout));
- Shiboken::AutoDecRef pyChild(%CONVERTTOPYTHON[QLayout *](other));
- Shiboken::Object::keepReference(reinterpret_cast<SbkObject *>(pyParent.object()),
- retrieveObjectName(pyParent).data(), pyChild, true);
- return;
- }
-
- for (int i=0, i_max=other->count(); i < i_max; i++) {
- QLayoutItem *item = other->itemAt(i);
- if (PyErr_Occurred() || !item)
- return;
- addLayoutOwnership(layout, item);
- }
-
- Shiboken::AutoDecRef pyParent(%CONVERTTOPYTHON[QLayout *](layout));
- Shiboken::AutoDecRef pyChild(%CONVERTTOPYTHON[QLayout *](other));
- Shiboken::Object::setParent(pyParent, pyChild);
-}
-
-inline void addLayoutOwnership(QLayout *layout, QLayoutItem *item)
-{
- if (!item)
- return;
-
- if (QWidget *w = item->widget()) {
- addLayoutOwnership(layout, w);
- } else {
- if (QLayout *l = item->layout())
- addLayoutOwnership(layout, l);
- }
-
- Shiboken::AutoDecRef pyParent(%CONVERTTOPYTHON[QLayout *](layout));
- Shiboken::AutoDecRef pyChild(%CONVERTTOPYTHON[QLayoutItem *](item));
- Shiboken::Object::setParent(pyParent, pyChild);
-}
-
-static void removeWidgetFromLayout(QLayout *layout, QWidget *widget)
-{
- QWidget *parent = widget->parentWidget();
-
- if (!parent) {
- //remove reference on layout
- Shiboken::AutoDecRef pyParent(%CONVERTTOPYTHON[QWidget *](layout));
- Shiboken::AutoDecRef pyChild(%CONVERTTOPYTHON[QWidget *](widget));
- Shiboken::Object::removeReference(reinterpret_cast<SbkObject *>(pyParent.object()),
- retrieveObjectName(pyParent).data(), pyChild);
- } else {
- //give the ownership to parent
- Shiboken::AutoDecRef pyParent(%CONVERTTOPYTHON[QWidget *](parent));
- Shiboken::AutoDecRef pyChild(%CONVERTTOPYTHON[QWidget *](widget));
- Shiboken::Object::setParent(pyParent, pyChild);
- }
-}
-
-inline void removeLayoutOwnership(QLayout *layout, QLayoutItem *item)
-{
- if (QWidget *w = item->widget()) {
- removeWidgetFromLayout(layout, w);
- } else {
- QLayout *l = item->layout();
- if (l && item != l)
- removeLayoutOwnership(layout, l);
- }
-
- Shiboken::AutoDecRef pyChild(%CONVERTTOPYTHON[QLayoutItem *](item));
- Shiboken::Object::invalidate(pyChild);
- Shiboken::Object::setParent(0, pyChild);
-}
-
-inline void removeLayoutOwnership(QLayout *layout, QWidget *widget)
-{
- if (!widget)
- return;
-
- for (int i=0, i_max=layout->count(); i < i_max; i++) {
- QLayoutItem *item = layout->itemAt(i);
- if (PyErr_Occurred() || !item)
- return;
- if (item->widget() == widget)
- removeLayoutOwnership(layout, item);
- }
-}
-// @snippet qlayout-help-functions
-
-// @snippet qlayout-setalignment
-%CPPSELF.setAlignment(%1);
-// @snippet qlayout-setalignment
-
-// @snippet addownership-0
-addLayoutOwnership(%CPPSELF, %0);
-// @snippet addownership-0
-
-// @snippet addownership-1
-addLayoutOwnership(%CPPSELF, %1);
-// @snippet addownership-1
-
-// @snippet addownership-2
-addLayoutOwnership(%CPPSELF, %2);
-// @snippet addownership-2
-
-// @snippet removeownership-1
-removeLayoutOwnership(%CPPSELF, %1);
-// @snippet removeownership-1
-
-// @snippet qgridlayout-getitemposition
-int a, b, c, d;
-%CPPSELF.%FUNCTION_NAME(%1, &a, &b, &c, &d);
-%PYARG_0 = PyTuple_New(4);
-PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[int](a));
-PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[int](b));
-PyTuple_SET_ITEM(%PYARG_0, 2, %CONVERTTOPYTHON[int](c));
-PyTuple_SET_ITEM(%PYARG_0, 3, %CONVERTTOPYTHON[int](d));
-// @snippet qgridlayout-getitemposition
-
-// @snippet qgraphicsscene-destroyitemgroup
-QGraphicsItem *parentItem = %1->parentItem();
-Shiboken::AutoDecRef parent(%CONVERTTOPYTHON[QGraphicsItem *](parentItem));
-const auto &childItems = %1->childItems();
-for (auto *item : childItems)
- Shiboken::Object::setParent(parent, %CONVERTTOPYTHON[QGraphicsItem *](item));
-%CPPSELF.%FUNCTION_NAME(%1);
-// the arg was destroyed by Qt.
-Shiboken::Object::invalidate(%PYARG_1);
-// @snippet qgraphicsscene-destroyitemgroup
-
-// @snippet qgraphicsscene-addwidget
-%RETURN_TYPE %0 = %CPPSELF.%FUNCTION_NAME(%1, %2);
-%PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
-Shiboken::Object::keepReference(reinterpret_cast<SbkObject *>(%PYARG_0), "setWidget(QWidget*)1", %PYARG_1);
-// @snippet qgraphicsscene-addwidget
-
-// @snippet qgraphicsscene-clear
-const QList<QGraphicsItem *> items = %CPPSELF.items();
-Shiboken::BindingManager &bm = Shiboken::BindingManager::instance();
-for (auto *item : items) {
- SbkObject *obj = bm.retrieveWrapper(item);
- if (obj) {
- if (reinterpret_cast<PyObject *>(obj)->ob_refcnt > 1) // If the refcnt is 1 the object will vannish anyway.
- Shiboken::Object::invalidate(obj);
- Shiboken::Object::removeParent(obj);
- }
-}
-%CPPSELF.%FUNCTION_NAME();
-// @snippet qgraphicsscene-clear
-
-// @snippet qtreewidget-clear
-QTreeWidgetItem *rootItem = %CPPSELF.invisibleRootItem();
-Shiboken::BindingManager &bm = Shiboken::BindingManager::instance();
-
-// PYSIDE-1251:
-// Since some objects can be created with a parent and without
-// being saved on a local variable (refcount = 1), they will be
-// deleted when setting the parent to nullptr, so we change the loop
-// to do this from the last child to the first, to avoid the case
-// when the child(1) points to the original child(2) in case the
-// first one was removed.
-for (int i = rootItem->childCount() - 1; i >= 0; --i) {
- QTreeWidgetItem *item = rootItem->child(i);
- if (SbkObject *wrapper = bm.retrieveWrapper(item))
- Shiboken::Object::setParent(nullptr, reinterpret_cast<PyObject *>(wrapper));
-}
-// @snippet qtreewidget-clear
-
-// @snippet qtreewidgetitem
-// Only call the parent function if this return some value
-// the parent can be the TreeWidget
-if (%0)
- Shiboken::Object::setParent(%PYARG_0, %PYSELF);
-// @snippet qtreewidgetitem
-
-// @snippet qlistwidget-clear
-Shiboken::BindingManager &bm = Shiboken::BindingManager::instance();
-for (int i = 0, count = %CPPSELF.count(); i < count; ++i) {
- QListWidgetItem *item = %CPPSELF.item(i);
- if (auto wrapper = bm.retrieveWrapper(item)) {
- auto pyObj = reinterpret_cast<PyObject *>(wrapper);
- Py_INCREF(pyObj);
- Shiboken::Object::setParent(NULL, pyObj);
- Shiboken::Object::invalidate(pyObj);
- Py_DECREF(pyObj);
- }
-}
-%CPPSELF.%FUNCTION_NAME();
-// @snippet qlistwidget-clear
-
-// @snippet qwidget-glue
-static QString retrieveObjectName(PyObject *obj)
-{
- Shiboken::AutoDecRef objName(PyObject_Str(obj));
- return QString(Shiboken::String::toCString(objName));
-}
-
-
-// Transfer objects ownership from layout to widget
-static inline void qwidgetReparentLayout(QWidget *parent, QLayout *layout)
-{
- Shiboken::AutoDecRef pyParent(%CONVERTTOPYTHON[QWidget *](parent));
-
- for (int i=0, i_count = layout->count(); i < i_count; i++) {
- QLayoutItem *item = layout->itemAt(i);
- if (PyErr_Occurred() || !item)
- return;
-
- if (QWidget *w = item->widget()) {
- QWidget *pw = w->parentWidget();
- if (pw != parent) {
- Shiboken::AutoDecRef pyChild(%CONVERTTOPYTHON[QWidget *](w));
- Shiboken::Object::setParent(pyParent, pyChild);
- }
- } else {
- if (QLayout *l = item->layout())
- qwidgetReparentLayout(parent, l);
- }
- }
-
- Shiboken::AutoDecRef pyChild(%CONVERTTOPYTHON[QLayout *](layout));
- Shiboken::Object::setParent(pyParent, pyChild);
- //remove previous references
- Shiboken::Object::keepReference(reinterpret_cast<SbkObject *>(pyChild.object()),
- qPrintable(retrieveObjectName(pyChild)), Py_None);
-}
-
-static inline void qwidgetSetLayout(QWidget *self, QLayout *layout)
-{
- if (!layout || self->layout())
- return;
-
- QObject *oldParent = layout->parent();
- if (oldParent && oldParent != self) {
- if (oldParent->isWidgetType()) {
- // remove old parent policy
- Shiboken::AutoDecRef pyLayout(%CONVERTTOPYTHON[QLayout *](layout));
- Shiboken::Object::setParent(Py_None, pyLayout);
- } else {
- PyErr_Format(PyExc_RuntimeError, "QWidget::setLayout: Attempting to set QLayout \"%s\" on %s \"%s\", when the QLayout already has a parent",
- qPrintable(layout->objectName()), self->metaObject()->className(), qPrintable(self->objectName()));
- return;
- }
- }
-
- if (oldParent != self) {
- qwidgetReparentLayout(self, layout);
- if (PyErr_Occurred())
- return;
-
- self->setLayout(layout);
- }
-}
-// @snippet qwidget-glue
-
-// @snippet qwidget-setstyle
-Shiboken::Object::keepReference(reinterpret_cast<SbkObject *>(%PYSELF), "__style__", %PYARG_1);
-// @snippet qwidget-setstyle
-
-// @snippet qwidget-style
-QStyle *myStyle = %CPPSELF->style();
-if (myStyle && qApp) {
-%PYARG_0 = %CONVERTTOPYTHON[QStyle *](myStyle);
- QStyle *appStyle = qApp->style();
- if (appStyle == myStyle) {
- Shiboken::AutoDecRef pyApp(%CONVERTTOPYTHON[QApplication *](qApp));
- Shiboken::Object::setParent(pyApp, %PYARG_0);
- Shiboken::Object::releaseOwnership(%PYARG_0);
- } else {
- Shiboken::Object::keepReference(reinterpret_cast<SbkObject *>(%PYSELF), "__style__", %PYARG_0);
- }
-}
-// @snippet qwidget-style
-
-// @snippet qapplication-init
-static void QApplicationConstructor(PyObject *self, PyObject *pyargv, QApplicationWrapper **cptr)
-{
- static int argc;
- static char **argv;
- PyObject *stringlist = PyTuple_GET_ITEM(pyargv, 0);
- if (Shiboken::listToArgcArgv(stringlist, &argc, &argv, "PySideApp")) {
- *cptr = new QApplicationWrapper(argc, argv, 0);
- Shiboken::Object::releaseOwnership(reinterpret_cast<SbkObject *>(self));
- PySide::registerCleanupFunction(&PySide::destroyQCoreApplication);
- }
-}
-// @snippet qapplication-init
-
-// @snippet qapplication-setStyle
-if (qApp) {
- Shiboken::AutoDecRef pyApp(%CONVERTTOPYTHON[QApplication *](qApp));
- Shiboken::Object::setParent(pyApp, %PYARG_1);
- Shiboken::Object::releaseOwnership(%PYARG_1);
-}
-// @snippet qapplication-setStyle
-
-// @snippet qwidget-setlayout
-qwidgetSetLayout(%CPPSELF, %1);
-// %FUNCTION_NAME() - disable generation of function call.
-// @snippet qwidget-setlayout
-
-// @snippet qtabwidget-removetab
-QWidget *tab = %CPPSELF.widget(%1);
-if (tab) {
- Shiboken::AutoDecRef pyWidget(%CONVERTTOPYTHON[QWidget *](tab));
- %CPPSELF.%FUNCTION_NAME(%1);
-}
-// @snippet qtabwidget-removetab
-
-// @snippet qtabwidget-clear
-Shiboken::BindingManager &bm = Shiboken::BindingManager::instance();
-for (int i = 0, count = %CPPSELF.count(); i < count; ++i) {
- QWidget *widget = %CPPSELF.widget(i);
- if (bm.hasWrapper(widget)) {
- Shiboken::AutoDecRef pyWidget(%CONVERTTOPYTHON[QWidget *](widget));
- Shiboken::Object::releaseOwnership(pyWidget);
- }
-}
-%CPPSELF.%FUNCTION_NAME();
-// @snippet qtabwidget-clear
-
-// @snippet qlineedit-addaction
-%CPPSELF.addAction(%1);
-// @snippet qlineedit-addaction
-
-// @snippet qtoolbar-addaction-1
-QAction *action = %CPPSELF.addAction(%1, %2);
-%PYARG_0 = %CONVERTTOPYTHON[QAction *](action);
-Shiboken::AutoDecRef result(PyObject_CallMethod(%PYARG_0,
- const_cast<char *>("connect"),
- const_cast<char *>("OsO"),
- %PYARG_0, SIGNAL(triggered()), %PYARG_3)
-);
-// @snippet qtoolbar-addaction-1
-
-// @snippet qtoolbar-addaction-2
-QAction *action = %CPPSELF.addAction(%1);
-%PYARG_0 = %CONVERTTOPYTHON[QAction *](action);
-Shiboken::AutoDecRef result(PyObject_CallMethod(%PYARG_0,
- const_cast<char *>("connect"),
- const_cast<char *>("OsO"),
- %PYARG_0, SIGNAL(triggered()), %PYARG_2)
-);
-// @snippet qtoolbar-addaction-2
-
-// @snippet qtoolbar-addaction-3
-%CPPSELF.addAction(%1);
-// @snippet qtoolbar-addaction-3
-
-// @snippet qtoolbar-clear
-QList<PyObject *> lst;
-Shiboken::BindingManager &bm = Shiboken::BindingManager::instance();
-const auto &toolButtonChildren = %CPPSELF.findChildren<QToolButton *>();
-for (auto *child : toolButtonChildren) {
- if (bm.hasWrapper(child)) {
- PyObject *pyChild = %CONVERTTOPYTHON[QToolButton *](child);
- Shiboken::Object::setParent(0, pyChild);
- lst << pyChild;
- }
-}
-
-//Remove actions
-const auto &actions = %CPPSELF.actions();
-for (auto *act : actions) {
- Shiboken::AutoDecRef pyAct(%CONVERTTOPYTHON[QAction *](act));
- Shiboken::Object::setParent(NULL, pyAct);
- Shiboken::Object::invalidate(pyAct);
-}
-
-%CPPSELF.clear();
-for (auto *obj : lst) {
- Shiboken::Object::invalidate(reinterpret_cast<SbkObject *>(obj));
- Py_XDECREF(obj);
-}
-// @snippet qtoolbar-clear
-
-// @snippet qapplication-1
-QApplicationConstructor(%PYSELF, args, &%0);
-// @snippet qapplication-1
-
-// @snippet qapplication-2
-PyObject *empty = PyTuple_New(2);
-if (!PyTuple_SetItem(empty, 0, PyList_New(0)))
- QApplicationConstructor(%PYSELF, empty, &%0);
-// @snippet qapplication-2
-
-// @snippet qgraphicsproxywidget-setwidget
-QWidget *_old = %CPPSELF.widget();
-if (_old)
- Shiboken::Object::setParent(nullptr, %CONVERTTOPYTHON[QWidget *](_old));
-%CPPSELF.%FUNCTION_NAME(%1);
-Shiboken::Object::setParent(%PYSELF, %PYARG_1);
-// @snippet qgraphicsproxywidget-setwidget
-
-/*********************************************************************
- * CONVERSIONS
- ********************************************************************/
-
-/*********************************************************************
- * NATIVE TO TARGET CONVERSIONS
- ********************************************************************/
diff --git a/sources/pyside2/PySide2/glue/qtxml.cpp b/sources/pyside2/PySide2/glue/qtxml.cpp
deleted file mode 100644
index 684ff33c4..000000000
--- a/sources/pyside2/PySide2/glue/qtxml.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// @snippet qxmlentityresolver-resolveentity
-QXmlInputSource *_qxmlinputsource_arg_ = nullptr;
-%BEGIN_ALLOW_THREADS
-%RETURN_TYPE %0 = %CPPSELF.%FUNCTION_NAME(%1, %2, _qxmlinputsource_arg_);
-%END_ALLOW_THREADS
-%PYARG_0 = PyTuple_New(2);
-PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](%0));
-PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[QXmlInputSource *](_qxmlinputsource_arg_));
-// @snippet qxmlentityresolver-resolveentity
-
-// @snippet qdomdocument-setcontent
-QString _errorMsg_;
-int _errorLine_ = 0;
-int _errorColumn_ = 0;
-%BEGIN_ALLOW_THREADS
-bool _ret_ = %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES, &_errorMsg_, &_errorLine_,
- &_errorColumn_);
-%END_ALLOW_THREADS
-%PYARG_0 = PyTuple_New(4);
-PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[bool](_ret_));
-PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[QString](_errorMsg_));
-PyTuple_SET_ITEM(%PYARG_0, 2, %CONVERTTOPYTHON[int](_errorLine_));
-PyTuple_SET_ITEM(%PYARG_0, 3, %CONVERTTOPYTHON[int](_errorColumn_));
-// @snippet qdomdocument-setcontent
diff --git a/sources/pyside2/PySide2/glue/qtxmlpatterns.cpp b/sources/pyside2/PySide2/glue/qtxmlpatterns.cpp
deleted file mode 100644
index 75ad3b265..000000000
--- a/sources/pyside2/PySide2/glue/qtxmlpatterns.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-// @snippet qxmlschemavalidator-schema
-QXmlSchema *%0 = new QXmlSchema(%CPPSELF.schema());
-%PYARG_0 = %CONVERTTOPYTHON[QXmlSchema *](%0);
-// @snippet qxmlschemavalidator-schema
diff --git a/sources/pyside2/PySide2/licensecomment.txt b/sources/pyside2/PySide2/licensecomment.txt
deleted file mode 100644
index 9d271ba2a..000000000
--- a/sources/pyside2/PySide2/licensecomment.txt
+++ /dev/null
@@ -1,38 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
diff --git a/sources/pyside2/PySide2/py.typed.in b/sources/pyside2/PySide2/py.typed.in
deleted file mode 100644
index 0e76a07dc..000000000
--- a/sources/pyside2/PySide2/py.typed.in
+++ /dev/null
@@ -1 +0,0 @@
-# this is a marker file for mypy
diff --git a/sources/pyside2/PySide2/pysideqtesttouch.h b/sources/pyside2/PySide2/pysideqtesttouch.h
deleted file mode 100644
index 115c7835e..000000000
--- a/sources/pyside2/PySide2/pysideqtesttouch.h
+++ /dev/null
@@ -1,227 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef PYSIDEQTESTTOUCH_H
-#define PYSIDEQTESTTOUCH_H
-
-#include <QtTest/qttestglobal.h>
-#include <QtTest/qtestassert.h>
-#include <QtTest/qtestsystem.h>
-#include <QtTest/qtestspontaneevent.h>
-#include <QtTest/qtesttouch.h>
-
-#include <QtCore/qmap.h>
-#include <QtGui/qevent.h>
-#include <QtGui/qwindow.h>
-#ifdef QT_WIDGETS_LIB
-#include <QtWidgets/qwidget.h>
-#endif
-
-QT_BEGIN_NAMESPACE
-
-namespace QTest
-{
-
- class PySideQTouchEventSequence
- {
- public:
- ~PySideQTouchEventSequence()
- {
- if (commitWhenDestroyed)
- commit();
- }
- PySideQTouchEventSequence *press(int touchId, const QPoint &pt, QWindow *window = nullptr)
- {
- QTouchEvent::TouchPoint &p = point(touchId);
- p.setScreenPos(mapToScreen(window, pt));
- p.setState(Qt::TouchPointPressed);
- return this;
- }
- PySideQTouchEventSequence *move(int touchId, const QPoint &pt, QWindow *window = nullptr)
- {
- QTouchEvent::TouchPoint &p = point(touchId);
- p.setScreenPos(mapToScreen(window, pt));
- p.setState(Qt::TouchPointMoved);
- return this;
- }
- PySideQTouchEventSequence *release(int touchId, const QPoint &pt, QWindow *window = nullptr)
- {
- QTouchEvent::TouchPoint &p = point(touchId);
- p.setScreenPos(mapToScreen(window, pt));
- p.setState(Qt::TouchPointReleased);
- return this;
- }
- PySideQTouchEventSequence *stationary(int touchId)
- {
- QTouchEvent::TouchPoint &p = pointOrPreviousPoint(touchId);
- p.setState(Qt::TouchPointStationary);
- return this;
- }
-
-#ifdef QT_WIDGETS_LIB
- PySideQTouchEventSequence *press(int touchId, const QPoint &pt, QWidget *widget = nullptr)
- {
- QTouchEvent::TouchPoint &p = point(touchId);
- p.setScreenPos(mapToScreen(widget, pt));
- p.setState(Qt::TouchPointPressed);
- return this;
- }
-
- PySideQTouchEventSequence *move(int touchId, const QPoint &pt, QWidget *widget = nullptr)
- {
- QTouchEvent::TouchPoint &p = point(touchId);
- p.setScreenPos(mapToScreen(widget, pt));
- p.setState(Qt::TouchPointMoved);
- return this;
- }
-
- PySideQTouchEventSequence *release(int touchId, const QPoint &pt, QWidget *widget = nullptr)
- {
- QTouchEvent::TouchPoint &p = point(touchId);
- p.setScreenPos(mapToScreen(widget, pt));
- p.setState(Qt::TouchPointReleased);
- return this;
- }
-#endif
-
- void commit(bool processEvents = true)
- {
- if (!points.isEmpty()) {
- if (targetWindow)
- {
- qt_handleTouchEvent(targetWindow, device, points.values());
- }
-#ifdef QT_WIDGETS_LIB
- else if (targetWidget)
- {
- qt_handleTouchEvent(targetWidget->windowHandle(), device, points.values());
- }
-#endif
- }
- if (processEvents)
- QCoreApplication::processEvents();
- previousPoints = points;
- points.clear();
- }
-
-private:
-#ifdef QT_WIDGETS_LIB
- PySideQTouchEventSequence(QWidget *widget, QTouchDevice *aDevice, bool autoCommit)
- : targetWidget(widget), targetWindow(0), device(aDevice), commitWhenDestroyed(autoCommit)
- {
- }
-#endif
- PySideQTouchEventSequence(QWindow *window, QTouchDevice *aDevice, bool autoCommit)
- :
-#ifdef QT_WIDGETS_LIB
- targetWidget(0),
-#endif
- targetWindow(window), device(aDevice), commitWhenDestroyed(autoCommit)
- {
- }
-
- QTouchEvent::TouchPoint &point(int touchId)
- {
- if (!points.contains(touchId))
- points[touchId] = QTouchEvent::TouchPoint(touchId);
- return points[touchId];
- }
-
- QTouchEvent::TouchPoint &pointOrPreviousPoint(int touchId)
- {
- if (!points.contains(touchId)) {
- if (previousPoints.contains(touchId))
- points[touchId] = previousPoints.value(touchId);
- else
- points[touchId] = QTouchEvent::TouchPoint(touchId);
- }
- return points[touchId];
- }
-
-#ifdef QT_WIDGETS_LIB
- QPoint mapToScreen(QWidget *widget, const QPoint &pt)
- {
- if (widget)
- return widget->mapToGlobal(pt);
- return targetWidget ? targetWidget->mapToGlobal(pt) : pt;
- }
-#endif
- QPoint mapToScreen(QWindow *window, const QPoint &pt)
- {
- if(window)
- return window->mapToGlobal(pt);
- return targetWindow ? targetWindow->mapToGlobal(pt) : pt;
- }
-
- QMap<int, QTouchEvent::TouchPoint> previousPoints;
- QMap<int, QTouchEvent::TouchPoint> points;
-#ifdef QT_WIDGETS_LIB
- QWidget *targetWidget;
-#endif
- QWindow *targetWindow;
- QTouchDevice *device;
- bool commitWhenDestroyed;
-#ifdef QT_WIDGETS_LIB
- friend PySideQTouchEventSequence *generateTouchEvent(QWidget *, QTouchDevice *, bool);
-#endif
- friend PySideQTouchEventSequence *generateTouchEvent(QWindow *, QTouchDevice *, bool);
- };
-
-#ifdef QT_WIDGETS_LIB
- inline
- PySideQTouchEventSequence *generateTouchEvent(QWidget *widget,
- QTouchDevice *device,
- bool autoCommit = true)
- {
- return new PySideQTouchEventSequence(widget, device, autoCommit);
- }
-#endif
- inline
- PySideQTouchEventSequence *generateTouchEvent(QWindow *window,
- QTouchDevice *device,
- bool autoCommit = true)
- {
- return new PySideQTouchEventSequence(window, device, autoCommit);
- }
-
-}
-
-QT_END_NAMESPACE
-
-#endif // PYSIDEQTESTTOUCH_H
diff --git a/sources/pyside2/PySide2/pysidewtypes.h b/sources/pyside2/PySide2/pysidewtypes.h
deleted file mode 100644
index e14727427..000000000
--- a/sources/pyside2/PySide2/pysidewtypes.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef __PYSIDEWTYPES__
-#define __PYSIDEWTYPES__
-
-typedef struct HWND__ *HWND;
-typedef unsigned UINT;
-typedef long LONG;
-typedef unsigned long DWORD;
-typedef UINT WPARAM;
-typedef LONG LPARAM;
-
-struct POINT
-{
- LONG x;
- LONG y;
-};
-
-struct MSG
-{
- HWND hwnd;
- UINT message;
- WPARAM wParam;
- LPARAM lParam;
- DWORD time;
- POINT pt;
-};
-
-#endif
diff --git a/sources/pyside2/PySide2/qpytextobject.cpp b/sources/pyside2/PySide2/qpytextobject.cpp
deleted file mode 100644
index 9bab45e30..000000000
--- a/sources/pyside2/PySide2/qpytextobject.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "qpytextobject.h"
-
-/*!
- \class QPyTextObject
- \brief Workaround to make possible use QTextObjectInterface on PySide.
- \ingroup richtext-processing
- Due to the technical details of how to bind C++ classes to Python, you need to use this class when you need to implement
- your own QTextObjectInterface rather than create a class inheriting from QObject and QTextObjectInterface.
-
- \sa QTextObjectInterface
-*/
diff --git a/sources/pyside2/PySide2/qpytextobject.h b/sources/pyside2/PySide2/qpytextobject.h
deleted file mode 100644
index 1968ac385..000000000
--- a/sources/pyside2/PySide2/qpytextobject.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QPYTEXTOBJECT
-#define QPYTEXTOBJECT
-
-#include <QtCore/QObject>
-#include <QtGui/QTextObjectInterface>
-
-// Qt5: no idea why this definition is not found automatically! It should come
-// from <QTextObjectInterface> which resolves to qabstracttextdocumentlayout.h
-#ifdef Q_MOC_RUN
-Q_DECLARE_INTERFACE(QTextObjectInterface, "org.qt-project.Qt.QTextObjectInterface")
-#endif
-
-class QPyTextObject : public QObject, public QTextObjectInterface
-{
- Q_OBJECT
- Q_INTERFACES(QTextObjectInterface)
-public:
- QPyTextObject(QObject *parent = nullptr) : QObject(parent) {}
- void drawObject(QPainter *painter, const QRectF &rect, QTextDocument *doc,
- int posInDocument, const QTextFormat &format) = 0;
- QSizeF intrinsicSize(QTextDocument *doc, int posInDocument, const QTextFormat &format) = 0;
-};
-#endif
-
-
diff --git a/sources/pyside2/PySide2/qt.conf.in b/sources/pyside2/PySide2/qt.conf.in
deleted file mode 100644
index ff5b0a30e..000000000
--- a/sources/pyside2/PySide2/qt.conf.in
+++ /dev/null
@@ -1,2 +0,0 @@
-[Paths]
-Prefix = @QT_CONF_PREFIX@
diff --git a/sources/pyside2/PySide2/support/__init__.py b/sources/pyside2/PySide2/support/__init__.py
deleted file mode 100644
index 8764fb5cb..000000000
--- a/sources/pyside2/PySide2/support/__init__.py
+++ /dev/null
@@ -1,42 +0,0 @@
-#############################################################################
-##
-## Copyright (C) 2017 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of Qt for Python.
-##
-## $QT_BEGIN_LICENSE:LGPL$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## GNU Lesser General Public License Usage
-## Alternatively, this file may be used under the terms of the GNU Lesser
-## General Public License version 3 as published by the Free Software
-## Foundation and appearing in the file LICENSE.LGPL3 included in the
-## packaging of this file. Please review the following information to
-## ensure the GNU Lesser General Public License version 3 requirements
-## will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-##
-## GNU General Public License Usage
-## Alternatively, this file may be used under the terms of the GNU
-## General Public License version 2.0 or (at your option) the GNU General
-## Public license version 3 or any later version approved by the KDE Free
-## Qt Foundation. The licenses are as published by the Free Software
-## Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-## included in the packaging of this file. Please review the following
-## information to ensure the GNU General Public License requirements will
-## be met: https://www.gnu.org/licenses/gpl-2.0.html and
-## https://www.gnu.org/licenses/gpl-3.0.html.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
-
-from shiboken2 import VoidPtr
-
-#eof
diff --git a/sources/pyside2/PySide2/support/deprecated.py b/sources/pyside2/PySide2/support/deprecated.py
deleted file mode 100644
index 57f33d9e2..000000000
--- a/sources/pyside2/PySide2/support/deprecated.py
+++ /dev/null
@@ -1,80 +0,0 @@
-# This Python file uses the following encoding: utf-8
-#############################################################################
-##
-## Copyright (C) 2019 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of Qt for Python.
-##
-## $QT_BEGIN_LICENSE:LGPL$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## GNU Lesser General Public License Usage
-## Alternatively, this file may be used under the terms of the GNU Lesser
-## General Public License version 3 as published by the Free Software
-## Foundation and appearing in the file LICENSE.LGPL3 included in the
-## packaging of this file. Please review the following information to
-## ensure the GNU Lesser General Public License version 3 requirements
-## will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-##
-## GNU General Public License Usage
-## Alternatively, this file may be used under the terms of the GNU
-## General Public License version 2.0 or (at your option) the GNU General
-## Public license version 3 or any later version approved by the KDE Free
-## Qt Foundation. The licenses are as published by the Free Software
-## Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-## included in the packaging of this file. Please review the following
-## information to ensure the GNU General Public License requirements will
-## be met: https://www.gnu.org/licenses/gpl-2.0.html and
-## https://www.gnu.org/licenses/gpl-3.0.html.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
-
-from __future__ import print_function, absolute_import
-
-"""
-deprecated.py
-
-This module contains deprecated things that are removed from the interface.
-They are implemented in Python again, together with a deprecation warning.
-
-Functions that are to be called for
- PySide2.<module> must be named
- fix_for_<module> .
-
-Note that this fixing code is run after all initializations, but before the
-import is finished. But that is no problem since the module is passed in.
-"""
-
-import warnings
-from textwrap import dedent
-
-
-class PySideDeprecationWarningRemovedInQt6(Warning):
- pass
-
-
-def constData(self):
- cls = self.__class__
- name = cls.__qualname__
- warnings.warn(dedent("""
- {name}.constData is unpythonic and will be removed in Qt For Python 6.0 .
- Please use {name}.data instead."""
- .format(**locals())), PySideDeprecationWarningRemovedInQt6, stacklevel=2)
- return cls.data(self)
-
-
-def fix_for_QtGui(QtGui):
- for name, cls in QtGui.__dict__.items():
- if name.startswith("QMatrix") and "data" in cls.__dict__:
- cls.constData = constData
-
-# eof
diff --git a/sources/pyside2/PySide2/support/generate_pyi.py b/sources/pyside2/PySide2/support/generate_pyi.py
deleted file mode 100644
index af9f4d4f5..000000000
--- a/sources/pyside2/PySide2/support/generate_pyi.py
+++ /dev/null
@@ -1,327 +0,0 @@
-# This Python file uses the following encoding: utf-8
-#############################################################################
-##
-## Copyright (C) 2020 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of Qt for Python.
-##
-## $QT_BEGIN_LICENSE:LGPL$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## GNU Lesser General Public License Usage
-## Alternatively, this file may be used under the terms of the GNU Lesser
-## General Public License version 3 as published by the Free Software
-## Foundation and appearing in the file LICENSE.LGPL3 included in the
-## packaging of this file. Please review the following information to
-## ensure the GNU Lesser General Public License version 3 requirements
-## will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-##
-## GNU General Public License Usage
-## Alternatively, this file may be used under the terms of the GNU
-## General Public License version 2.0 or (at your option) the GNU General
-## Public license version 3 or any later version approved by the KDE Free
-## Qt Foundation. The licenses are as published by the Free Software
-## Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-## included in the packaging of this file. Please review the following
-## information to ensure the GNU General Public License requirements will
-## be met: https://www.gnu.org/licenses/gpl-2.0.html and
-## https://www.gnu.org/licenses/gpl-3.0.html.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
-
-from __future__ import print_function, absolute_import, unicode_literals
-
-"""
-generate_pyi.py
-
-This script generates the .pyi files for all PySide modules.
-"""
-
-import sys
-import os
-import io
-import re
-import subprocess
-import argparse
-from contextlib import contextmanager
-from textwrap import dedent
-import logging
-
-
-# Make sure not to get .pyc in Python2.
-sourcepath = os.path.splitext(__file__)[0] + ".py"
-
-# Can we use forward references?
-USE_PEP563 = sys.version_info[:2] >= (3, 7)
-
-indent = " " * 4
-is_py3 = sys.version_info[0] == 3
-is_ci = os.environ.get("QTEST_ENVIRONMENT", "") == "ci"
-is_debug = is_ci or os.environ.get("QTEST_ENVIRONMENT")
-
-logging.basicConfig(level=logging.DEBUG if is_debug else logging.INFO)
-logger = logging.getLogger("generate_pyi")
-
-
-class Writer(object):
- def __init__(self, outfile):
- self.outfile = outfile
- self.history = [True, True]
-
- def print(self, *args, **kw):
- # controlling too much blank lines
- if self.outfile:
- if args == () or args == ("",):
- # Python 2.7 glitch: Empty tuples have wrong encoding.
- # But we use that to skip too many blank lines:
- if self.history[-2:] == [True, True]:
- return
- print("", file=self.outfile, **kw)
- self.history.append(True)
- else:
- print(*args, file=self.outfile, **kw)
- self.history.append(False)
-
-
-class Formatter(Writer):
- """
- Formatter is formatting the signature listing of an enumerator.
-
- It is written as context managers in order to avoid many callbacks.
- The separation in formatter and enumerator is done to keep the
- unrelated tasks of enumeration and formatting apart.
- """
- def __init__(self, *args):
- Writer.__init__(self, *args)
- # patching __repr__ to disable the __repr__ of typing.TypeVar:
- """
- def __repr__(self):
- if self.__covariant__:
- prefix = '+'
- elif self.__contravariant__:
- prefix = '-'
- else:
- prefix = '~'
- return prefix + self.__name__
- """
- def _typevar__repr__(self):
- return "typing." + self.__name__
- typing.TypeVar.__repr__ = _typevar__repr__
-
- # Adding a pattern to substitute "Union[T, NoneType]" by "Optional[T]"
- # I tried hard to replace typing.Optional by a simple override, but
- # this became _way_ too much.
- # See also the comment in layout.py .
- brace_pat = build_brace_pattern(3)
- pattern = (r"\b Union \s* \[ \s* {brace_pat} \s*, \s* NoneType \s* \]"
- .format(**locals()))
- replace = r"Optional[\1]"
- optional_searcher = re.compile(pattern, flags=re.VERBOSE)
- def optional_replacer(source):
- return optional_searcher.sub(replace, str(source))
- self.optional_replacer = optional_replacer
- # self.level is maintained by enum_sig.py
- # self.after_enum() is a one-shot set by enum_sig.py .
-
- @contextmanager
- def module(self, mod_name):
- self.mod_name = mod_name
- self.print("# Module", mod_name)
- self.print("import PySide2")
- from PySide2.support.signature import typing
- self.print("try:")
- self.print(" import typing")
- self.print("except ImportError:")
- self.print(" from PySide2.support.signature import typing")
- self.print("from PySide2.support.signature.mapping import (")
- self.print(" Virtual, Missing, Invalid, Default, Instance)")
- self.print()
- self.print("class Object(object): pass")
- self.print()
- self.print("import shiboken2 as Shiboken")
- self.print("Shiboken.Object = Object")
- self.print()
- # This line will be replaced by the missing imports postprocess.
- self.print("IMPORTS")
- yield
-
- @contextmanager
- def klass(self, class_name, class_str):
- spaces = indent * self.level
- while "." in class_name:
- class_name = class_name.split(".", 1)[-1]
- class_str = class_str.split(".", 1)[-1]
- self.print()
- if self.level == 0:
- self.print()
- here = self.outfile.tell()
- if self.have_body:
- self.print("{spaces}class {class_str}:".format(**locals()))
- else:
- self.print("{spaces}class {class_str}: ...".format(**locals()))
- yield
-
- @contextmanager
- def function(self, func_name, signature, modifier=None):
- if self.after_enum() or func_name == "__init__":
- self.print()
- key = func_name
- spaces = indent * self.level
- if type(signature) == type([]):
- for sig in signature:
- self.print('{spaces}@typing.overload'.format(**locals()))
- self._function(func_name, sig, modifier, spaces)
- else:
- self._function(func_name, signature, modifier, spaces)
- if func_name == "__init__":
- self.print()
- yield key
-
- def _function(self, func_name, signature, modifier, spaces):
- if modifier:
- self.print('{spaces}@{modifier}'.format(**locals()))
- signature = self.optional_replacer(signature)
- self.print('{spaces}def {func_name}{signature}: ...'.format(**locals()))
-
- @contextmanager
- def enum(self, class_name, enum_name, value):
- spaces = indent * self.level
- hexval = hex(value)
- self.print("{spaces}{enum_name:25}: {class_name} = ... # {hexval}".format(**locals()))
- yield
-
-
-def get_license_text():
- with io.open(sourcepath) as f:
- lines = f.readlines()
- license_line = next((lno for lno, line in enumerate(lines)
- if "$QT_END_LICENSE$" in line))
- return "".join(lines[:license_line + 3])
-
-
-def find_imports(text):
- return [imp for imp in PySide2.__all__ if imp + "." in text]
-
-
-def generate_pyi(import_name, outpath, options):
- """
- Generates a .pyi file.
- """
- plainname = import_name.split(".")[-1]
- outfilepath = os.path.join(outpath, plainname + ".pyi")
- top = __import__(import_name)
- obj = getattr(top, plainname)
- if not getattr(obj, "__file__", None) or os.path.isdir(obj.__file__):
- raise ModuleNotFoundError("We do not accept a namespace as module "
- "{plainname}".format(**locals()))
- module = sys.modules[import_name]
-
- outfile = io.StringIO()
- fmt = Formatter(outfile)
- fmt.print(get_license_text()) # which has encoding, already
- need_imports = not USE_PEP563
- if USE_PEP563:
- fmt.print("from __future__ import annotations")
- fmt.print()
- fmt.print(dedent('''\
- """
- This file contains the exact signatures for all functions in module
- {import_name}, except for defaults which are replaced by "...".
- """
- '''.format(**locals())))
- HintingEnumerator(fmt).module(import_name)
- fmt.print()
- fmt.print("# eof")
- # Postprocess: resolve the imports
- with open(outfilepath, "w") as realfile:
- wr = Writer(realfile)
- outfile.seek(0)
- while True:
- line = outfile.readline()
- if not line:
- break
- line = line.rstrip()
- # we remove the IMPORTS marker and insert imports if needed
- if line == "IMPORTS":
- if need_imports:
- for mod_name in find_imports(outfile.getvalue()):
- imp = "PySide2." + mod_name
- if imp != import_name:
- wr.print("import " + imp)
- wr.print("import " + import_name)
- wr.print()
- wr.print()
- else:
- wr.print(line)
- logger.info("Generated: {outfilepath}".format(**locals()))
- if is_py3 and (options.check or is_ci):
- # Python 3: We can check the file directly if the syntax is ok.
- subprocess.check_output([sys.executable, outfilepath])
-
-
-def generate_all_pyi(outpath, options):
- ps = os.pathsep
- if options.sys_path:
- # make sure to propagate the paths from sys_path to subprocesses
- sys_path = [os.path.normpath(_) for _ in options.sys_path]
- sys.path[0:0] = sys_path
- pypath = ps.join(sys_path)
- os.environ["PYTHONPATH"] = pypath
-
- # now we can import
- global PySide2, inspect, typing, HintingEnumerator, build_brace_pattern
- import PySide2
- from PySide2.support.signature import inspect, typing
- from PySide2.support.signature.lib.enum_sig import HintingEnumerator
- from PySide2.support.signature.lib.tool import build_brace_pattern
-
- # propagate USE_PEP563 to the mapping module.
- # Perhaps this can be automated?
- PySide2.support.signature.mapping.USE_PEP563 = USE_PEP563
-
- outpath = outpath or os.path.dirname(PySide2.__file__)
- name_list = PySide2.__all__ if options.modules == ["all"] else options.modules
- errors = ", ".join(set(name_list) - set(PySide2.__all__))
- if errors:
- raise ImportError("The module(s) '{errors}' do not exist".format(**locals()))
- quirk1, quirk2 = "QtMultimedia", "QtMultimediaWidgets"
- if name_list == [quirk1]:
- logger.debug("Note: We must defer building of {quirk1}.pyi until {quirk2} "
- "is available".format(**locals()))
- name_list = []
- elif name_list == [quirk2]:
- name_list = [quirk1, quirk2]
- for mod_name in name_list:
- import_name = "PySide2." + mod_name
- generate_pyi(import_name, outpath, options)
-
-
-if __name__ == "__main__":
- parser = argparse.ArgumentParser(
- description="This script generates the .pyi file for all PySide modules.")
- parser.add_argument("modules", nargs="+",
- help="'all' or the names of modules to build (QtCore QtGui etc.)")
- parser.add_argument("--quiet", action="store_true", help="Run quietly")
- parser.add_argument("--check", action="store_true", help="Test the output if on Python 3")
- parser.add_argument("--outpath",
- help="the output directory (default = binary location)")
- parser.add_argument("--sys-path", nargs="+",
- help="a list of strings prepended to sys.path")
- options = parser.parse_args()
- if options.quiet:
- logger.setLevel(logging.WARNING)
- outpath = options.outpath
- if outpath and not os.path.exists(outpath):
- os.makedirs(outpath)
- logger.info("+++ Created path {outpath}".format(**locals()))
- generate_all_pyi(outpath, options=options)
-# eof
diff --git a/sources/pyside2/PySide2/templates/core_common.xml b/sources/pyside2/PySide2/templates/core_common.xml
deleted file mode 100644
index 6d02428ad..000000000
--- a/sources/pyside2/PySide2/templates/core_common.xml
+++ /dev/null
@@ -1,393 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem>
-
- <template name="tuple_ok_retval">
- %PYARG_0 = PyTuple_New(2);
- PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[bool](ok_));
- PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[%RETURN_TYPE](retval_));
- </template>
-
- <template name="bool*_fix,arg">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&amp;ok_, %2);
- <insert-template name="tuple_ok_retval"/>
- </template>
-
- <template name="bool*_fix,arg,arg,arg,arg">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&amp;ok_, %2, %3, %4, %5);
- <insert-template name="tuple_ok_retval"/>
- </template>
-
- <!-- Templates to fix bool* parameters -->
- <template name="tuple_retval_ok">
- %PYARG_0 = PyTuple_New(2);
- PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](retval_));
- PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[bool](ok_));
- </template>
-
- <template name="fix_bool*">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&amp;ok_);
- <insert-template name="tuple_retval_ok"/>
- </template>
-
- <template name="fix_args,bool*">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES, &amp;ok_);
- <insert-template name="tuple_retval_ok"/>
- </template>
-
- <template name="fix_args,arg,bool*">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, &amp;ok_);
- <insert-template name="tuple_retval_ok"/>
- </template>
-
- <template name="fix_arg,bool*,arg">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, &amp;ok_, %3);
- <insert-template name="tuple_retval_ok"/>
- </template>
-
- <template name="fix_bool*,arg">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&amp;ok_, %2);
- <insert-template name="tuple_retval_ok"/>
- </template>
-
- <template name="fix_bool*,arg,arg">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&amp;ok_, %2, %3);
- <insert-template name="tuple_retval_ok"/>
- </template>
-
- <template name="fix_bool*,arg,arg,arg">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&amp;ok_, %2, %3, %4);
- <insert-template name="tuple_retval_ok"/>
- </template>
-
- <template name="fix_bool*,arg,arg,arg,arg">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&amp;ok_, %2, %3, %4, %5);
- <insert-template name="tuple_retval_ok"/>
- </template>
-
- <template name="fix_arg,arg,arg,arg,arg,arg,arg,bool*,arg">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, %5, %6, %7, &amp;ok_, %9);
- <insert-template name="tuple_retval_ok"/>
- </template>
-
- <template name="fix_arg,arg,arg,arg,arg,arg,arg,bool*,arg,arg">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, %5, %6, %7, &amp;ok_, %9, %10);
- <insert-template name="tuple_retval_ok"/>
- </template>
-
- <template name="fix_arg,arg,arg,arg,arg,arg,bool*,arg">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, %5, %6, &amp;ok_, %8);
- <insert-template name="tuple_retval_ok"/>
- </template>
-
- <template name="fix_arg,arg,arg,arg,arg,bool*,arg">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, %5, &amp;ok_, %7);
- <insert-template name="tuple_retval_ok"/>
- </template>
-
- <template name="fix_arg,arg,arg,arg,bool*,arg,arg">
- bool ok_;
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, &amp;ok_, %6, %7);
- <insert-template name="tuple_retval_ok"/>
- </template>
-
- <template name="fix_char*">
- char val_{};
- %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&amp;val_);
- %PYARG_0 = PyTuple_New(2);
- PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](retval_));
- PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[char](val_));
- </template>
-
- <template name="tuple_abcd_same_type">
- %PYARG_0 = PyTuple_New(4);
- PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[$TYPE](a));
- PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[$TYPE](b));
- PyTuple_SET_ITEM(%PYARG_0, 2, %CONVERTTOPYTHON[$TYPE](c));
- PyTuple_SET_ITEM(%PYARG_0, 3, %CONVERTTOPYTHON[$TYPE](d));
- </template>
-
- <template name="fix_number*,number*,number*,number*">
- $TYPE a, b, c, d;
- %CPPSELF->::%TYPE::%FUNCTION_NAME(&amp;a, &amp;b, &amp;c, &amp;d);
- <insert-template name="tuple_abcd_same_type"/>
- </template>
-
- <template name="fix_number*,number*,number*,number*,args">
- $TYPE a, b, c, d;
- %CPPSELF->::%TYPE::%FUNCTION_NAME(&amp;a, &amp;b, &amp;c, &amp;d, %ARGUMENT_NAMES);
- <insert-template name="tuple_abcd_same_type"/>
- </template>
-
- <template name="fix_native_return_number*,number*,number*,number*">
- PyObject* _obj = %PYARG_0.object();
- if (!PySequence_Check(_obj)
- || PySequence_Fast_GET_SIZE(_obj) != 4
- || !SbkNumber_Check(PySequence_Fast_GET_ITEM(_obj, 0))
- || !SbkNumber_Check(PySequence_Fast_GET_ITEM(_obj, 1))
- || !SbkNumber_Check(PySequence_Fast_GET_ITEM(_obj, 2))
- || !SbkNumber_Check(PySequence_Fast_GET_ITEM(_obj, 3))) {
- PyErr_SetString(PyExc_TypeError, "Sequence of 4 numbers expected");
- } else {
- *%1 = %CONVERTTOCPP[$TYPE](PySequence_Fast_GET_ITEM(_obj, 0));
- *%2 = %CONVERTTOCPP[$TYPE](PySequence_Fast_GET_ITEM(_obj, 1));
- *%3 = %CONVERTTOCPP[$TYPE](PySequence_Fast_GET_ITEM(_obj, 2));
- *%4 = %CONVERTTOCPP[$TYPE](PySequence_Fast_GET_ITEM(_obj, 3));
- }
- </template>
-
- <template name="fix_number*,number*,number*,number*,number*">
- $TYPE a, b, c, d, e;
- %CPPSELF.%FUNCTION_NAME(&amp;a, &amp;b, &amp;c, &amp;d, &amp;e);
- %PYARG_0 = PyTuple_New(5);
- PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[$TYPE](a));
- PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[$TYPE](b));
- PyTuple_SET_ITEM(%PYARG_0, 2, %CONVERTTOPYTHON[$TYPE](c));
- PyTuple_SET_ITEM(%PYARG_0, 3, %CONVERTTOPYTHON[$TYPE](d));
- PyTuple_SET_ITEM(%PYARG_0, 4, %CONVERTTOPYTHON[$TYPE](e));
- </template>
-
- <template name="fix_args,number*,number*">
- $TYPE a, b;
- %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES, &amp;a, &amp;b);
- %PYARG_0 = PyTuple_New(2);
- PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[$TYPE](a));
- PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[$TYPE](b));
- </template>
-
- <template name="fix_arg,int*,int*">
- %RETURN_TYPE _ret;
- int a, b;
- _ret = %CPPSELF.%FUNCTION_NAME(%1, &amp;a, &amp;b);
- %PYARG_0 = PyTuple_New(3);
- PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](_ret));
- PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[int](a));
- PyTuple_SET_ITEM(%PYARG_0, 2, %CONVERTTOPYTHON[int](b));
- </template>
-
- <template name="return_tuple_QValidator_QString_int">
- %RETURN_TYPE retval_ = %RETURN_TYPE(%CPPSELF.%FUNCTION_NAME(%1, %2));
- %PYARG_0 = PyTuple_New(3);
- PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](retval_));
- PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[%ARG1_TYPE](%1));
- PyTuple_SET_ITEM(%PYARG_0, 2, %CONVERTTOPYTHON[%ARG2_TYPE](%2));
- </template>
-
- <template name="repr_code">
- QString format = QString::asprintf("%s(%REPR_FORMAT)",
- Py_TYPE(%PYSELF)->tp_name, %REPR_ARGS);
- %PYARG_0 = Shiboken::String::fromCString(qPrintable(format));
- </template>
-
- <template name="return_internal_pointer">
- %PYARG_0 = reinterpret_cast&lt;PyObject*>(%CPPSELF.%FUNCTION_NAME());
- if (!%PYARG_0)
- %PYARG_0 = Py_None;
- Py_INCREF(%PYARG_0);
- </template>
-
- <!-- Helpers for modifying "bool nativeEventFilter(QByteArray, void*, long *result)"
- to return a tuple of bool,long -->
- <template name="return_native_eventfilter_conversion_variables">
- long resultVar{0};
- long *%out = &amp;resultVar;
- </template>
- <template name="return_native_eventfilter_conversion">
- %RETURN_TYPE %out = false;
- if (PySequence_Check(%PYARG_0) &amp;&amp; (PySequence_Size(%PYARG_0) == 2)) {
- Shiboken::AutoDecRef pyItem(PySequence_GetItem(%PYARG_0, 0));
- %out = %CONVERTTOCPP[bool](pyItem);
- if (result) {
- Shiboken::AutoDecRef pyResultItem(PySequence_GetItem(pyResult, 1));
- *result = %CONVERTTOCPP[long](pyResultItem);
- }
- }
- </template>
-
- <template name="return_native_eventfilter">
- %PYARG_0 = PyTuple_New(2);
- PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](%0));
- PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[long](*result_out));
- </template>
-
- <!-- templates for __reduce__ -->
- <template name="reduce_code">
- %PYARG_0 = Py_BuildValue("(N(%REDUCE_FORMAT))", PyObject_Type(%PYSELF), %REDUCE_ARGS);
- </template>
-
- <!-- Replace '#' for the argument number you want. -->
- <template name="return_argument">
- Py_INCREF(%PYARG_#);
- %PYARG_0 = %PYARG_#;
- </template>
-
- <!-- Iterator -->
- <template name="__iter__">
- Py_INCREF(%PYSELF);
- %PYARG_0 = %PYSELF;
- </template>
-
- <template name="to_tuple">
- %PYARG_0 = Py_BuildValue("%TT_FORMAT", %TT_ARGS);
- </template>
-
- <template name="cpplist_to_pylist_conversion">
- PyObject* %out = PyList_New((int) %in.size());
- %INTYPE::const_iterator it = %in.begin();
- for (int idx = 0; it != %in.end(); ++it, ++idx) {
- %INTYPE_0 cppItem(*it);
- PyList_SET_ITEM(%out, idx, %CONVERTTOPYTHON[%INTYPE_0](cppItem));
- }
- return %out;
- </template>
-
- <template name="pyseq_to_cpplist_conversion">
- // PYSIDE-795: Turn all sequences into iterables.
- Shiboken::AutoDecRef it(PyObject_GetIter(%in));
- PyObject *(*iternext)(PyObject *) = *Py_TYPE(it)->tp_iternext;
- for (;;) {
- Shiboken::AutoDecRef pyItem(iternext(it));
- if (pyItem.isNull()) {
- if (PyErr_Occurred() &amp;&amp; PyErr_ExceptionMatches(PyExc_StopIteration))
- PyErr_Clear();
- break;
- }
- %OUTTYPE_0 cppItem = %CONVERTTOCPP[%OUTTYPE_0](pyItem);
- %out &lt;&lt; cppItem;
- }
- </template>
-
- <template name="cppvector_to_pylist_conversion">
- %INTYPE::size_type vectorSize = %in.size();
- PyObject* %out = PyList_New((int) vectorSize);
- for (%INTYPE::size_type idx = 0; idx &lt; vectorSize; ++idx) {
- %INTYPE_0 cppItem(%in[idx]);
- PyList_SET_ITEM(%out, idx, %CONVERTTOPYTHON[%INTYPE_0](cppItem));
- }
- return %out;
- </template>
-
- <template name="pyseq_to_cppvector_conversion">
- // PYSIDE-795: Turn all sequences into iterables.
- if (PySequence_Check(%in)) {
- int vectorSize = PySequence_Size(%in);
- %out.reserve(vectorSize);
- }
- Shiboken::AutoDecRef it(PyObject_GetIter(%in));
- PyObject *(*iternext)(PyObject *) = *Py_TYPE(it)->tp_iternext;
- for (;;) {
- Shiboken::AutoDecRef pyItem(iternext(it));
- if (pyItem.isNull()) {
- if (PyErr_Occurred() &amp;&amp; PyErr_ExceptionMatches(PyExc_StopIteration))
- PyErr_Clear();
- break;
- }
- %OUTTYPE_0 cppItem = %CONVERTTOCPP[%OUTTYPE_0](pyItem);
- %out.push_back(cppItem);
- }
- </template>
-
- <template name="checkPyCapsuleOrPyCObject_func">
- static bool checkPyCapsuleOrPyCObject(PyObject* pyObj)
- {
- #ifdef IS_PY3K
- return PyCapsule_CheckExact(pyObj);
- #else
- return PyCObject_Check(pyObj);
- #endif
- }
- </template>
-
- <template name="cppmap_to_pymap_conversion">
- PyObject *%out = PyDict_New();
- for (%INTYPE::const_iterator it = %in.begin(), end = %in.end(); it != end; ++it) {
- %INTYPE_0 key = it.key();
- %INTYPE_1 value = it.value();
- PyObject *pyKey = %CONVERTTOPYTHON[%INTYPE_0](key);
- PyObject *pyValue = %CONVERTTOPYTHON[%INTYPE_1](value);
- PyDict_SetItem(%out, pyKey, pyValue);
- Py_DECREF(pyKey);
- Py_DECREF(pyValue);
- }
- return %out;
- </template>
-
- <template name="pydict_to_cppmap_conversion">
- PyObject *key;
- PyObject *value;
- Py_ssize_t pos = 0;
- while (PyDict_Next(%in, &amp;pos, &amp;key, &amp;value)) {
- %OUTTYPE_0 cppKey = %CONVERTTOCPP[%OUTTYPE_0](key);
- %OUTTYPE_1 cppValue = %CONVERTTOCPP[%OUTTYPE_1](value);
- %out.insert(cppKey, cppValue);
- }
- </template>
-
- <template name="pydatetime_importandcheck_function">
- #ifdef IS_PY3K
- #define PySideDateTime_IMPORT PyDateTime_IMPORT
- #else
- #define PySideDateTime_IMPORT \
- (PyDateTimeAPI = (PyDateTime_CAPI*) PyCObject_Import((char*)"datetime", \
- (char*)"datetime_CAPI"))
- #endif
- static bool PyDateTime_ImportAndCheck(PyObject *pyIn) {
- if (!PyDateTimeAPI) PySideDateTime_IMPORT;
- return $DATETIMETYPE_Check(pyIn);
- }
- </template>
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/templates/datavisualization_common.xml b/sources/pyside2/PySide2/templates/datavisualization_common.xml
deleted file mode 100644
index d5434dc75..000000000
--- a/sources/pyside2/PySide2/templates/datavisualization_common.xml
+++ /dev/null
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem>
- <template name="cppqlistofptrtoqvectors_to_py_conversion">
- const int rowCount = %in.size();
- PyObject* %out = PyList_New(rowCount);
- for (int r = 0; r &lt; rowCount; ++r) {
- const QVector&lt;%INTYPE_0&gt; *row = %in.at(r);
- const int columnCount = row->size();
- PyObject *pyRow = PyList_New(columnCount);
- for (int c = 0; c &lt; columnCount; ++c) {
- const %INTYPE_0 &amp;cppItem = row->at(c);
- PyList_SET_ITEM(pyRow, c, %CONVERTTOPYTHON[%INTYPE_0](cppItem));
- }
- PyList_SET_ITEM(%out, r, pyRow);
- }
- return %out;
- </template>
-
- <template name="py_to_cppqlistofptrtoqvectors_conversion">
- const int rowCount = int(PySequence_Size(%in));
- %OUTTYPE &amp;result = %out;
- result.reserve(rowCount);
- for (int r = 0; r &lt; rowCount; ++r) {
- Shiboken::AutoDecRef rowItem(PySequence_GetItem(%in, r));
- const int columnCount = int(PySequence_Size(rowItem));
- QVector&lt;%OUTTYPE_0&gt; *row = new QVector&lt;%OUTTYPE_0&gt;;
- row->reserve(columnCount);
- for (int c = 0; c &lt; columnCount; ++c) {
- Shiboken::AutoDecRef pyItem(PySequence_GetItem(rowItem, c));
- %OUTTYPE_0 v = %CONVERTTOCPP[%OUTTYPE_0](pyItem);
- row->append(v);
- }
- result.append(row);
- }
- </template>
-</typesystem>
diff --git a/sources/pyside2/PySide2/templates/gui_common.xml b/sources/pyside2/PySide2/templates/gui_common.xml
deleted file mode 100644
index a139a5fe9..000000000
--- a/sources/pyside2/PySide2/templates/gui_common.xml
+++ /dev/null
@@ -1,298 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem>
- <template name="QFontCharFix">
- int size = Shiboken::String::len(%PYARG_1);
- if (size == 1) {
- const char *str = Shiboken::String::toCString(%PYARG_1);
- QChar ch(str[0]);
- %RETURN_TYPE %0 = %CPPSELF.%FUNCTION_NAME(ch);
- %PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%0);
- } else {
- PyErr_SetString(PyExc_TypeError, "String must have only one character");
- }
- </template>
-
- <template name="load_xpm">
- Shiboken::AutoDecRef strList(PySequence_Fast(%PYARG_1, "Invalid sequence."));
- int lineCount = PySequence_Fast_GET_SIZE(strList.object());
- for (int line = 0; line &lt; lineCount; ++line) {
- if (!Shiboken::String::check(PySequence_Fast_GET_ITEM(strList.object(), line))) {
- PyErr_SetString(PyExc_TypeError, "The argument must be a sequence of strings.");
- break;
- }
- }
-
- const char **xpm = reinterpret_cast&lt;const char**&gt;(malloc(lineCount * sizeof(const char**)));
- for (int line = 0; line &lt; lineCount; ++line)
- xpm[line] = Shiboken::String::toCString(PySequence_Fast_GET_ITEM(strList.object(), line));
-
- %0 = new %TYPE(xpm);
-
- free(xpm);
- </template>
-
- <template name="qmatrix_map">
- %ARG1_TYPE a, b;
- %CPPSELF.%FUNCTION_NAME(%1, %2, &amp;a, &amp;b);
- %PYARG_0 = PyTuple_New(2);
- PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%ARG1_TYPE](a));
- PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[%ARG1_TYPE](b));
- </template>
-
- <template name="qimage_buffer_constructor">
- auto ptr = reinterpret_cast&lt;uchar*&gt;(Shiboken::Buffer::getPointer(%PYARG_1));
- %0 = new %TYPE(ptr, %ARGS);
- </template>
-
- <template name="qcolor_repr">
- switch(%CPPSELF.spec()) {
- case QColor::Rgb:
- {
- qreal r, g, b, a;
- %CPPSELF.getRgbF(&amp;r, &amp;g, &amp;b, &amp;a);
- QString repr = QString::asprintf("PySide2.QtGui.QColor.fromRgbF(%.6f, %.6f, %.6f, %.6f)", r, g, b, a);
- %PYARG_0 = Shiboken::String::fromCString(qPrintable(repr));
- break;
- }
- case QColor::Hsv:
- {
- qreal h, s, v, a;
- %CPPSELF.getHsvF(&amp;h, &amp;s, &amp;v, &amp;a);
- QString repr = QString::asprintf("PySide2.QtGui.QColor.fromHsvF(%.6f, %.6f, %.6f, %.6f)", h, s, v, a);
- %PYARG_0 = Shiboken::String::fromCString(qPrintable(repr));
- break;
- }
- case QColor::Cmyk:
- {
- qreal c, m, y, k, a;
- %CPPSELF.getCmykF(&amp;c, &amp;m, &amp;y, &amp;k, &amp;a);
- QString repr = QString::asprintf("PySide2.QtGui.QColor.fromCmykF(%.6f, %.6f, %.6f, %.6f, %.6f)", c, m, y, k, a);
- %PYARG_0 = Shiboken::String::fromCString(qPrintable(repr));
- break;
- }
- case QColor::Hsl:
- {
- qreal h, s, l, a;
- %CPPSELF.getHslF(&amp;h, &amp;s, &amp;l, &amp;a);
- QString repr = QString::asprintf("PySide2.QtGui.QColor.fromHslF(%.6f, %.6f, %.6f, %.6f)", h, s, l, a);
- %PYARG_0 = Shiboken::String::fromCString(qPrintable(repr));
- break;
- }
- default:
- {
- %PYARG_0 = Shiboken::String::fromCString("PySide2.QtGui.QColor()");
- }
- }
- </template>
-
- <template name="validator_conversionrule">
- QValidator::State %out;
-
- if (PySequence_Check(%PYARG_0)) {
- Shiboken::AutoDecRef seq(PySequence_Fast(%PYARG_0, 0));
- int size = PySequence_Fast_GET_SIZE(seq.object());
-
- if (size > 1) {
- if (%ISCONVERTIBLE[QString](PySequence_Fast_GET_ITEM(seq.object(), 1)))
- %1 = %CONVERTTOCPP[QString](PySequence_Fast_GET_ITEM(seq.object(), 1));
- else
- qWarning("%TYPE::%FUNCTION_NAME: Second tuple element is not convertible to unicode.");
- }
-
- if (size > 2) {
- if (%ISCONVERTIBLE[int](PySequence_Fast_GET_ITEM(seq.object(), 2)))
- %2 = %CONVERTTOCPP[int](PySequence_Fast_GET_ITEM(seq.object(), 2));
- else
- qWarning("%TYPE::%FUNCTION_NAME: Second tuple element is not convertible to int.");
- }
- %PYARG_0.reset(PySequence_Fast_GET_ITEM(seq.object(), 0));
- Py_INCREF(%PYARG_0); // we need to incref, because "%PYARG_0 = ..." will decref the tuple and the tuple will be decrefed again at the end of this scope.
- }
-
- // check retrun value
- if (%ISCONVERTIBLE[QValidator::State](%PYARG_0)) {
- %out = %CONVERTTOCPP[QValidator::State](%PYARG_0);
- } else {
- PyErr_Format(PyExc_TypeError, "Invalid return value in function %s, expected %s, got %s.",
- "QValidator.validate",
- "PySide2.QtGui.QValidator.State, (PySide2.QtGui.QValidator.State,), (PySide2.QtGui.QValidator.State, unicode) or (PySide2.QtGui.QValidator.State, unicode, int)",
- Py_TYPE(pyResult)->tp_name);
- return QValidator::State();
- }
- </template>
-
- <template name="qpainter_drawlist">
- %CPPSELF.%FUNCTION_NAME(%1.data(), %1.size());
- </template>
-
- <template name="inplace_add">
- *%CPPSELF += %1;
- return %CONVERTTOPYTHON[%RETURN_TYPE](*%CPPSELF);
- </template>
-
- <template name="inplace_sub">
- *%CPPSELF -= %1;
- return %CONVERTTOPYTHON[%RETURN_TYPE](*%CPPSELF);
- </template>
-
- <template name="inplace_mult">
- *%CPPSELF *= %1;
- return %CONVERTTOPYTHON[%RETURN_TYPE](*%CPPSELF);
- </template>
-
- <template name="inplace_div">
- *%CPPSELF /= %1;
- return %CONVERTTOPYTHON[%RETURN_TYPE](*%CPPSELF);
- </template>
-
- <template name="return_QString_native">
- if (%ISCONVERTIBLE[QString](%PYARG_0))
- %1 = %CONVERTTOCPP[QString](%PYARG_0);
- else
- qWarning("%TYPE::%FUNCTION_NAME: Argument is not convertible to unicode.");
- </template>
-
- <template name="repr_code_matrix">
- QByteArray format(Py_TYPE(%PYSELF)->tp_name);
- format += QByteArray("((");
-
- QList&lt; %MATRIX_TYPE &gt; cppArgs;
- %MATRIX_TYPE data[%MATRIX_SIZE];
- %CPPSELF.copyDataTo(data);
- int matrixSize = %MATRIX_SIZE;
- for(int size=0; size &lt; matrixSize; size++) {
- if (size > 0)
- format += ", ";
- format += QByteArray::number(data[size]);
- }
- format += "))";
-
- %PYARG_0 = Shiboken::String::fromStringAndSize(format, format.size());
- </template>
-
- <template name="reduce_code_matrix">
- QList&lt; %MATRIX_TYPE &gt; cppArgs;
- %MATRIX_TYPE data[%MATRIX_SIZE];
- %CPPSELF.copyDataTo(data);
- int matrixSize = %MATRIX_SIZE;
- for(int size=0; size &lt; matrixSize; size++)
- cppArgs.append(data[size]);
-
- PyObject *type = PyObject_Type(%PYSELF);
- PyObject *args = Py_BuildValue("(N)",
- %CONVERTTOPYTHON[QList&lt;%MATRIX_TYPE&gt; ](cppArgs));
- %PYARG_0 = Py_BuildValue("(NN)", type, args);
- </template>
-
- <template name="matrix_data_function">
- const float* data = %CPPSELF.constData();
- PyObject *pyData = PyTuple_New(%MATRIX_SIZE);
- if (data) {
- for(int i=0; i &lt; %MATRIX_SIZE; i++)
- PyTuple_SET_ITEM(pyData, i, %CONVERTTOPYTHON[float](data[i]));
- }
- return pyData;
- </template>
-
- <template name="matrix_constructor">
- // PYSIDE-795: All PySequences can be made iterable with PySequence_Fast.
- Shiboken::AutoDecRef seq(PySequence_Fast(%PYARG_1, "Can't turn into sequence"));
- if (PySequence_Size(seq) == %SIZE) {
- Shiboken::AutoDecRef fast(PySequence_Fast(seq,
- "Failed to parse sequence on %TYPE constructor."));
- float values[%SIZE];
- for(int i=0; i &lt; %SIZE; i++) {
- PyObject *pv = PySequence_Fast_GET_ITEM(fast.object(), i);
- values[i] = %CONVERTTOCPP[float](pv);
- }
- %0 = new %TYPE(values);
- }
- </template>
-
- <template name="fix_args,QRectF*">
- QRectF rect_;
- %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES, &amp;rect_);
- %PYARG_0 = %CONVERTTOPYTHON[QRectF](rect_);
- </template>
-
- <template name="fix_args,QRect*">
- QRect rect_;
- %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES, &amp;rect_);
- %PYARG_0 = %CONVERTTOPYTHON[QRect](rect_);
- </template>
-
- <template name="__next__">
- if (!%CPPSELF.atEnd()) {
- %PYARG_0 = %CONVERTTOPYTHON[%CPPSELF_TYPE](*%CPPSELF);
- ++(*%CPPSELF);
- }
- </template>
-
- <template name="__iter_parent__">
- %CPPSELF_TYPE _tmp = %CPPSELF.begin();
- %PYARG_0 = %CONVERTTOPYTHON[%CPPSELF_TYPE](_tmp);
- </template>
-
- <template name="const_char_pybuffer">
- PyObject *%out = Shiboken::Buffer::newObject(%in, size);
- </template>
-
- <template name="pybuffer_const_char">
- Py_ssize_t bufferLen;
- char *%out = reinterpret_cast&lt;char*&gt;(Shiboken::Buffer::getPointer(%PYARG_1, &amp;bufferLen));
- </template>
-
- <template name="uint_remove">
- uint %out = bufferLen;
- </template>
-
- <template name="pybytes_const_uchar">
- const uchar *%out = reinterpret_cast&lt;const uchar*>(PyBytes_AS_STRING(%PYARG_1));
- </template>
-
- <template name="pybytes_uint">
- uint %out = static_cast&lt;uint>(PyBytes_Size(%PYARG_1));
- </template>
-
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/templates/opengl_common.xml b/sources/pyside2/PySide2/templates/opengl_common.xml
deleted file mode 100644
index ee7b021dd..000000000
--- a/sources/pyside2/PySide2/templates/opengl_common.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem>
- <template name="callArrayFunction">
- Py_ssize_t _size = PySequence_Size(%PYARG_2);
- if (_size) {
- $ATTR_TYPE *_list = new $ATTR_TYPE[_size];
- if (_size) {
- Shiboken::AutoDecRef fast(PySequence_Fast(%PYARG_2,
- "Failed to parse sequence with type %VECTOR_TYPE."));
- for(Py_ssize_t i=0; i &lt; _size; i++) {
- PyObject* pv = PySequence_Fast_GET_ITEM(fast.object(), i);
- _list[i] = %CONVERTTOCPP[$ATTR_TYPE](pv);
- }
- }
- %CPPSELF.%FUNCTION_NAME(%1, _list, $ARG0);
- delete[] _list;
- } else {
- %CPPSELF.%FUNCTION_NAME(%1, ($ATTR_TYPE*)nullptr, $ARG1);
- }
- </template>
-</typesystem>
diff --git a/sources/pyside2/PySide2/templates/openglfunctions_common.xml b/sources/pyside2/PySide2/templates/openglfunctions_common.xml
deleted file mode 100644
index 117229a29..000000000
--- a/sources/pyside2/PySide2/templates/openglfunctions_common.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem>
- <template name="glGetString_return_QString">
- const GLubyte *us = %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES);
- const QString s = QString::fromLocal8Bit(reinterpret_cast&lt;const char *&gt;(us));
- %PYARG_0 = %CONVERTTOPYTHON[QString](s);
- </template>
-</typesystem>
diff --git a/sources/pyside2/PySide2/templates/webkitwidgets_common.xml b/sources/pyside2/PySide2/templates/webkitwidgets_common.xml
deleted file mode 100644
index 9d0c8e587..000000000
--- a/sources/pyside2/PySide2/templates/webkitwidgets_common.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem>
- <template name="qwebpage_extension_argument_conversion">
- PyObject* %out = 0;
- // Cast the parameters according to the extension type
- if (extension == QWebPage::ChooseMultipleFilesExtension) {
- const ChooseMultipleFilesExtension$TYPE_SUFFIX* _in = reinterpret_cast&lt;const ChooseMultipleFilesExtension$TYPE_SUFFIX*>(%in);
- %out = %CONVERTTOPYTHON[const QWebPage::ChooseMultipleFilesExtension$TYPE_SUFFIX*](_in);
- } else if (extension == QWebPage::ErrorPageExtension) {
- const auto _in = reinterpret_cast&lt;const ErrorPageExtension$TYPE_SUFFIX*>(%in);
- %out = %CONVERTTOPYTHON[const QWebPage::ErrorPageExtension$TYPE_SUFFIX*](_in);
- }
- </template>
-
- <template name="qstring_remove">
- QString _local;
- QString* %4 = &amp;_local;
- </template>
-
- <template name="pysequence_qstring">
- Shiboken::AutoDecRef pyRes(PySequence_GetItem(%PYARG_0, 0));
- Shiboken::AutoDecRef pyStr(PySequence_GetItem(%PYARG_0, 1));
- %RETURN_TYPE %out = %CONVERTTOCPP[%RETURN_TYPE](pyRes);
- *%4 = %CONVERTTOCPP[QString](pyStr);
- </template>
-
- <template name="qstring_pytuple">
- %PYARG_0 = PyTuple_New(2);
- PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](%0));
- PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[QString](*%4));
- </template>
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/templates/widgets_common.xml b/sources/pyside2/PySide2/templates/widgets_common.xml
deleted file mode 100644
index 9ce01e79a..000000000
--- a/sources/pyside2/PySide2/templates/widgets_common.xml
+++ /dev/null
@@ -1,91 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem>
-
- <template name="replace_child">
- $CHILD_TYPE* oldChild = %CPPSELF.$FUNCTION_GET_OLD();
- if (oldChild &amp;&amp; (oldChild != $CPPARG)) {
- Shiboken::AutoDecRef pyChild(%CONVERTTOPYTHON[$CHILD_TYPE*](oldChild));
- Shiboken::Object::setParent(0, pyChild);
- Shiboken::Object::releaseOwnership(pyChild);
- }
- Shiboken::Object::setParent(%PYSELF, $PYARG);
- </template>
-
- <template name="qgraphicsitem_pysequence">
- int numItems = PySequence_Size(%PYARG_1);
- Shiboken::AutoArrayPointer&lt;QGraphicsItem*&gt; %out(numItems);
- for (int i=0; i &lt; numItems; i++) {
- %out[i] = %CONVERTTOCPP[QGraphicsItem*](PySequence_Fast_GET_ITEM(%PYARG_1, i));
- }
- </template>
-
- <template name="qgraphicsitem_pyobject">
- Shiboken::AutoDecRef object(PyList_New(0));
- for (int i=0, max=numItems; i &lt; max; i++) {
- PyList_Append(object, %CONVERTTOPYTHON[QGraphicsItem*](%in[i]));
- }
- PyObject *%out = object.object();
- </template>
-
- <template name="qstyleoptiongraphicsitem_pyobject">
- Shiboken::AutoDecRef option_object(PyList_New(0));
- for (int i=0, max=numItems; i &lt; max; i++) {
- const QStyleOptionGraphicsItem* item = &amp;%in[i];
- PyList_Append(option_object, %CONVERTTOPYTHON[QStyleOptionGraphicsItem](item));
- }
- PyObject* %out = option_object.object();
- </template>
-
- <template name="pysequence_qstyleoptiongraphicsitem">
- int numOptions = PySequence_Size(%PYARG_2);
- Shiboken::AutoArrayPointer&lt;QStyleOptionGraphicsItem&gt; %out(numOptions);
- for (int i=0; i &lt; numOptions; i++) {
- %out[i] = %CONVERTTOCPP[QStyleOptionGraphicsItem](PySequence_Fast_GET_ITEM(%PYARG_1, i));
- }
- </template>
-
- <template name="pysequencesize_int">
- int %out = PySequence_Size(%PYARG_1);
- </template>
-
-</typesystem>
diff --git a/sources/pyside2/PySide2/templates/xml_common.xml b/sources/pyside2/PySide2/templates/xml_common.xml
deleted file mode 100644
index 0a6ae4906..000000000
--- a/sources/pyside2/PySide2/templates/xml_common.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
--->
-<typesystem>
-
- <template name="QXmlEntityResolver_resolveEntity_return_conversion_native">
- Shiboken::AutoDecRef _py_ok_(PySequence_GetItem(%PYARG_0, 0));
- Shiboken::AutoDecRef _py_ret_(PySequence_GetItem(%PYARG_0, 1));
- %RETURN_TYPE %out = %CONVERTTOCPP[%RETURN_TYPE](_py_ok_);
- %3 = %CONVERTTOCPP[QXmlInputSource*](_py_ret_);
- </template>
-
- <template name="fix_virtual_method_return_value_and_bool*">
- Shiboken::AutoDecRef _py_ret_(PySequence_GetItem(%PYARG_0, 0));
- Shiboken::AutoDecRef _py_ok_(PySequence_GetItem(%PYARG_0, 1));
- %RETURN_TYPE %out = %CONVERTTOCPP[%RETURN_TYPE](_py_ret_);
- *%2 = %CONVERTTOCPP[bool](_py_ok_);
- </template>
-
-</typesystem>