mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
Qt6: Fix QMouseEvent.x() and .y() deprecation.
This commit is contained in:
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 );
|
||||
|
||||
Reference in new issue
Block a user