From: stv Date: Tue, 6 May 2008 07:13:42 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5e50d3cbb92d4c8f5afdb6283e1588a8267eacfa;p=modules%2Fgui.git *** empty log message *** --- diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index 3a3ee869b..548c4cc07 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -1358,6 +1358,13 @@ QtxWorkstack::QtxWorkstack( QWidget* parent ) connect( myActionsMap[Close], SIGNAL( triggered( bool ) ), this, SLOT( onCloseWindow() ) ); connect( myActionsMap[Rename], SIGNAL( triggered( bool ) ), this, SLOT( onRename() ) ); + // Action shortcut will work when action added in any widget. + for ( QMap::iterator it = myActionsMap.begin(); it != myActionsMap.end(); ++it ) + { + addAction( it.value() ); + it.value()->setShortcutContext( Qt::ApplicationShortcut ); + } + QVBoxLayout* base = new QVBoxLayout( this ); base->setMargin( 0 );