From: jfa Date: Thu, 21 Jul 2005 05:15:32 +0000 (+0000) Subject: Call to disappeared method QtxWorkstack::OnTop() replaced by call to QWidget::setFocus() X-Git-Tag: V3_0_1~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=faf444bbd926d883397a11e3a63f2f911ddded5c;p=modules%2Fvisu.git Call to disappeared method QtxWorkstack::OnTop() replaced by call to QWidget::setFocus() --- diff --git a/src/VISU_I/VISU_View_i.cc b/src/VISU_I/VISU_View_i.cc index 6f010f91..a83055ce 100644 --- a/src/VISU_I/VISU_View_i.cc +++ b/src/VISU_I/VISU_View_i.cc @@ -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(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