Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PyQt6 for openSUSE:Factory checked in at 2023-09-29 21:14:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-PyQt6 (Old) and /work/SRC/openSUSE:Factory/.python-PyQt6.new.28202 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-PyQt6" Fri Sep 29 21:14:08 2023 rev:17 rq:1114143 version:6.5.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-PyQt6/python-PyQt6.changes 2023-07-25 11:51:32.229604917 +0200 +++ /work/SRC/openSUSE:Factory/.python-PyQt6.new.28202/python-PyQt6.changes 2023-09-29 21:15:41.466332063 +0200 @@ -1,0 +2,7 @@ +Wed Sep 27 09:15:27 UTC 2023 - Ben Greiner <c...@bnavigator.de> + +- Update to 6.5.2 + * Added the missing NativeGesture, Quit, EnterEditFocus and + LeaveEditFocus members of QEventType. + +------------------------------------------------------------------- Old: ---- PyQt6-6.5.1.tar.gz New: ---- PyQt6-6.5.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-PyQt6.spec ++++++ --- /var/tmp/diff_new_pack.HcPlDb/_old 2023-09-29 21:15:42.718377237 +0200 +++ /var/tmp/diff_new_pack.HcPlDb/_new 2023-09-29 21:15:42.722377381 +0200 @@ -21,7 +21,7 @@ %define pyqt_build_for_qt6 1 %{?sle15_python_module_pythons} Name: python-%{mname} -Version: 6.5.1 +Version: 6.5.2 Release: 0 Summary: Python bindings for Qt 6 License: GPL-3.0-only OR SUSE-GPL-2.0-with-FLOSS-exception OR NonFree ++++++ PyQt6-6.5.1.tar.gz -> PyQt6-6.5.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/ChangeLog new/PyQt6-6.5.2/ChangeLog --- old/PyQt6-6.5.1/ChangeLog 2023-06-02 12:40:57.300344000 +0200 +++ new/PyQt6-6.5.2/ChangeLog 2023-07-22 17:08:24.134214200 +0200 @@ -1,3 +1,95 @@ +2023-07-22 Phil Thompson <p...@riverbankcomputing.com> + + * NEWS, extras/lupdate/python_source.py: + Fixed an exception in pylupdate. + [38c17a29338d] [6.5.2] <6.5-maint> + +2023-07-21 Phil Thompson <p...@riverbankcomputing.com> + + * NEWS, qpy/QtCore/qstring.sip: + Fixed a regression in using None as a QString. + [6089948fc034] <6.5-maint> + +2023-07-15 Phil Thompson <p...@riverbankcomputing.com> + + * NEWS, PyQt6.msp: + Fixed the type hints for all ellipsis arguments. + [dc5cc8a6f07d] <6.5-maint> + +2023-07-14 Phil Thompson <p...@riverbankcomputing.com> + + * qpy/QtCore/qstring.sip: + Further fix fro QString's type hint. + [5c0f11c46cb1] <6.5-maint> + + * NEWS, qpy/QtCore/qstring.sip: + Fixed the type hint for QString. + [2857fd3946c7] <6.5-maint> + +2023-07-12 Phil Thompson <p...@riverbankcomputing.com> + + * PyQt6.msp: + Another type hint fix for QObject.findChild(). + [dd57f73873eb] <6.5-maint> + + * PyQt6.msp: + Fixed the type hints fro QObject.findChild() and + QObject.findChildren(). + [b088d75e77d6] <6.5-maint> + +2023-07-09 Phil Thompson <p...@riverbankcomputing.com> + + * NEWS, PyQt6.msp: + Fixed PYQT_SLOT for the QtCore module. + [f5cb0b97d94e] <6.5-maint> + +2023-07-05 Phil Thompson <p...@riverbankcomputing.com> + + * extras/lupdate/python_source.py: + pylupdate will now look for tr() and translate() as a function as + well as a method. + [a0230e25929a] <6.5-maint> + + * PyQt6.msp: + Fixed the type hint for pyqtSlot(). + [b8e51995b3c5] <6.5-maint> + + * PyQt6.msp: + Fixed the type hint for PYQT_SLOT. + [8c73a0c3dd1f] <6.5-maint> + + * NEWS, PyQt6.msp, qpy/QtCore/qbytearrayview.sip: + Fixed the type hints for QByteArray and QByteArrayView. + [f631f8e6cc3e] <6.5-maint> + +2023-06-08 Phil Thompson <p...@riverbankcomputing.com> + + * NEWS, PyQt6.msp, project.py: + Added the missing QEvent.Type.EnterEditFocus and + QEvent.Type.LeaveEditFocus enum members. + [a8d9583f33d9] <6.5-maint> + + * NEWS, PyQt6.msp: + Added the missing QEvent.Type.NativeGesture and QEvent.Type.Quit + enum members. + [ebd0738bb268] <6.5-maint> + +2023-06-04 Phil Thompson <p...@riverbankcomputing.com> + + * NEWS: + Updated the NEWS file. + [6590e301a19c] <6.5-maint> + + * config-tests/cfgtest_QtCore.cpp: + Fixed building against Qt older than v6.5. + [4860e1d699d4] <6.5-maint> + +2023-06-02 Phil Thompson <p...@riverbankcomputing.com> + + * .hgtags: + Added tag 6.5.1 for changeset 443f350df939 + [9d6e72a95cae] <6.5-maint> + 2023-05-26 Phil Thompson <p...@riverbankcomputing.com> * NEWS, qpy/QtCore/qpycore_pyqtboundsignal.cpp: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/NEWS new/PyQt6-6.5.2/NEWS --- old/PyQt6-6.5.1/NEWS 2023-06-02 12:40:57.301942800 +0200 +++ new/PyQt6-6.5.2/NEWS 2023-07-22 17:08:24.136437000 +0200 @@ -1,3 +1,8 @@ +v6.5.2 22nd July 2023 + - Added the missing NativeGesture, Quit, EnterEditFocus and LeaveEditFocus + members of QEventType. + - Bug fixes. + v6.5.1 26th May 2023 - Added support for QPermission and related classes and methods. - Added the max_workers argument to uic.compileUiDir() to specifiy the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/PKG-INFO new/PyQt6-6.5.2/PKG-INFO --- old/PyQt6-6.5.1/PKG-INFO 2023-06-02 12:41:06.071410200 +0200 +++ new/PyQt6-6.5.2/PKG-INFO 2023-07-22 17:08:32.899154400 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: PyQt6 -Version: 6.5.1 +Version: 6.5.2 Requires-Python: >=3.6.1 Summary: Python bindings for the Qt cross platform application toolkit Home-Page: https://www.riverbankcomputing.com/software/pyqt/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/config-tests/cfgtest_QtCore.cpp new/PyQt6-6.5.2/config-tests/cfgtest_QtCore.cpp --- old/PyQt6-6.5.1/config-tests/cfgtest_QtCore.cpp 2023-06-02 12:40:57.311180600 +0200 +++ new/PyQt6-6.5.2/config-tests/cfgtest_QtCore.cpp 2023-07-22 17:08:24.145340200 +0200 @@ -31,7 +31,7 @@ if (sizeof (qreal) != sizeof (double)) out << "PyQt_qreal_double\n"; -#if !QT_CONFIG(permissions) +#if QT_VERSION < 0x060500 || !QT_CONFIG(permissions) out << "PyQt_Permissions"; #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/lupdate/python_source.py new/PyQt6-6.5.2/lupdate/python_source.py --- old/PyQt6-6.5.1/lupdate/python_source.py 2023-06-02 12:40:57.511485600 +0200 +++ new/PyQt6-6.5.2/lupdate/python_source.py 2023-07-22 17:08:24.334739000 +0200 @@ -149,11 +149,6 @@ if isinstance(node.func, ast.Attribute): name = node.func.attr - if name == 'tr': - call_args = self._parse_tr(node) - elif name == 'translate': - call_args = self._parse_translate(node) - elif isinstance(node.func, ast.Name): name = node.func.id @@ -161,6 +156,14 @@ call_args = self._parse_QT_TR_NOOP(node) elif name == 'QT_TRANSLATE_NOOP': call_args = self._parse_QT_TRANSLATE_NOOP(node) + else: + name = '' + + # Allow these to be either methods or functions. + if name == 'tr': + call_args = self._parse_tr(node) + elif name == 'translate': + call_args = self._parse_translate(node) # Update the context if the arguments are usable. if call_args is not None and call_args.source != '': diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/project.py new/PyQt6-6.5.2/project.py --- old/PyQt6-6.5.1/project.py 2023-06-02 12:40:57.553051200 +0200 +++ new/PyQt6-6.5.2/project.py 2023-07-22 17:08:24.376157800 +0200 @@ -505,7 +505,8 @@ def __init__(self, project): """ Initialise the bindings. """ - super().__init__(project, 'QtCore', qmake_QT=['-gui']) + super().__init__(project, 'QtCore', qmake_QT=['-gui'], + define_macros=['QT_KEYPAD_NAVIGATION']) def handle_test_output(self, test_output): """ Handle the output from the external test program and return True if diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/pyproject.toml new/PyQt6-6.5.2/pyproject.toml --- old/PyQt6-6.5.1/pyproject.toml 2023-06-02 12:40:57.553341000 +0200 +++ new/PyQt6-6.5.2/pyproject.toml 2023-07-22 17:08:24.376478700 +0200 @@ -6,7 +6,7 @@ # Specify the PEP 566 metadata for the project. [tool.sip.metadata] name = "PyQt6" -version = "6.5.1" +version = "6.5.2" summary = "Python bindings for the Qt cross platform application toolkit" home-page = "https://www.riverbankcomputing.com/software/pyqt/" author = "Riverbank Computing Limited" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/sip/QtCore/QtCoremod.sip new/PyQt6-6.5.2/sip/QtCore/QtCoremod.sip --- old/PyQt6-6.5.1/sip/QtCore/QtCoremod.sip 2023-06-02 12:41:05.022572000 +0200 +++ new/PyQt6-6.5.2/sip/QtCore/QtCoremod.sip 2023-07-22 17:08:31.887981400 +0200 @@ -75,8 +75,8 @@ const char *PYQT_VERSION_STR; %ModuleCode -static int PYQT_VERSION = 0x060501; -static const char *PYQT_VERSION_STR = "6.5.1"; +static int PYQT_VERSION = 0x060502; +static const char *PYQT_VERSION_STR = "6.5.2"; %End %Include qglobal.sip diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/sip/QtCore/qbytearray.sip new/PyQt6-6.5.2/sip/QtCore/qbytearray.sip --- old/PyQt6-6.5.1/sip/QtCore/qbytearray.sip 2023-06-02 12:41:05.108444500 +0200 +++ new/PyQt6-6.5.2/sip/QtCore/qbytearray.sip 2023-07-22 17:08:31.952804800 +0200 @@ -24,7 +24,7 @@ #include <qbytearray.h> %End -class QByteArray +class QByteArray /TypeHintIn="Union[QByteArray, bytes, bytearray, memoryview]"/ { %TypeHeaderCode #include <qbytearray.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/sip/QtCore/qbytearrayview.sip new/PyQt6-6.5.2/sip/QtCore/qbytearrayview.sip --- old/PyQt6-6.5.1/sip/QtCore/qbytearrayview.sip 2023-06-02 12:41:05.128395000 +0200 +++ new/PyQt6-6.5.2/sip/QtCore/qbytearrayview.sip 2023-07-22 17:08:31.992654600 +0200 @@ -18,11 +18,7 @@ // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -// Note that the typing module doesn't have the means for describing objects -// that implement the buffer protocol. We therefore just document the common -// cases for documentation purposes even though all of them are accessed via -// the buffer protocol. -%MappedType QByteArrayView /TypeHint="Union[QByteArray, bytes, bytearray, memoryview]"/ +%MappedType QByteArrayView /TypeHint="QByteArray"/ { %TypeHeaderCode #include <qbytearrayview.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/sip/QtCore/qcoreapplication.sip new/PyQt6-6.5.2/sip/QtCore/qcoreapplication.sip --- old/PyQt6-6.5.1/sip/QtCore/qcoreapplication.sip 2023-06-02 12:41:05.008861800 +0200 +++ new/PyQt6-6.5.2/sip/QtCore/qcoreapplication.sip 2023-07-22 17:08:31.853528000 +0200 @@ -353,7 +353,7 @@ # Convenient type aliases. PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] -PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., Any], QtCore.pyqtBoundSignal] %End %TypeHintCode @@ -393,7 +393,15 @@ def emit(self, *args: typing.Any) -> None: ... +FuncT = typing.TypeVar('FuncT', bound=typing.Callable) +def pyqtSlot(*types, name: typing.Optional[str] = ..., result: typing.Optional[str] = ...) -> typing.Callable[[FuncT], FuncT]: ... + + +# For QObject.findChild() and QObject.findChildren(). +QObjectT = typing.TypeVar('QObjectT', bound=QObject) + + # Convenient type aliases. PYQT_SIGNAL = typing.Union[pyqtSignal, pyqtBoundSignal] -PYQT_SLOT = typing.Union[typing.Callable[..., None], pyqtBoundSignal] +PYQT_SLOT = typing.Union[typing.Callable[..., Any], pyqtBoundSignal] %End diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/sip/QtCore/qcoreevent.sip new/PyQt6-6.5.2/sip/QtCore/qcoreevent.sip --- old/PyQt6-6.5.1/sip/QtCore/qcoreevent.sip 2023-06-02 12:41:05.017321600 +0200 +++ new/PyQt6-6.5.2/sip/QtCore/qcoreevent.sip 2023-07-22 17:08:31.882551400 +0200 @@ -69,6 +69,7 @@ Show, Hide, Close, + Quit, ParentChange, ParentAboutToChange, ThreadChange, @@ -180,6 +181,7 @@ TouchBegin, TouchUpdate, TouchEnd, + NativeGesture, RequestSoftwareInputPanel, CloseSoftwareInputPanel, WinIdChange, @@ -198,6 +200,8 @@ PlatformSurface, TabletTrackingChange, GraphicsSceneLeave, + EnterEditFocus, + LeaveEditFocus, User, MaxUser, }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/sip/QtCore/qobject.sip new/PyQt6-6.5.2/sip/QtCore/qobject.sip --- old/PyQt6-6.5.1/sip/QtCore/qobject.sip 2023-06-02 12:41:04.975372600 +0200 +++ new/PyQt6-6.5.2/sip/QtCore/qobject.sip 2023-07-22 17:08:31.839393600 +0200 @@ -374,7 +374,7 @@ sipRes = new QString(QCoreApplication::translate(sipPyTypeName((PyTypeObject *)sipSelf), a0, a1, a2)); %End - SIP_PYOBJECT findChild(SIP_PYTYPE type, const QString &name = QString(), Qt::FindChildOptions options = Qt::FindChildrenRecursively) const /TypeHint="QObject"/; + SIP_PYOBJECT findChild(SIP_PYTYPE type /TypeHint="Type[QObjectT]"/, const QString &name = QString(), Qt::FindChildOptions options = Qt::FindChildrenRecursively) const /TypeHint="QObjectT"/; %MethodCode sipRes = qtcore_FindChild(sipCpp, qtcore_type_to_tuple(a0), *a1, *a2); @@ -382,7 +382,7 @@ sipIsErr = 1; %End - SIP_PYOBJECT findChild(SIP_PYTUPLE types /TypeHintValue="()"/, const QString &name = QString(), Qt::FindChildOptions options = Qt::FindChildrenRecursively) const /TypeHint="QObject"/; + SIP_PYOBJECT findChild(SIP_PYTUPLE types /TypeHint="Tuple[Type[QObjectT], ...]", TypeHintValue="()"/, const QString &name = QString(), Qt::FindChildOptions options = Qt::FindChildrenRecursively) const /TypeHint="QObjectT"/; %MethodCode sipRes = qtcore_FindChild(sipCpp, qtcore_check_tuple_types(a0), *a1, *a2); @@ -390,7 +390,7 @@ sipIsErr = 1; %End - SIP_PYLIST findChildren(SIP_PYTYPE type, const QString &name = QString(), Qt::FindChildOptions options = Qt::FindChildrenRecursively) const /TypeHint="List[QObject]"/; + SIP_PYLIST findChildren(SIP_PYTYPE type /TypeHint="Type[QObjectT]"/, const QString &name = QString(), Qt::FindChildOptions options = Qt::FindChildrenRecursively) const /TypeHint="List[QObjectT]"/; %MethodCode sipRes = qtcore_FindChildren(sipCpp, qtcore_type_to_tuple(a0), *a1, *a2); @@ -398,7 +398,7 @@ sipIsErr = 1; %End - SIP_PYLIST findChildren(SIP_PYTUPLE types /TypeHintValue="()"/, const QString &name = QString(), Qt::FindChildOptions options = Qt::FindChildrenRecursively) const /TypeHint="List[QObject]"/; + SIP_PYLIST findChildren(SIP_PYTUPLE types /TypeHint="Tuple[Type[QObjectT], ...]", TypeHintValue="()"/, const QString &name = QString(), Qt::FindChildOptions options = Qt::FindChildrenRecursively) const /TypeHint="List[QObjectT]"/; %MethodCode sipRes = qtcore_FindChildren(sipCpp, qtcore_check_tuple_types(a0), *a1, *a2); @@ -406,7 +406,7 @@ sipIsErr = 1; %End - SIP_PYLIST findChildren(SIP_PYTYPE type, const QRegularExpression &re, Qt::FindChildOptions options = Qt::FindChildrenRecursively) const /TypeHint="List[QObject]"/; + SIP_PYLIST findChildren(SIP_PYTYPE type /TypeHint="Type[QObjectT]"/, const QRegularExpression &re, Qt::FindChildOptions options = Qt::FindChildrenRecursively) const /TypeHint="List[QObjectT]"/; %MethodCode sipRes = qtcore_FindChildren(sipCpp, qtcore_type_to_tuple(a0), *a1, *a2); @@ -414,7 +414,7 @@ sipIsErr = 1; %End - SIP_PYLIST findChildren(SIP_PYTUPLE types /TypeHintValue="()"/, const QRegularExpression &re, Qt::FindChildOptions options = Qt::FindChildrenRecursively) const /TypeHint="List[QObject]"/; + SIP_PYLIST findChildren(SIP_PYTUPLE types /TypeHint="Tuple[Type[QObjectT], ...]", TypeHintValue="()"/, const QRegularExpression &re, Qt::FindChildOptions options = Qt::FindChildrenRecursively) const /TypeHint="List[QObjectT]"/; %MethodCode sipRes = qtcore_FindChildren(sipCpp, qtcore_check_tuple_types(a0), *a1, *a2); @@ -556,7 +556,7 @@ sipRes = qpycore_pyqtEnum(a0); %End -SIP_PYOBJECT pyqtSlot(... types, const char *name = 0, const char *result = 0) /NoArgParser/; +SIP_PYOBJECT pyqtSlot(... types, const char *name = 0, const char *result = 0) /NoArgParser, NoTypeHint/; %Docstring @pyqtSlot(*types, name: typing.Optional[str], result: typing.Optional[str]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/sip/QtCore/qstring.sip new/PyQt6-6.5.2/sip/QtCore/qstring.sip --- old/PyQt6-6.5.1/sip/QtCore/qstring.sip 2023-06-02 12:41:04.968230500 +0200 +++ new/PyQt6-6.5.2/sip/QtCore/qstring.sip 2023-07-22 17:08:31.832251500 +0200 @@ -18,7 +18,7 @@ // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -%MappedType QString /AllowNone,TypeHint="str",TypeHintValue="''"/ +%MappedType QString /AllowNone, TypeHintIn="Optional[str]", TypeHintOut="str", TypeHintValue="''"/ { %TypeHeaderCode #include <qstring.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/sip/QtGui/qpainter.sip new/PyQt6-6.5.2/sip/QtGui/qpainter.sip --- old/PyQt6-6.5.1/sip/QtGui/qpainter.sip 2023-06-02 12:41:04.569005300 +0200 +++ new/PyQt6-6.5.2/sip/QtGui/qpainter.sip 2023-07-22 17:08:31.438242200 +0200 @@ -193,7 +193,7 @@ void drawPoints(const QPolygonF &points); void drawPoints(const QPolygon &points); void drawPoints(const QPointF *points /Array/, int pointCount /ArraySize/); - void drawPoints(const QPointF *point, ...); + void drawPoints(const QPointF *point, ... /TypeHint="QPointF"/); %MethodCode QPointF *points = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF); @@ -207,7 +207,7 @@ %End void drawPoints(const QPoint *points /Array/, int pointCount /ArraySize/); - void drawPoints(const QPoint *point, ...); + void drawPoints(const QPoint *point, ... /TypeHint="QPoint"/); %MethodCode QPoint *points = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint); @@ -221,7 +221,7 @@ %End void drawLines(const QLineF *lines /Array/, int lineCount /ArraySize/); - void drawLines(const QLineF *line, ...); + void drawLines(const QLineF *line, ... /TypeHint="QLineF"/); %MethodCode QLineF *lines = qtgui_inst_array<QLineF>(a0, a1, sipType_QLineF); @@ -239,7 +239,7 @@ sipCpp->drawLines(a0, a1 / 2); %End - void drawLines(const QPointF *pointPair, ...); + void drawLines(const QPointF *pointPair, ... /TypeHint="QPointF"/); %MethodCode QPointF *pairs = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF); @@ -253,7 +253,7 @@ %End void drawLines(const QLine *lines /Array/, int lineCount /ArraySize/); - void drawLines(const QLine *line, ...); + void drawLines(const QLine *line, ... /TypeHint="QLine"/); %MethodCode QLine *lines = qtgui_inst_array<QLine>(a0, a1, sipType_QLine); @@ -271,7 +271,7 @@ sipCpp->drawLines(a0, a1 / 2); %End - void drawLines(const QPoint *pointPair, ...); + void drawLines(const QPoint *pointPair, ... /TypeHint="QPoint"/); %MethodCode QPoint *pairs = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint); @@ -285,7 +285,7 @@ %End void drawRects(const QRectF *rects /Array/, int rectCount /ArraySize/); - void drawRects(const QRectF *rect, ...); + void drawRects(const QRectF *rect, ... /TypeHint="QRectF"/); %MethodCode QRectF *rects = qtgui_inst_array<QRectF>(a0, a1, sipType_QRectF); @@ -299,7 +299,7 @@ %End void drawRects(const QRect *rects /Array/, int rectCount /ArraySize/); - void drawRects(const QRect *rect, ...); + void drawRects(const QRect *rect, ... /TypeHint="QRect"/); %MethodCode QRect *rects = qtgui_inst_array<QRect>(a0, a1, sipType_QRect); @@ -317,7 +317,7 @@ void drawPolyline(const QPolygonF &polyline); void drawPolyline(const QPolygon &polyline); void drawPolyline(const QPointF *points /Array/, int pointCount /ArraySize/); - void drawPolyline(const QPointF *point, ...); + void drawPolyline(const QPointF *point, ... /TypeHint="QPointF"/); %MethodCode QPointF *points = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF); @@ -331,7 +331,7 @@ %End void drawPolyline(const QPoint *points /Array/, int pointCount /ArraySize/); - void drawPolyline(const QPoint *point, ...); + void drawPolyline(const QPoint *point, ... /TypeHint="QPoint"/); %MethodCode QPoint *points = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint); @@ -347,7 +347,7 @@ void drawPolygon(const QPolygonF &points, Qt::FillRule fillRule = Qt::OddEvenFill); void drawPolygon(const QPolygon &points, Qt::FillRule fillRule = Qt::OddEvenFill); void drawPolygon(const QPointF *points /Array/, int pointCount /ArraySize/, Qt::FillRule fillRule = Qt::OddEvenFill); - void drawPolygon(const QPointF *point, ...); + void drawPolygon(const QPointF *point, ... /TypeHint="QPointF"/); %MethodCode QPointF *points = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF); @@ -361,7 +361,7 @@ %End void drawPolygon(const QPoint *points /Array/, int pointCount /ArraySize/, Qt::FillRule fillRule = Qt::OddEvenFill); - void drawPolygon(const QPoint *point, ...); + void drawPolygon(const QPoint *point, ... /TypeHint="QPoint"/); %MethodCode QPoint *points = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint); @@ -377,7 +377,7 @@ void drawConvexPolygon(const QPolygonF &poly); void drawConvexPolygon(const QPolygon &poly); void drawConvexPolygon(const QPointF *points /Array/, int pointCount /ArraySize/); - void drawConvexPolygon(const QPointF *point, ...); + void drawConvexPolygon(const QPointF *point, ... /TypeHint="QPointF"/); %MethodCode QPointF *points = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF); @@ -391,7 +391,7 @@ %End void drawConvexPolygon(const QPoint *points /Array/, int pointCount /ArraySize/); - void drawConvexPolygon(const QPoint *point, ...); + void drawConvexPolygon(const QPoint *point, ... /TypeHint="QPoint"/); %MethodCode QPoint *points = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PyQt6-6.5.1/sip/QtGui/qpolygon.sip new/PyQt6-6.5.2/sip/QtGui/qpolygon.sip --- old/PyQt6-6.5.1/sip/QtGui/qpolygon.sip 2023-06-02 12:41:04.531709400 +0200 +++ new/PyQt6-6.5.2/sip/QtGui/qpolygon.sip 2023-07-22 17:08:31.400129600 +0200 @@ -63,7 +63,7 @@ QPoint point(int i) const; void setPoint(int index, int x, int y); void setPoint(int index, const QPoint &p); - void setPoints(int firstx, int firsty, ...); + void setPoints(int firstx, int firsty, ... /TypeHint="int"/); %MethodCode // Accept at least one pair of integer coordinates. int nPoints = 1 + ((PyTuple_Size(a2) + 1) >> 1); @@ -81,7 +81,7 @@ delete[] points; %End - void putPoints(int index, int firstx, int firsty, ...); + void putPoints(int index, int firstx, int firsty, ... /TypeHint="int"/); %MethodCode // Accept at least one pair of integer coordinates. int nPoints = 1 + ((PyTuple_Size(a3) + 1) >> 1);