From eddc43697eff6f527f65cc4a24fa8c43946e715b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 11 Jan 2011 22:33:32 +0900 Subject: [PATCH] add help to the main importing screen too --- ankiqt/ui/importing.py | 5 +++++ designer/importing.ui | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ankiqt/ui/importing.py b/ankiqt/ui/importing.py index 2d1657f30..26b8f0ea8 100644 --- a/ankiqt/ui/importing.py +++ b/ankiqt/ui/importing.py @@ -81,6 +81,8 @@ class ImportDialog(QDialog): self.parent = parent self.dialog = ankiqt.forms.importing.Ui_ImportDialog() self.dialog.setupUi(self) + self.connect(self.dialog.buttonBox.button(QDialogButtonBox.Help), + SIGNAL("clicked()"), self.helpRequested) self.setupMappingFrame() self.setupOptions() self.getFile() @@ -308,3 +310,6 @@ you can enter it here. Use \\t to represent tab."""), def reject(self): self.modelChooser.deinit() QDialog.reject(self) + + def helpRequested(self): + QDesktopServices.openUrl(QUrl(ankiqt.appWiki + "FileImport")) diff --git a/designer/importing.ui b/designer/importing.ui index f2454df23..43f00a94a 100644 --- a/designer/importing.ui +++ b/designer/importing.ui @@ -142,7 +142,7 @@ Qt::Horizontal - QDialogButtonBox::Close + QDialogButtonBox::Close|QDialogButtonBox::Help