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

This commit is contained in:
Kristian Bendiksen committed 2024-10-04 15:27:43 +02:00
1 parent a04d41b043
commit 835cf4a53c
10 files changed
+40 -37

No files matched your search

@@ -139,11 +139,11 @@ void RiuWellLogTrack::onMouseMoveEvent( QMouseEvent* mouseEvent )
double depth = 0.0;
if ( depthTrackPlot->depthOrientation() == RiaDefines::Orientation::HORIZONTAL )
{
depth = axisMap.invTransform( mouseEvent->pos().x() );
depth = axisMap.invTransform( mouseEvent->position().x() );
}
else
{
depth = axisMap.invTransform( mouseEvent->pos().y() );
depth = axisMap.invTransform( mouseEvent->position().y() );
}
depthTrackPlot->setDepthMarkerPosition( depth );