mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
add help, limit to card in edit current, add back compat hack
This commit is contained in:
parent
b98e302c70
commit
f4ef8b5123
3 changed files with 6 additions and 5 deletions
|
@ -48,9 +48,8 @@ class CardLayout(QDialog):
|
|||
return
|
||||
self.form = ankiqt.forms.clayout.Ui_Dialog()
|
||||
self.form.setupUi(self)
|
||||
# self.connect(self.form.helpButton, SIGNAL("clicked()"),
|
||||
# self.onHelp)
|
||||
|
||||
self.connect(self.form.buttonBox, SIGNAL("helpRequested()"),
|
||||
self.onHelp)
|
||||
self.setupCards()
|
||||
self.setupFields()
|
||||
restoreGeom(self, "CardLayout")
|
||||
|
@ -285,7 +284,7 @@ order by n""", id=card.id)
|
|||
|
||||
def onHelp(self):
|
||||
QDesktopServices.openUrl(QUrl(ankiqt.appWiki +
|
||||
"DisplayProperties"))
|
||||
"CardLayout"))
|
||||
|
||||
# Fields
|
||||
##########################################################################
|
||||
|
|
|
@ -1475,6 +1475,7 @@ later by using File>Close.
|
|||
self.mainWin.buttonStack.hide()
|
||||
self.switchToEditScreen()
|
||||
self.editor.setFact(self.currentCard.fact)
|
||||
self.editor.card = self.currentCard
|
||||
|
||||
def onFactValid(self, fact):
|
||||
self.mainWin.saveEditorButton.setEnabled(True)
|
||||
|
|
|
@ -68,7 +68,8 @@ cat $temp >> $init
|
|||
rm $temp
|
||||
|
||||
# use older integer format so qt4.4 still works
|
||||
#sed -i 's/setProperty("value", 14)/setProperty("value", QtCore.QVariant(14))/' ankiqt/forms/displayproperties.py
|
||||
sed -i 's/setProperty("value", 14)/setProperty("value", QtCore.QVariant(14))/' \
|
||||
ankiqt/forms/clayout.py
|
||||
|
||||
echo "Building resources.."
|
||||
$pyrcc icons.qrc -o icons_rc.py
|
||||
|
|
Loading…
Reference in a new issue