Salome HOME
refs #1461: draft patch for some simple acceleration
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_BathymetrySelectionOp.cxx
index 526c2c218cc6297754b470b4729cdd1c107afb16..165dcc88f7bd0d5981f978376e60eb0fae7c3d56 100644 (file)
@@ -26,6 +26,7 @@
 #include <OCCViewer_ViewManager.h>
 #include <LightApp_Application.h>
 #include <QAction>
+#include <QApplication>
 
 HYDROGUI_BathymetrySelectionOp::HYDROGUI_BathymetrySelectionOp( HYDROGUI_Module* theModule )
 : HYDROGUI_Operation( theModule ), myIsActive( false )
@@ -90,6 +91,8 @@ void HYDROGUI_BathymetrySelectionOp::activateSelection( bool isActive )
   if( myIsActive==isActive )
     return;
 
+  qApp->setOverrideCursor( Qt::WaitCursor );
+
   getContext( module() )->ClearSelected();
 
   Handle(AIS_InteractiveContext) ctx = getContext( module() );
@@ -118,4 +121,6 @@ void HYDROGUI_BathymetrySelectionOp::activateSelection( bool isActive )
   }
 
   myIsActive = isActive;
+
+  qApp->restoreOverrideCursor();
 }