From f7977eb85182b0235b7075649b72f68841d5e7c3 Mon Sep 17 00:00:00 2001 From: Garux Date: Thu, 27 Oct 2022 10:04:56 +0300 Subject: [PATCH] fix build in ubuntu via using deprecated Qt function --- radiant/camwindow.cpp | 4 ++-- radiant/xywindow.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/radiant/camwindow.cpp b/radiant/camwindow.cpp index 99196452..0f23fdf9 100644 --- a/radiant/camwindow.cpp +++ b/radiant/camwindow.cpp @@ -1243,7 +1243,7 @@ static void wheelmove_scroll( const QWheelEvent *event, CamWnd& camwnd ){ } Camera_Freemove_updateAxes( cam ); - camera_zoom( camwnd, event->position().x(), event->position().y(), g_camwindow_globals_private.m_nScrollMoveSpeed ); + camera_zoom( camwnd, event->x(), event->y(), g_camwindow_globals_private.m_nScrollMoveSpeed ); } else if ( angleDelta < 0 ) { if ( cam.movementflags & MOVE_FOCUS ) { @@ -1257,7 +1257,7 @@ static void wheelmove_scroll( const QWheelEvent *event, CamWnd& camwnd ){ } Camera_Freemove_updateAxes( cam ); - camera_zoom( camwnd, event->position().x(), event->position().y(), -g_camwindow_globals_private.m_nScrollMoveSpeed ); + camera_zoom( camwnd, event->x(), event->y(), -g_camwindow_globals_private.m_nScrollMoveSpeed ); } } diff --git a/radiant/xywindow.cpp b/radiant/xywindow.cpp index 42a9275b..12cb0e68 100644 --- a/radiant/xywindow.cpp +++ b/radiant/xywindow.cpp @@ -530,10 +530,10 @@ protected: g_pParentWnd->SetActiveXY( &m_xywnd ); } if ( event->angleDelta().y() > 0 ) { - m_xywnd.ZoomInWithMouse( event->position().x(), event->position().y() ); + m_xywnd.ZoomInWithMouse( event->x(), event->y() ); } else if ( event->angleDelta().y() < 0 ) { - m_xywnd.ZoomOutWithMouse( event->position().x(), event->position().y() ); + m_xywnd.ZoomOutWithMouse( event->x(), event->y() ); } }