aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-22 08:22:42 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-09-22 08:22:42 +0200
commit17a20f95151368a3b92b949b905325865643ca45 (patch)
tree2271f52498f0dfe7bac57888af7c56b85c3d9e02 /sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml
parent98eb59226aca550ae086c00b9c8023f47c44d2b2 (diff)
parent936cc4c72e2393ed59e05dca1100150d88b52645 (diff)
Merge remote-tracking branch 'origin/5.15' into dev
Diffstat (limited to 'sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml')
-rw-r--r--sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml b/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml
index 7d13d18da..a096cb0b4 100644
--- a/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml
+++ b/sources/pyside2/PySide2/QtGui/typesystem_gui_common.xml
@@ -1775,7 +1775,11 @@
<insert-template name="qpainter_drawlist"/>
</inject-code>
</add-function>
+ <!-- PYSIDE-1366: Preferably use the QPolygon overloads first to avoid
+ a costly sequence type check on QPolygon. -->
<modify-function signature="drawPolyline(const QPointF*,int)" remove="all"/>
+ <modify-function signature="drawPolyline(const QPolygon&amp;)" overload-number="0"/>
+ <modify-function signature="drawPolyline(const QPolygonF&amp;)" overload-number="1"/>
<add-function signature="drawPolyline(QVector&lt;QPointF>)">
<inject-code>
<insert-template name="qpainter_drawlist"/>