From faf444bbd926d883397a11e3a63f2f911ddded5c Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 21 Jul 2005 05:15:32 +0000 Subject: [PATCH] Call to disappeared method QtxWorkstack::OnTop() replaced by call to QWidget::setFocus() --- src/VISU_I/VISU_View_i.cc | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) 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 -- 2.39.2