Salome HOME
"Wait cursor" during object showing
authoreap <eap@opencascade.com>
Wed, 26 Aug 2015 12:20:58 +0000 (15:20 +0300)
committereap <eap@opencascade.com>
Wed, 26 Aug 2015 12:20:58 +0000 (15:20 +0300)
src/LightApp/LightApp_ShowHideOp.cxx

index 2b8ae4ad5539d0829a10d7e790687e581ec068eb..9c886bb7994c09b19b948834527f8edca779aa40 100644 (file)
@@ -29,6 +29,8 @@
 #include "LightApp_SelectionMgr.h"
 #include "LightApp_Selection.h"
 
+#include "SUIT_OverrideCursor.h"
+
 #ifndef DISABLE_SALOMEOBJECT
   #include <SALOME_ListIO.hxx>
 #endif
@@ -151,6 +153,7 @@ void LightApp_ShowHideOp::startOperation()
     objEntries.append( study->referencedToEntry( *it ) ); 
   
   if( myActionType==DISPLAY || myActionType==DISPLAY_ONLY ) {
+    SUIT_OverrideCursor wc;
     d->Display( objEntries, false, 0 );
     mgr->setSelectedObjects(selObjs);
   }