mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
remove broken accelerator from preview button; add tooltip
This commit is contained in:
parent
4f073f0b85
commit
d44348ea47
2 changed files with 3 additions and 1 deletions
|
@ -383,6 +383,8 @@ class Browser(QMainWindow):
|
||||||
# edit
|
# edit
|
||||||
c(f.actionUndo, s, self.mw.onUndo)
|
c(f.actionUndo, s, self.mw.onUndo)
|
||||||
c(f.previewButton, SIGNAL("clicked()"), self.onTogglePreview)
|
c(f.previewButton, SIGNAL("clicked()"), self.onTogglePreview)
|
||||||
|
f.previewButton.setToolTip(_("Preview Selected Card (%s)") %
|
||||||
|
shortcut(_("Ctrl+Shift+P")))
|
||||||
c(f.actionInvertSelection, s, self.invertSelection)
|
c(f.actionInvertSelection, s, self.invertSelection)
|
||||||
c(f.actionSelectNotes, s, self.selectNotes)
|
c(f.actionSelectNotes, s, self.selectNotes)
|
||||||
c(f.actionFindReplace, s, self.onFindReplace)
|
c(f.actionFindReplace, s, self.onFindReplace)
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
<item row="0" column="2">
|
<item row="0" column="2">
|
||||||
<widget class="QPushButton" name="previewButton">
|
<widget class="QPushButton" name="previewButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Preview</string>
|
<string>Preview</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
<string>Ctrl+Shift+P</string>
|
<string>Ctrl+Shift+P</string>
|
||||||
|
|
Loading…
Reference in a new issue