From 5e50d3cbb92d4c8f5afdb6283e1588a8267eacfa Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 6 May 2008 07:13:42 +0000 Subject: [PATCH] *** empty log message *** --- src/Qtx/QtxWorkstack.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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 ); -- 2.39.2