diff options
Diffstat (limited to 'sources/pyside6/libpysideqml')
4 files changed, 14 insertions, 14 deletions
diff --git a/sources/pyside6/libpysideqml/pysideqmlextended.cpp b/sources/pyside6/libpysideqml/pysideqmlextended.cpp index fdd71ded6..9953c3623 100644 --- a/sources/pyside6/libpysideqml/pysideqmlextended.cpp +++ b/sources/pyside6/libpysideqml/pysideqmlextended.cpp @@ -97,7 +97,7 @@ static QObject *extensionFactory(QObject *o) } Shiboken::AutoDecRef args(PyTuple_New(1)); - PyTuple_SET_ITEM(args.object(), 0, pyObj); + PyTuple_SetItem(args.object(), 0, pyObj); auto *extensionTypeObj = reinterpret_cast<PyObject *>(info->extensionType); Shiboken::AutoDecRef pyResult(PyObject_Call(extensionTypeObj, args, nullptr)); if (pyResult.isNull() || PyErr_Occurred()) { diff --git a/sources/pyside6/libpysideqml/pysideqmllistproperty.cpp b/sources/pyside6/libpysideqml/pysideqmllistproperty.cpp index 5722dd441..447d16564 100644 --- a/sources/pyside6/libpysideqml/pysideqmllistproperty.cpp +++ b/sources/pyside6/libpysideqml/pysideqmllistproperty.cpp @@ -139,9 +139,9 @@ void propListAppender(QQmlListProperty<QObject> *propList, QObject *item) Shiboken::AutoDecRef args(PyTuple_New(2)); PyTypeObject *qobjectType = qObjectType(); - PyTuple_SET_ITEM(args, 0, + PyTuple_SetItem(args, 0, Shiboken::Conversions::pointerToPython(qobjectType, propList->object)); - PyTuple_SET_ITEM(args, 1, + PyTuple_SetItem(args, 1, Shiboken::Conversions::pointerToPython(qobjectType, item)); auto *data = reinterpret_cast<QmlListPropertyPrivate *>(propList->data); @@ -157,7 +157,7 @@ qsizetype propListCount(QQmlListProperty<QObject> *propList) Shiboken::GilState state; Shiboken::AutoDecRef args(PyTuple_New(1)); - PyTuple_SET_ITEM(args, 0, + PyTuple_SetItem(args, 0, Shiboken::Conversions::pointerToPython(qObjectType(), propList->object)); auto *data = reinterpret_cast<QmlListPropertyPrivate *>(propList->data); @@ -183,10 +183,10 @@ QObject *propListAt(QQmlListProperty<QObject> *propList, qsizetype index) Shiboken::AutoDecRef args(PyTuple_New(2)); PyTypeObject *qobjectType = qObjectType(); - PyTuple_SET_ITEM(args, 0, + PyTuple_SetItem(args, 0, Shiboken::Conversions::pointerToPython(qobjectType, propList->object)); auto *converter = Shiboken::Conversions::PrimitiveTypeConverter<qsizetype>(); - PyTuple_SET_ITEM(args, 1, + PyTuple_SetItem(args, 1, Shiboken::Conversions::copyToPython(converter, &index)); auto *data = reinterpret_cast<QmlListPropertyPrivate *>(propList->data); @@ -207,7 +207,7 @@ void propListClear(QQmlListProperty<QObject> * propList) Shiboken::AutoDecRef args(PyTuple_New(1)); PyTypeObject *qobjectType = qObjectType(); - PyTuple_SET_ITEM(args, 0, + PyTuple_SetItem(args, 0, Shiboken::Conversions::pointerToPython(qobjectType, propList->object)); auto *data = reinterpret_cast<QmlListPropertyPrivate *>(propList->data); @@ -224,12 +224,12 @@ void propListReplace(QQmlListProperty<QObject> *propList, qsizetype index, QObje Shiboken::AutoDecRef args(PyTuple_New(3)); PyTypeObject *qobjectType = qObjectType(); - PyTuple_SET_ITEM(args, 0, + PyTuple_SetItem(args, 0, Shiboken::Conversions::pointerToPython(qobjectType, propList->object)); auto *converter = Shiboken::Conversions::PrimitiveTypeConverter<qsizetype>(); - PyTuple_SET_ITEM(args, 1, + PyTuple_SetItem(args, 1, Shiboken::Conversions::copyToPython(converter, &index)); - PyTuple_SET_ITEM(args, 2, + PyTuple_SetItem(args, 2, Shiboken::Conversions::pointerToPython(qobjectType, value)); auto *data = reinterpret_cast<QmlListPropertyPrivate *>(propList->data); @@ -246,7 +246,7 @@ void propListRemoveLast(QQmlListProperty<QObject> *propList) Shiboken::AutoDecRef args(PyTuple_New(1)); PyTypeObject *qobjectType = qObjectType(); - PyTuple_SET_ITEM(args, 0, + PyTuple_SetItem(args, 0, Shiboken::Conversions::pointerToPython(qobjectType, propList->object)); auto *data = reinterpret_cast<QmlListPropertyPrivate *>(propList->data); diff --git a/sources/pyside6/libpysideqml/pysideqmlregistertype.cpp b/sources/pyside6/libpysideqml/pysideqmlregistertype.cpp index 9e1c570d4..5fa53bb7a 100644 --- a/sources/pyside6/libpysideqml/pysideqmlregistertype.cpp +++ b/sources/pyside6/libpysideqml/pysideqmlregistertype.cpp @@ -438,7 +438,7 @@ public: { Shiboken::GilState gil; Shiboken::AutoDecRef args(PyTuple_New(1)); - PyTuple_SET_ITEM(args, 0, + PyTuple_SetItem(args, 0, Shiboken::Conversions::pointerToPython(qQmlEngineType(), engine)); PyObject *retVal = PyObject_CallObject(data()->callable, args); QObject *result = handleReturnValue(retVal); @@ -540,7 +540,7 @@ static int qmlRegisterSingletonType(PyObject *pyObj, const ImportData &importDat Shiboken::GilState gil; AutoDecRef args(PyTuple_New(1)); - PyTuple_SET_ITEM(args, 0, Conversions::pointerToPython( + PyTuple_SetItem(args, 0, Conversions::pointerToPython( qQmlEngineType(), engine)); AutoDecRef retVal(PyObject_CallObject(callback, args)); diff --git a/sources/pyside6/libpysideqml/pysideqmluncreatable.cpp b/sources/pyside6/libpysideqml/pysideqmluncreatable.cpp index 7c0f6b8ff..938b6a858 100644 --- a/sources/pyside6/libpysideqml/pysideqmluncreatable.cpp +++ b/sources/pyside6/libpysideqml/pysideqmluncreatable.cpp @@ -50,7 +50,7 @@ int PySideQmlUncreatablePrivate::tp_init(PyObject *self, PyObject *args, PyObjec if (argsCount == 0) { result = 0; // QML-generated reason } else if (argsCount == 1) { - PyObject *arg = PyTuple_GET_ITEM(args, 0); + PyObject *arg = PyTuple_GetItem(args, 0); result = arg == Py_None ? 0 // QML-generated reason : convertToString(self, args); |
