Salome HOME
[bos #35160][EDF](2023-T1) Keyboard shortcuts.
[modules/gui.git] / src / Qtx / QtxWorkspaceAction.cxx
index 4b37a3c7588f6c0b0dbdfe0682dd6ec57487983d..0decdea84accb12d928d0dff4e2192a2b61b35eb 100644 (file)
@@ -78,8 +78,8 @@ QtxWorkspace* QtxWorkspaceAction::workspace() const
 
 /*!
   \brief Set actions to be visible in the menu.
-  
-  Actions, which IDs are set in \a flags parameter, will be shown in the 
+
+  Actions, which IDs are set in \a flags parameter, will be shown in the
   menu bar. Other actions will not be shown.
 
   \param flags ORed together actions flags
@@ -164,17 +164,6 @@ QString QtxWorkspaceAction::statusTip( const int id ) const
   return txt;
 }
 
-/*!
-  \brief Set keyboard accelerator for the specified action.
-  \param id menu action ID
-  \param a new keyboard accelerator
-*/
-void QtxWorkspaceAction::setAccel( const int id, const int a )
-{
-  if ( action( id ) )
-    action( id )->setShortcut( a );
-}
-
 /*!
   \brief Set menu item icon for the specified action.
   \param id menu action ID
@@ -403,7 +392,7 @@ void QtxWorkspaceAction::activateItem( const int idx )
 
 /*!
   \brief Called when menu item is activated by the user.
-  
+
   Perform the corresponding action.
 
   \param id menu item identifier