mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Qt6: Fix QMouseEvent.x() and .y() deprecation.
This commit is contained in:
@@ -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() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user