mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4220 Apply picking cursor only when over a 3d View
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiuViewerCommands.h"
|
||||
#include "RiuViewer.h"
|
||||
|
||||
#include "Rim3dView.h"
|
||||
#include "RimIntersection.h"
|
||||
@@ -49,7 +50,7 @@ RicMeasurementPickEventHandler* RicMeasurementPickEventHandler::instance()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicMeasurementPickEventHandler::registerAsPickEventHandler()
|
||||
{
|
||||
RiaApplication::instance()->setOverrideCursor(Qt::CrossCursor);
|
||||
RiuViewer::setHoverCursor(Qt::CrossCursor);
|
||||
RiuViewerCommands::setPickEventHandler(RicMeasurementPickEventHandler::instance());
|
||||
}
|
||||
|
||||
@@ -58,7 +59,7 @@ void RicMeasurementPickEventHandler::registerAsPickEventHandler()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicMeasurementPickEventHandler::unregisterAsPickEventHandler()
|
||||
{
|
||||
RiaApplication::instance()->restoreOverrideCursor();
|
||||
RiuViewer::clearHoverCursor();
|
||||
RiuViewerCommands::removePickEventHandlerIfActive(RicMeasurementPickEventHandler::instance());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user