+ Alt+S shortcut pronounces word.

+ Alt+M shortcut lists matches in scan popup window.
This commit is contained in:
Konstantin Isakov 2009-05-14 19:46:25 +00:00
parent 57af02224a
commit bf866a13e6
2 changed files with 10 additions and 3 deletions

View file

@ -76,7 +76,8 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
this, SLOT( scanEnableToggled( bool ) ) ); this, SLOT( scanEnableToggled( bool ) ) );
navToolbar->addSeparator(); 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 ); navPronounce->setEnabled( false );
connect( navPronounce, SIGNAL( triggered() ), connect( navPronounce, SIGNAL( triggered() ),

View file

@ -60,7 +60,7 @@
<item> <item>
<widget class="QToolButton" name="wordListButton"> <widget class="QToolButton" name="wordListButton">
<property name="toolTip"> <property name="toolTip">
<string>List matches</string> <string>List Matches (Alt+M)</string>
</property> </property>
<property name="text"> <property name="text">
<string>...</string> <string>...</string>
@ -75,12 +75,15 @@
<height>16</height> <height>16</height>
</size> </size>
</property> </property>
<property name="shortcut">
<string>Alt+M</string>
</property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="pronounceButton"> <widget class="QToolButton" name="pronounceButton">
<property name="toolTip"> <property name="toolTip">
<string>Pronounce word</string> <string>Pronounce Word (Alt+S)</string>
</property> </property>
<property name="text"> <property name="text">
<string>...</string> <string>...</string>
@ -89,6 +92,9 @@
<iconset resource="resources.qrc"> <iconset resource="resources.qrc">
<normaloff>:/icons/playsound.png</normaloff>:/icons/playsound.png</iconset> <normaloff>:/icons/playsound.png</normaloff>:/icons/playsound.png</iconset>
</property> </property>
<property name="shortcut">
<string>Alt+S</string>
</property>
<property name="autoRaise"> <property name="autoRaise">
<bool>false</bool> <bool>false</bool>
</property> </property>