add help & fix tab order of find&replace

This commit is contained in:
Damien Elmes 2009-02-14 01:07:18 +09:00
parent 1915fb053a
commit 6e3a4b67d3
2 changed files with 8 additions and 0 deletions

View file

@ -780,6 +780,8 @@ where id in %s""" % ids2str(sf))
d = QDialog(self) d = QDialog(self)
frm = ankiqt.forms.findreplace.Ui_Dialog() frm = ankiqt.forms.findreplace.Ui_Dialog()
frm.setupUi(d) frm.setupUi(d)
self.connect(frm.buttonBox, SIGNAL("helpRequested()"),
self.onFindReplaceHelp)
frm.type.insertItems(0, [ frm.type.insertItems(0, [
_("Fields"), _("Fields"),
_("Tags")]) _("Tags")])
@ -807,6 +809,10 @@ where id in %s""" % ids2str(sf))
self.updateSearch() self.updateSearch()
self.updateAfterCardChange() self.updateAfterCardChange()
def onFindReplaceHelp(self):
QDesktopServices.openUrl(QUrl(ankiqt.appWiki +
"Editor#FindReplace"))
# Jumping # Jumping
###################################################################### ######################################################################

View file

@ -82,6 +82,8 @@
<tabstops> <tabstops>
<tabstop>find</tabstop> <tabstop>find</tabstop>
<tabstop>replace</tabstop> <tabstop>replace</tabstop>
<tabstop>type</tabstop>
<tabstop>re</tabstop>
<tabstop>buttonBox</tabstop> <tabstop>buttonBox</tabstop>
</tabstops> </tabstops>
<resources/> <resources/>