mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-03 20:26:49 +02:00
[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:
parent
49a3fcb72f
commit
4933911f0b
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,8 @@ class MouseEvent(QObject):
|
||||||
"""
|
"""
|
||||||
def __init__(self, evt):
|
def __init__(self, evt):
|
||||||
super(MouseEvent, self).__init__()
|
super(MouseEvent, self).__init__()
|
||||||
self._x = evt.x()
|
self._x = evt.position().x()
|
||||||
self._y = evt.y()
|
self._y = evt.position().y()
|
||||||
self._button = evt.button()
|
self._button = evt.button()
|
||||||
self._modifiers = evt.modifiers()
|
self._modifiers = evt.modifiers()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue