From 1570f65c483129e26ba7dbf3f99fefceccf627ee Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 21 Nov 2008 20:13:01 +0900 Subject: [PATCH] Reverting "remove obsolete call" --- ankiqt/ui/addcards.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ankiqt/ui/addcards.py b/ankiqt/ui/addcards.py index 5fec0b83d..ba9944ba4 100644 --- a/ankiqt/ui/addcards.py +++ b/ankiqt/ui/addcards.py @@ -23,6 +23,7 @@ class AddCards(QDialog): self.setupEditor() self.addChooser() self.addButtons() + self.setupStatus() self.modelChanged(self.parent.deck.currentModel) self.addedItems = 0 restoreGeom(self, "add") @@ -61,6 +62,13 @@ class AddCards(QDialog): QDialogButtonBox.HelpRole) 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): oldFact = self.editor.fact # create a new fact