mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
Reverting "remove obsolete call"
This commit is contained in:
parent
595a7deef4
commit
1570f65c48
1 changed files with 8 additions and 0 deletions
|
@ -23,6 +23,7 @@ class AddCards(QDialog):
|
||||||
self.setupEditor()
|
self.setupEditor()
|
||||||
self.addChooser()
|
self.addChooser()
|
||||||
self.addButtons()
|
self.addButtons()
|
||||||
|
self.setupStatus()
|
||||||
self.modelChanged(self.parent.deck.currentModel)
|
self.modelChanged(self.parent.deck.currentModel)
|
||||||
self.addedItems = 0
|
self.addedItems = 0
|
||||||
restoreGeom(self, "add")
|
restoreGeom(self, "add")
|
||||||
|
@ -61,6 +62,13 @@ class AddCards(QDialog):
|
||||||
QDialogButtonBox.HelpRole)
|
QDialogButtonBox.HelpRole)
|
||||||
self.connect(self.helpButton, SIGNAL("clicked()"), self.helpRequested)
|
self.connect(self.helpButton, SIGNAL("clicked()"), self.helpRequested)
|
||||||
|
|
||||||
|
def setupStatus(self):
|
||||||
|
"Make the status background the same colour as the frame."
|
||||||
|
p = self.dialog.status.palette()
|
||||||
|
c = unicode(p.color(QPalette.Window).name())
|
||||||
|
self.dialog.status.setStyleSheet(
|
||||||
|
"* { background: %s; color: #000000; }" % c)
|
||||||
|
|
||||||
def modelChanged(self, model):
|
def modelChanged(self, model):
|
||||||
oldFact = self.editor.fact
|
oldFact = self.editor.fact
|
||||||
# create a new fact
|
# create a new fact
|
||||||
|
|
Loading…
Reference in a new issue