cosmetic
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Mon, 13 Sep 2010 10:22:05 +0000 (12:22 +0200)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Mon, 13 Sep 2010 10:22:05 +0000 (12:22 +0200)
sface/screens/mainscreen.py

index 160883b..2d94080 100644 (file)
@@ -61,12 +61,14 @@ class NodeNameDelegate(QStyledItemDelegate):
             painter.fillPath(path, QColor.fromRgb(0, 250, 0))
             painter.setPen(QColor.fromRgb(0, 0, 0))
             painter.drawText(option.rect, 0, QString(data))
             painter.fillPath(path, QColor.fromRgb(0, 250, 0))
             painter.setPen(QColor.fromRgb(0, 0, 0))
             painter.drawText(option.rect, 0, QString(data))
+            painter.drawRect(x + w + 10, y + 3, 10, 10)
             painter.fillRect(x + w + 10, y + 3, 10, 10, QColor.fromRgb(0, 250, 0))
 
         elif select_data == "remove": # removed from the slice
             painter.fillPath(path, QColor.fromRgb(250, 0, 0))
             painter.setPen(QColor.fromRgb(0, 0, 0))
             painter.drawText(option.rect, 0, QString(data))
             painter.fillRect(x + w + 10, y + 3, 10, 10, QColor.fromRgb(0, 250, 0))
 
         elif select_data == "remove": # removed from the slice
             painter.fillPath(path, QColor.fromRgb(250, 0, 0))
             painter.setPen(QColor.fromRgb(0, 0, 0))
             painter.drawText(option.rect, 0, QString(data))
+            painter.drawRect(x + w + 10, y + 3, 10, 10)
             painter.fillRect(x + w + 10, y + 3, 10, 10, QColor.fromRgb(250, 0, 0))
 
         painter.restore()
             painter.fillRect(x + w + 10, y + 3, 10, 10, QColor.fromRgb(250, 0, 0))
 
         painter.restore()