fix build in ubuntu via using deprecated Qt function
This commit is contained in:
parent
c618ce39af
commit
f7977eb851
|
|
@ -1243,7 +1243,7 @@ static void wheelmove_scroll( const QWheelEvent *event, CamWnd& camwnd ){
|
||||||
}
|
}
|
||||||
|
|
||||||
Camera_Freemove_updateAxes( cam );
|
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 ) {
|
else if ( angleDelta < 0 ) {
|
||||||
if ( cam.movementflags & MOVE_FOCUS ) {
|
if ( cam.movementflags & MOVE_FOCUS ) {
|
||||||
|
|
@ -1257,7 +1257,7 @@ static void wheelmove_scroll( const QWheelEvent *event, CamWnd& camwnd ){
|
||||||
}
|
}
|
||||||
|
|
||||||
Camera_Freemove_updateAxes( cam );
|
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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -530,10 +530,10 @@ protected:
|
||||||
g_pParentWnd->SetActiveXY( &m_xywnd );
|
g_pParentWnd->SetActiveXY( &m_xywnd );
|
||||||
}
|
}
|
||||||
if ( event->angleDelta().y() > 0 ) {
|
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 ) {
|
else if ( event->angleDelta().y() < 0 ) {
|
||||||
m_xywnd.ZoomOutWithMouse( event->position().x(), event->position().y() );
|
m_xywnd.ZoomOutWithMouse( event->x(), event->y() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user