]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
[bos #42109][CEA] (2024) Import med and show python console shortcuts does not work...
authordish <dmitrii.shvydkoi@opencascade.com>
Wed, 3 Jul 2024 10:54:30 +0000 (10:54 +0000)
committerdish <dmitrii.shvydkoi@opencascade.com>
Wed, 3 Jul 2024 10:54:30 +0000 (10:54 +0000)
Revert changes made for debug.

src/LightApp/LightApp_Application.cxx
src/SUIT/SUIT_ShortcutMgr.h
src/SalomeApp/SalomeApp_Application.cxx

index 5c17af98d5c4c4b6d0c260551f95cf3f367e85dc..a83faafc4d04fff81308ba8d08fcc9b1935b9868 100644 (file)
@@ -2576,7 +2576,7 @@ QWidget* LightApp_Application::createWindow( const int flag )
     ob->treeView()->header()->setSectionResizeMode(SUIT_DataObject::VisibilityId, QHeaderView::Fixed);
     ob->treeView()->header()->moveSection(SUIT_DataObject::NameId,SUIT_DataObject::VisibilityId);
     ob->treeView()->setColumnWidth(SUIT_DataObject::VisibilityId, VISIBILITY_COLUMN_WIDTH);
-    ob->setProperty( "shortcut", QKeySequence( "Ctrl+Shift+O" ) );
+    ob->setProperty( "shortcut", QKeySequence( "Alt+Shift+O" ) );
     wid = ob;
     ob->connectPopupRequest( this, SLOT( onConnectPopupRequest( SUIT_PopupClient*, QContextMenuEvent* ) ) );
   }
@@ -2596,7 +2596,7 @@ QWidget* LightApp_Application::createWindow( const int flag )
     pyCons->setFont( resMgr->fontValue( "PyConsole", "font" ) );
     pyCons->setIsShowBanner( resMgr->booleanValue( "PyConsole", "show_banner", true ) );
     pyCons->setAutoCompletion( resMgr->booleanValue( "PyConsole", "auto_completion", true ) );
-    pyCons->setProperty( "shortcut", QKeySequence( "Ctrl+Shift+P" ) );
+    pyCons->setProperty( "shortcut", QKeySequence( "Alt+Shift+P" ) );
     wid = pyCons;
   }
 #endif
index 4c2244438a033d36f5f2df2ffd2698ca1434b502..b0d813931723706c9816f5d468a52cc4f8a92b99 100644 (file)
@@ -45,7 +45,7 @@ class QJsonObject;
 #endif
 
 // Define SHORTCUT_MGR_DBG to enable SUIT_ShortcutMgr debug logging.
-#define SHORTCUT_MGR_DBG
+// #define SHORTCUT_MGR_DBG
 /*! \returns true, if SUIT_ShortcutMgr debug logging is enabled. */
 SUIT_EXPORT extern inline bool ShCutDbg() {
 #ifdef SHORTCUT_MGR_DBG
index 89130d41825641eb60a710068137c9999da9d117..6a5847fd431e1be8e175032219eb191ac1281e78 100644 (file)
@@ -1116,7 +1116,7 @@ QWidget* SalomeApp_Application::createWindow( const int flag )
       ob->setAutoSizeFirstColumn(autoSizeFirst);
       ob->setAutoSizeColumns(autoSize);
       ob->setResizeOnExpandItem(resizeOnExpandItem);
-      ob->setProperty( "shortcut", QKeySequence( "Ctrl+Shift+O" ) );
+      ob->setProperty( "shortcut", QKeySequence( "Alt+Shift+O" ) );
 
       for ( int i = SalomeApp_DataObject::EntryId; i < SalomeApp_DataObject::LastId; i++ )
       {
@@ -1151,7 +1151,7 @@ QWidget* SalomeApp_Application::createWindow( const int flag )
     pyCons->setFont(resourceMgr()->fontValue( "PyConsole", "font" ));
     pyCons->setIsShowBanner(resourceMgr()->booleanValue( "PyConsole", "show_banner", true ));
     pyCons->setAutoCompletion( resMgr->booleanValue( "PyConsole", "auto_completion", true ) );
-    pyCons->setProperty( "shortcut", QKeySequence( "Ctrl+Shift+P" ) );
+    pyCons->setProperty( "shortcut", QKeySequence( "Alt+Shift+P" ) );
     wid = pyCons;
   }
   else if ( flag == WT_NoteBook )