Qt6: Fix QMouseEvent.x() and .y() deprecation.

This commit is contained in:
Kristian Bendiksen
2024-10-02 11:03:10 +02:00
parent a04d41b043
commit 835cf4a53c
10 changed files with 40 additions and 37 deletions

View File

@@ -128,8 +128,9 @@ bool RicPointTangentManipulator::eventFilter( QObject* obj, QEvent* inputEvent )
{
auto* mouseEvent = static_cast<QMouseEvent*>( inputEvent );
cvf::ref<cvf::RayIntersectSpec> rayIs =
m_viewer->rayIntersectSpecFromWindowCoordinates( mouseEvent->pos().x(), mouseEvent->pos().y(), m_isDraggingInComparisonView );
cvf::ref<cvf::RayIntersectSpec> rayIs = m_viewer->rayIntersectSpecFromWindowCoordinates( mouseEvent->position().x(),
mouseEvent->position().y(),
m_isDraggingInComparisonView );
if ( !rayIs.isNull() && rayIs->ray() )
{