mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
add help to the main importing screen too
This commit is contained in:
parent
bff2b2350b
commit
eddc43697e
2 changed files with 6 additions and 1 deletions
|
@ -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"))
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue