Skip to content

Commit

Permalink
QMouseEvent.x/y is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschmeisser committed Jan 15, 2024
1 parent cd6ecea commit 344b106
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rviz/viewport_mouse_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@ class ViewportMouseEvent
: panel(p)
, viewport(vp)
, type(e->type())
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
, x(e->position().x())
, y(e->position().y())
#else
, x(e->x())
, y(e->y())
#endif
, wheel_delta(0)
, acting_button(e->button())
, buttons_down(e->buttons())
Expand Down

0 comments on commit 344b106

Please sign in to comment.