X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fscreens%2Fmainscreen.py;h=2d940800c5ca900aa489ce4b20889c8a135ca1df;hp=160883b9f186feb19eee0e2bf95365b90a613e4f;hb=a81026669dd7c31c015ce953f439c35da4728c7c;hpb=ea028163f9ab1801b4b719a178184047531da5c1 diff --git a/sface/screens/mainscreen.py b/sface/screens/mainscreen.py index 160883b..2d94080 100644 --- a/sface/screens/mainscreen.py +++ b/sface/screens/mainscreen.py @@ -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.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.drawRect(x + w + 10, y + 3, 10, 10) painter.fillRect(x + w + 10, y + 3, 10, 10, QColor.fromRgb(250, 0, 0)) painter.restore()