update some deprecated qt api calls

This commit is contained in:
itsmattkc
2022-10-29 09:46:57 -07:00
parent ce650085a3
commit 8657363037
2 changed files with 9 additions and 5 deletions
@@ -118,10 +118,14 @@ bool HandMovableView::HandRelease(QMouseEvent *event)
if (dragging_hand_) {
// Transform mouse event to act like the left button is pressed
QMouseEvent transformed(event->type(),
event->localPos(),
event->position(),
event->scenePosition(),
event->globalPosition(),
Qt::LeftButton,
Qt::LeftButton,
event->modifiers());
event->modifiers(),
event->source(),
event->pointingDevice());
super::mouseReleaseEvent(&transformed);