From 6212d725a48f634c2c03dc9a8a66d978917f97a8 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 15 Sep 2020 09:29:46 +0200 Subject: Adapt to changes in qtbase - Renamed QIconEngine::AvailableSizesArgument to ScaledPixmapArgument - Remove XML/SAX classes after qtbase/79e0374143ab385cb12a17443e91c8eb9d2f3a4b - Adapt quick type registering to changes in QMetaTypeInterface qtbase/92b37676328a960bc092b1f3834233c550376457 Task-number: PYSIDE-1339 Task-number: PYSIDE-904 Task-number: QTBUG-86480 Change-Id: Ibff2bddbf040bb25fb85ca3c0845608b2bca1e7e Reviewed-by: Christian Tismer --- sources/pyside2/PySide2/QtGui/CMakeLists.txt | 2 +- .../PySide2/QtGui/typesystem_gui_common.xml | 2 +- .../PySide2/QtQuick/pysidequickregistertype.cpp | 13 +- sources/pyside2/PySide2/QtXml/CMakeLists.txt | 14 -- sources/pyside2/PySide2/QtXml/typesystem_xml.xml | 186 --------------------- sources/pyside2/tests/QtXml/CMakeLists.txt | 1 - .../pyside2/tests/QtXml/qxmlsimplereader_test.py | 70 -------- 7 files changed, 9 insertions(+), 279 deletions(-) delete mode 100644 sources/pyside2/tests/QtXml/qxmlsimplereader_test.py diff --git a/sources/pyside2/PySide2/QtGui/CMakeLists.txt b/sources/pyside2/PySide2/QtGui/CMakeLists.txt index f8479fcdb..c6393a1aa 100644 --- a/sources/pyside2/PySide2/QtGui/CMakeLists.txt +++ b/sources/pyside2/PySide2/QtGui/CMakeLists.txt @@ -61,7 +61,7 @@ ${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_scaledpixmapargument_wrapper.cpp ${QtGui_GEN_DIR}/qiconengine_wrapper.cpp ${QtGui_GEN_DIR}/qimage_wrapper.cpp ${QtGui_GEN_DIR}/qimageiohandler_wrapper.cpp diff --git a/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml b/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml index 56a998cb3..7d13d18da 100644 --- a/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml +++ b/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml @@ -1129,7 +1129,7 @@ - + diff --git a/sources/pyside2/PySide2/QtQuick/pysidequickregistertype.cpp b/sources/pyside2/PySide2/QtQuick/pysidequickregistertype.cpp index dc4645487..acb733f73 100644 --- a/sources/pyside2/PySide2/QtQuick/pysidequickregistertype.cpp +++ b/sources/pyside2/PySide2/QtQuick/pysidequickregistertype.cpp @@ -88,16 +88,12 @@ struct QPysideQmlMetaTypeInterface : QtPrivate::QMetaTypeInterface QPysideQmlMetaTypeInterface(const QByteArray &name, const QMetaObject *metaObject = nullptr) : QMetaTypeInterface { /*.revision=*/ 0, - /*.size=*/ sizeof(T), /*.alignment=*/ alignof(T), + /*.size=*/ sizeof(T), /*.flags=*/ QtPrivate::QMetaTypeTypeFlags::Flags, + /*.typeId=*/ 0, /*.metaObject=*/ metaObject, /*.name=*/ name.constData(), - /*.typeId=*/ 0, - /*.ref=*/ { Q_BASIC_ATOMIC_INITIALIZER(0) }, - /*.deleteSelf=*/ [](QMetaTypeInterface *self) { - delete static_cast(self); - }, /*.defaultCtr=*/ [](const QMetaTypeInterface *, void *addr) { new (addr) T(); }, /*.copyCtr=*/ [](const QMetaTypeInterface *, void *addr, const void *other) { new (addr) T(*reinterpret_cast(other)); @@ -108,6 +104,11 @@ struct QPysideQmlMetaTypeInterface : QtPrivate::QMetaTypeInterface /*.dtor=*/ [](const QMetaTypeInterface *, void *addr) { reinterpret_cast(addr)->~T(); }, + /*.equals=*/ nullptr, + /*.lessThan=*/ nullptr, + /*.debugStream=*/ nullptr, + /*.dataStreamOut=*/ nullptr, + /*.dataStreamIn=*/ nullptr, /*.legacyRegisterOp=*/ nullptr } , name(name) {} diff --git a/sources/pyside2/PySide2/QtXml/CMakeLists.txt b/sources/pyside2/PySide2/QtXml/CMakeLists.txt index eb64b4795..e7b22ca2b 100644 --- a/sources/pyside2/PySide2/QtXml/CMakeLists.txt +++ b/sources/pyside2/PySide2/QtXml/CMakeLists.txt @@ -18,20 +18,6 @@ ${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 ) diff --git a/sources/pyside2/PySide2/QtXml/typesystem_xml.xml b/sources/pyside2/PySide2/QtXml/typesystem_xml.xml index 96d12ea4e..8da1664d5 100644 --- a/sources/pyside2/PySide2/QtXml/typesystem_xml.xml +++ b/sources/pyside2/PySide2/QtXml/typesystem_xml.xml @@ -147,42 +147,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -225,12 +189,6 @@ - - - - - -