[components] Edge: Remove use of deprecated functions

QMouseEvent::x() and QMouseEvent::y() have been marked as deprecated and
should be replaced with QMouseEvent::position().x() and
QMouseEvent::position().y().
This commit is contained in:
Candice Bentéjac 2024-10-08 11:37:46 +02:00
parent 49a3fcb72f
commit 4933911f0b

View file

@ -9,8 +9,8 @@ class MouseEvent(QObject):
"""
def __init__(self, evt):
super(MouseEvent, self).__init__()
self._x = evt.x()
self._y = evt.y()
self._x = evt.position().x()
self._y = evt.position().y()
self._button = evt.button()
self._modifiers = evt.modifiers()