Use Alt-key shortcuts for menu entries.

This commit is contained in:
Bastian Kleineidam 2011-02-09 07:42:47 +01:00
parent dc405a43d1
commit 8fc3856782
2 changed files with 9 additions and 5 deletions

View file

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'ui/editor.ui'
#
# Created: Fri Nov 5 00:55:45 2010
# Created: Wed Feb 9 07:42:24 2011
# by: PyQt4 UI code generator 4.7.3
#
# WARNING! All changes made in this file will be lost!
@ -48,6 +48,7 @@ class Ui_EditorDialog(object):
def retranslateUi(self, EditorDialog):
EditorDialog.setWindowTitle(_("LinkChecker source view"))
self.menuFile.setTitle(_("File"))
self.actionSave.setText(_("Save"))
self.menuFile.setTitle(_("&File"))
self.actionSave.setText(_("&Save"))
self.actionSave.setShortcut(_("Ctrl+S"))

View file

@ -30,7 +30,7 @@
<widget class="QMenuBar" name="menubar">
<widget class="QMenu" name="menuFile">
<property name="title">
<string>File</string>
<string>&amp;File</string>
</property>
<addaction name="actionSave"/>
</widget>
@ -59,7 +59,10 @@
</layout>
<action name="actionSave">
<property name="text">
<string>Save</string>
<string>&amp;Save</string>
</property>
<property name="shortcut">
<string>Ctrl+S</string>
</property>
</action>
</widget>