mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
link help button in update screen
This commit is contained in:
parent
f7990d5fd6
commit
bff2b2350b
1 changed files with 5 additions and 0 deletions
|
@ -57,12 +57,17 @@ class UpdateMap(QDialog):
|
||||||
self.fieldModels = fieldModels
|
self.fieldModels = fieldModels
|
||||||
self.dialog = ankiqt.forms.importup.Ui_Dialog()
|
self.dialog = ankiqt.forms.importup.Ui_Dialog()
|
||||||
self.dialog.setupUi(self)
|
self.dialog.setupUi(self)
|
||||||
|
self.connect(self.dialog.buttonBox.button(QDialogButtonBox.Help),
|
||||||
|
SIGNAL("clicked()"), self.helpRequested)
|
||||||
for i in range(numFields):
|
for i in range(numFields):
|
||||||
self.dialog.fileField.addItem("Field %d" % (i+1))
|
self.dialog.fileField.addItem("Field %d" % (i+1))
|
||||||
for m in fieldModels:
|
for m in fieldModels:
|
||||||
self.dialog.deckField.addItem(m.name)
|
self.dialog.deckField.addItem(m.name)
|
||||||
self.exec_()
|
self.exec_()
|
||||||
|
|
||||||
|
def helpRequested(self):
|
||||||
|
QDesktopServices.openUrl(QUrl(ankiqt.appWiki + "FileImport"))
|
||||||
|
|
||||||
def accept(self):
|
def accept(self):
|
||||||
self.updateKey = (
|
self.updateKey = (
|
||||||
self.dialog.fileField.currentIndex(),
|
self.dialog.fileField.currentIndex(),
|
||||||
|
|
Loading…
Reference in a new issue