change shortcuts to avoid conflicts, remove alt-a indicator

This commit is contained in:
Damien Elmes 2008-11-19 18:43:24 +09:00
parent bc80501454
commit 1350c9c338
2 changed files with 3 additions and 3 deletions

View file

@ -46,7 +46,7 @@ class AddCards(QDialog):
QDesktopServices.openUrl(QUrl(ankiqt.appWiki + "AddItems"))
def addButtons(self):
self.addButton = QPushButton(_("&Add"))
self.addButton = QPushButton(_("Add"))
self.dialog.buttonBox.addButton(self.addButton,
QDialogButtonBox.ActionRole)
self.addButton.setShortcut(_("Ctrl+Return"))

View file

@ -23,7 +23,7 @@ class ModelChooser(QHBoxLayout):
label = QLabel(_("<b>Model</b>:"))
self.addWidget(label)
self.models = QComboBox()
s = QShortcut(QKeySequence(_("Ctrl+Alt+m")), self.parent)
s = QShortcut(QKeySequence(_("Shift+Alt+m")), self.parent)
s.connect(s, SIGNAL("activated()"),
lambda: self.models.showPopup())
self.drawModels()
@ -40,7 +40,7 @@ class ModelChooser(QHBoxLayout):
self.connect(self.add, SIGNAL("clicked()"), self.onAdd)
self.edit = QPushButton()
self.edit.setIcon(QIcon(":/icons/edit.png"))
self.edit.setShortcut(_("Ctrl+Alt+e"))
self.edit.setShortcut(_("Shift+Alt+e"))
self.edit.setToolTip(_("Edit the current model"))
self.edit.setAutoDefault(False)
self.addWidget(self.edit)