remove broken accelerator from preview button; add tooltip

This commit is contained in:
Damien Elmes 2013-05-22 10:04:34 +09:00
parent 4f073f0b85
commit d44348ea47
2 changed files with 3 additions and 1 deletions

View file

@ -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)

View file

@ -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>&amp;Preview</string> <string>Preview</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+Shift+P</string> <string>Ctrl+Shift+P</string>