From fc376988a75ac98f10f28baa4b2898cf9f65b701 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 28 May 2021 08:08:27 +0200 Subject: PySide6: Extend the porting guide Fixes: PYSIDE-1583 Change-Id: Id2fc50237c8c5256a280f822b4c2e1445a9b9aec Reviewed-by: Christian Tismer (cherry picked from commit 76c6b9c85eb137670046c8bbb7e48a0d5f35edc6) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit 1fb2a176a915daedd4e7179fc9392ee362e161eb) Reviewed-by: Friedemann Kleint --- sources/pyside6/doc/porting_from2.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/pyside6/doc/porting_from2.rst b/sources/pyside6/doc/porting_from2.rst index ac4474df0..aa3e41780 100644 --- a/sources/pyside6/doc/porting_from2.rst +++ b/sources/pyside6/doc/porting_from2.rst @@ -80,9 +80,11 @@ accordingly. For example: ``QGuiApplication.primaryScreen()`` or ``QGuiApplication.screens()``. * ``QFontMetrics.width()`` has been renamed to ``horizontalAdvance()``. * ``QMouseEvent.pos()`` and ``QMouseEvent.globalPos()`` returning a ``QPoint`` + as well as ``QMouseEvent.x()`` and ``QMouseEvent.y()`` returning ``int`` are now deprecated. ``QMouseEvent.position()`` and ``QMouseEvent.globalPosition()`` returning a ``QPointF`` should be used instead. + * ``Qt.MidButton`` has been renamed to ``Qt.MiddleButton``. * ``QOpenGLVersionFunctionsFactory.get()`` instead of ``QOpenGLContext.versionFunctions()`` should be used to obtain *Open GL* functions. -- cgit v1.2.3