SFA-40
On Leopard, QColor("cyan") causes an error. Specify the color cyan as RGB values instead.
if itemType(index) == "node":
if status_data == node_status['in']: # already in the slice
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))
painter.setPen(QColor.fromRgb(0, 0, 0))
painter.drawText(option.rect, 0, QString(data))
else:
if status_data == tag_status['in']: # already in the slice
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))
painter.setPen(QColor.fromRgb(0, 0, 0))
painter.drawText(option.rect, 0, QString(data))