Added menu accelerators.

This commit is contained in:
Tvangeste 2012-12-30 10:29:19 +01:00
parent 747b227653
commit 321df3c224
3 changed files with 10 additions and 10 deletions

View file

@ -11,7 +11,7 @@ using std::vector;
DictionaryBar::DictionaryBar( QWidget * parent, DictionaryBar::DictionaryBar( QWidget * parent,
Config::Events & events, QString const & _editDictionaryCommand ): Config::Events & events, QString const & _editDictionaryCommand ):
QToolBar( tr( "Dictionary Bar" ), parent ), QToolBar( tr( "&Dictionary Bar" ), parent ),
mutedDictionaries( 0 ), mutedDictionaries( 0 ),
configEvents( events ), configEvents( events ),
editDictionaryCommand( _editDictionaryCommand ), editDictionaryCommand( _editDictionaryCommand ),

View file

@ -59,8 +59,8 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
closeRestTabAction( this ), closeRestTabAction( this ),
switchToNextTabAction( this ), switchToNextTabAction( this ),
switchToPrevTabAction( this ), switchToPrevTabAction( this ),
showDictBarNamesAction( tr( "Show Names in Dictionary Bar" ), this ), showDictBarNamesAction( tr( "Show Names in Dictionary &Bar" ), this ),
useSmallIconsInToolbarsAction( tr( "Show Small Icons in Toolbars" ), this ), useSmallIconsInToolbarsAction( tr( "Show Small Icons in &Toolbars" ), this ),
toggleMenuBarAction( tr( "&Menubar" ), this ), toggleMenuBarAction( tr( "&Menubar" ), this ),
switchExpandModeAction( this ), switchExpandModeAction( this ),
trayIconMenu( this ), trayIconMenu( this ),
@ -90,7 +90,7 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
mainStatusBar = new MainStatusBar( this ); mainStatusBar = new MainStatusBar( this );
// Make the toolbar // Make the toolbar
navToolbar = addToolBar( tr( "Navigation" ) ); navToolbar = addToolBar( tr( "&Navigation" ) );
navToolbar->setObjectName( "navToolbar" ); navToolbar->setObjectName( "navToolbar" );
navBack = navToolbar->addAction( QIcon( ":/icons/previous.png" ), tr( "Back" ) ); navBack = navToolbar->addAction( QIcon( ":/icons/previous.png" ), tr( "Back" ) );

View file

@ -128,7 +128,7 @@
</widget> </widget>
<widget class="QDockWidget" name="searchPane"> <widget class="QDockWidget" name="searchPane">
<property name="windowTitle"> <property name="windowTitle">
<string>Search Pane</string> <string>&amp;Search Pane</string>
</property> </property>
<attribute name="dockWidgetArea"> <attribute name="dockWidgetArea">
<number>1</number> <number>1</number>
@ -255,7 +255,7 @@
</widget> </widget>
<widget class="QDockWidget" name="dictsPane"> <widget class="QDockWidget" name="dictsPane">
<property name="windowTitle"> <property name="windowTitle">
<string>Results Navigation Pane</string> <string>&amp;Results Navigation Pane</string>
</property> </property>
<attribute name="dockWidgetArea"> <attribute name="dockWidgetArea">
<number>2</number> <number>2</number>
@ -378,12 +378,12 @@
</action> </action>
<action name="printPreview"> <action name="printPreview">
<property name="text"> <property name="text">
<string>Print Preview</string> <string>Print Pre&amp;view</string>
</property> </property>
</action> </action>
<action name="rescanFiles"> <action name="rescanFiles">
<property name="text"> <property name="text">
<string>Rescan Files</string> <string>&amp;Rescan Files</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+F5</string> <string>Ctrl+F5</string>
@ -400,7 +400,7 @@
<normaloff>:/icons/addtab.png</normaloff>:/icons/addtab.png</iconset> <normaloff>:/icons/addtab.png</normaloff>:/icons/addtab.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>New Tab</string> <string>&amp;New Tab</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+T</string> <string>Ctrl+T</string>
@ -437,7 +437,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="text"> <property name="text">
<string>Always on Top</string> <string>&amp;Always on Top</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Always on Top</string> <string>Always on Top</string>