From: asl Date: Wed, 12 Apr 2006 09:40:08 +0000 (+0000) Subject: PAL11954 - "Point view" viewer must be activated on PostPro loading X-Git-Tag: T3_2_0b1_pre1~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=275fb2d89d1278e4d554f7f468d1b54118f3d80a;p=modules%2Fgui.git PAL11954 - "Point view" viewer must be activated on PostPro loading --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 4c4a9a615..36b208edf 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -1291,9 +1291,6 @@ SUIT_ViewManager* LightApp_Application::createViewManager( const QString& vmType if ( viewWin && desktop() ) viewWin->resize( (int)( desktop()->width() * 0.6 ), (int)( desktop()->height() * 0.6 ) ); - connect( viewMgr, SIGNAL( lastViewClosed( SUIT_ViewManager* ) ), - this, SLOT( onCloseView( SUIT_ViewManager* ) ) ); - return viewMgr; } @@ -2146,6 +2143,14 @@ void LightApp_Application::onWCDestroyed( QObject* ob ) } } +/*! redefined to connect */ +void LightApp_Application::addViewManager( SUIT_ViewManager* vm ) +{ + connect( vm, SIGNAL( lastViewClosed( SUIT_ViewManager* ) ), + this, SLOT( onCloseView( SUIT_ViewManager* ) ) ); + STD_Application::addViewManager( vm ); +} + /*! redefined to remove view manager from memory */ void LightApp_Application::removeViewManager( SUIT_ViewManager* vm ) { diff --git a/src/LightApp/LightApp_Application.h b/src/LightApp/LightApp_Application.h index bf54e9bb4..74725dc2a 100644 --- a/src/LightApp/LightApp_Application.h +++ b/src/LightApp/LightApp_Application.h @@ -108,6 +108,7 @@ public: void updateActions(); SUIT_ViewManager* getViewManager( const QString&, const bool ); + virtual void addViewManager( SUIT_ViewManager* ); virtual void removeViewManager( SUIT_ViewManager* ); QWidget* getWindow( const int, const int = -1 ); QWidget* window( const int, const int = -1 ) const;