mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
+ Alt+S shortcut pronounces word.
+ Alt+M shortcut lists matches in scan popup window.
This commit is contained in:
parent
57af02224a
commit
bf866a13e6
|
@ -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() ),
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue