From bf866a13e60264267d7c5f664ffa2afa327f339b Mon Sep 17 00:00:00 2001 From: Konstantin Isakov Date: Thu, 14 May 2009 19:46:25 +0000 Subject: [PATCH] + Alt+S shortcut pronounces word. + Alt+M shortcut lists matches in scan popup window. --- src/mainwindow.cc | 3 ++- src/scanpopup.ui | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/mainwindow.cc b/src/mainwindow.cc index 1029381f..cbb5735a 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -76,7 +76,8 @@ MainWindow::MainWindow( Config::Class & cfg_ ): this, SLOT( scanEnableToggled( bool ) ) ); navToolbar->addSeparator(); - navPronounce = navToolbar->addAction( QIcon( ":/icons/playsound.png" ), tr( "Pronounce word" ) ); + navPronounce = navToolbar->addAction( QIcon( ":/icons/playsound.png" ), tr( "Pronounce Word (Alt+S)" ) ); + navPronounce->setShortcut( QKeySequence( "Alt+S" ) ); navPronounce->setEnabled( false ); connect( navPronounce, SIGNAL( triggered() ), diff --git a/src/scanpopup.ui b/src/scanpopup.ui index f1cfaccb..1957a517 100644 --- a/src/scanpopup.ui +++ b/src/scanpopup.ui @@ -60,7 +60,7 @@ - List matches + List Matches (Alt+M) ... @@ -75,12 +75,15 @@ 16 + + Alt+M + - Pronounce word + Pronounce Word (Alt+S) ... @@ -89,6 +92,9 @@ :/icons/playsound.png:/icons/playsound.png + + Alt+S + false