]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Call to disappeared method QtxWorkstack::OnTop() replaced by call to QWidget::setFocus()
authorjfa <jfa@opencascade.com>
Thu, 21 Jul 2005 05:15:32 +0000 (05:15 +0000)
committerjfa <jfa@opencascade.com>
Thu, 21 Jul 2005 05:15:32 +0000 (05:15 +0000)
src/VISU_I/VISU_View_i.cc

index 6f010f91ea96d1735e410315177c6484c36ff3cc..a83055ce74a88a13f86fd93e63701dbb8325b08f 100644 (file)
@@ -279,30 +279,22 @@ namespace VISU {
   {
     struct TOnTopEvent: public SALOME_Event
     {
-      SalomeApp_Application * myApplication;
-      SUIT_ViewWindow       * myViewWindow;
+      SUIT_ViewWindow * myViewWindow;
 
     public:
-      TOnTopEvent (SalomeApp_Application * theApplication,
-                  SUIT_ViewWindow       * theViewWindow):
-        myApplication(theApplication),
+      TOnTopEvent (SUIT_ViewWindow * theViewWindow):
         myViewWindow(theViewWindow)
       {}
 
       virtual void Execute()
       {
-       SUIT_Desktop* desk = myApplication->desktop();
-       STD_TabDesktop* tabDesk = dynamic_cast<STD_TabDesktop*>(desk);
-       if (tabDesk) {
-         QtxWorkstack* workstack = tabDesk->workstack();
-         if (workstack) {
-            workstack->OnTop(myViewWindow);
-          }
+       if (myViewWindow) {
+         myViewWindow->setFocus();
         }
       }
     };
 
-    ProcessVoidEvent(new TOnTopEvent(myApplication,myViewWindow));
+    ProcessVoidEvent(new TOnTopEvent(myViewWindow));
   }
 
   struct TAttractEvent: public SALOME_Event