make sure add items status is read-only, fix colour on osx

This commit is contained in:
Damien Elmes 2009-05-09 07:19:30 +09:00
parent 3e252d5507
commit 588a3feead
2 changed files with 11 additions and 4 deletions

View file

@ -83,10 +83,11 @@ class AddCards(QDialog):
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)
if not sys.platform.startswith("darwin"):
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

View file

@ -118,6 +118,9 @@
</disabled>
</palette>
</property>
<property name="acceptDrops" >
<bool>false</bool>
</property>
<property name="autoFillBackground" >
<bool>true</bool>
</property>
@ -130,6 +133,9 @@
<property name="horizontalScrollBarPolicy" >
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="readOnly" >
<bool>true</bool>
</property>
<property name="html" >
<string>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">