diff options
| author | Ece Cinucen <ece.cinucen@qt.io> | 2025-08-28 15:24:01 +0200 |
|---|---|---|
| committer | Ece Cinucen <ece.cinucen@qt.io> | 2025-08-28 15:24:21 +0000 |
| commit | 8410147860a9727162f5f3c1d479ea922a0d334a (patch) | |
| tree | a0d7365a4f8d36509eb2b04afc952d37aa45bbfe /sources/pyside6/PySide6/glue/qtgui.cpp | |
| parent | 5608c60f47f6c39a6c1dee5fb165c6d70bd1ee3f (diff) | |
type hints: Add/fix operator << bindings for QPolygon and QPolygonF
- Added missing operator << overloads for QPolygonF and fixed QPolygon operator << return as QPolygon instead of None.
- Added the glue code for QPolygonF as well.
- Stubs now correctly show returns as QPolygon/QPolygonF and chained shift calls type check as expected.
Pick-to: 6.8 6.9
Fixes: PYSIDE-3047
Change-Id: I075e5f3fe6644936a31c158136e033e6970797ce
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/glue/qtgui.cpp')
| -rw-r--r-- | sources/pyside6/PySide6/glue/qtgui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/glue/qtgui.cpp b/sources/pyside6/PySide6/glue/qtgui.cpp index 71b102d3b..1d08344dc 100644 --- a/sources/pyside6/PySide6/glue/qtgui.cpp +++ b/sources/pyside6/PySide6/glue/qtgui.cpp @@ -365,6 +365,11 @@ for (Py_ssize_t i = 0; i < count; ++i){ %PYARG_0 = %CONVERTTOPYTHON[QPolygon *](%CPPSELF); // @snippet qpolygon-operatorlowerlower +// @snippet qpolygonf-operatorlowerlower +*%CPPSELF << %1; +%PYARG_0 = %CONVERTTOPYTHON[QPolygonF *](%CPPSELF); +// @snippet qpolygonf-operatorlowerlower + // @snippet qpixmap %0 = new %TYPE(QPixmap::fromImage(%1)); // @snippet qpixmap |
