add help to the main importing screen too

This commit is contained in:
Damien Elmes 2011-01-11 22:33:32 +09:00
parent bff2b2350b
commit eddc43697e
2 changed files with 6 additions and 1 deletions

View file

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

View file

@ -142,7 +142,7 @@
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Close</set>
<set>QDialogButtonBox::Close|QDialogButtonBox::Help</set>
</property>
</widget>
</item>