From: asv Date: Thu, 9 Mar 2006 14:17:55 +0000 (+0000) Subject: creation of accelerator is changed, now it is done through getAccel() static function. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=86755d2472fc69992fd76325500feaa49c7e04bc;p=modules%2Fgui.git creation of accelerator is changed, now it is done through getAccel() static function. --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 7a055b9a4..28f528334 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -173,7 +173,8 @@ myPrefs( 0 ) mySelMgr = new LightApp_SelectionMgr( this ); - myAccel = new SUIT_Accel( desktop() ); + myAccel = SUIT_Accel::getAccel(); + #ifndef DISABLE_OCCVIEWER myAccel->setActionKey( SUIT_Accel::PanLeft, CTRL+Key_Left, OCCViewer_Viewer::Type() ); myAccel->setActionKey( SUIT_Accel::PanRight, CTRL+Key_Right, OCCViewer_Viewer::Type() ); @@ -1427,7 +1428,7 @@ QWidget* LightApp_Application::createWindow( const int flag ) { OB_Browser* ob = new OB_Browser( desktop() ); ob->setAutoUpdate( true ); - ob->setAutoOpenLevel( 1 ); + //ob->setAutoOpenLevel( 1 ); // commented by ASV as a fix to bug IPAL10107 ob->setCaption( tr( "OBJECT_BROWSER" ) ); OB_ListView* ob_list = dynamic_cast( const_cast( ob->listView() ) );