Specify "cyan" as RGB value
authorAndy Bavier <acb@cs.princeton.edu>
Tue, 24 May 2011 15:35:50 +0000 (11:35 -0400)
committerAndy Bavier <acb@cs.princeton.edu>
Tue, 24 May 2011 15:35:50 +0000 (11:35 -0400)
SFA-40
On Leopard, QColor("cyan") causes an error.  Specify the color cyan as RGB values instead.

sface/screens/mainscreen.py

index f1015b4..c573aea 100644 (file)
@@ -160,7 +160,7 @@ class NodeNameDelegate(QStyledItemDelegate):
 
         if itemType(index) == "node":
             if status_data == node_status['in']: # already in the slice
-                painter.fillPath(path, QColor("cyan"))
+                painter.fillPath(path, QColor.fromRgb(0, 250, 250))
                 painter.setPen(QColor.fromRgb(0, 0, 0))
                 painter.drawText(option.rect, 0, QString(data))
 
@@ -180,7 +180,7 @@ class NodeNameDelegate(QStyledItemDelegate):
 
         else:
             if status_data == tag_status['in']: # already in the slice
-                painter.fillPath(path, QColor("cyan"))
+                painter.fillPath(path, QColor.fromRgb(0, 250, 250))
                 painter.setPen(QColor.fromRgb(0, 0, 0))
                 painter.drawText(option.rect, 0, QString(data))