From 6e3a4b67d391ad05d0414b8d39339c7bd60f79e6 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 14 Feb 2009 01:07:18 +0900 Subject: [PATCH] add help & fix tab order of find&replace --- ankiqt/ui/cardlist.py | 6 ++++++ designer/findreplace.ui | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ankiqt/ui/cardlist.py b/ankiqt/ui/cardlist.py index 544faa18c..8eec288ce 100644 --- a/ankiqt/ui/cardlist.py +++ b/ankiqt/ui/cardlist.py @@ -780,6 +780,8 @@ where id in %s""" % ids2str(sf)) d = QDialog(self) frm = ankiqt.forms.findreplace.Ui_Dialog() frm.setupUi(d) + self.connect(frm.buttonBox, SIGNAL("helpRequested()"), + self.onFindReplaceHelp) frm.type.insertItems(0, [ _("Fields"), _("Tags")]) @@ -807,6 +809,10 @@ where id in %s""" % ids2str(sf)) self.updateSearch() self.updateAfterCardChange() + def onFindReplaceHelp(self): + QDesktopServices.openUrl(QUrl(ankiqt.appWiki + + "Editor#FindReplace")) + # Jumping ###################################################################### diff --git a/designer/findreplace.ui b/designer/findreplace.ui index 5854e043d..a8f6f7bf1 100644 --- a/designer/findreplace.ui +++ b/designer/findreplace.ui @@ -82,6 +82,8 @@ find replace + type + re buttonBox