From 99822b85d62fad68179146fde690caa93b7900a7 Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Tue, 6 Dec 2011 16:42:21 +0100 Subject: [PATCH] add missing paint base method --- sloth/items/items.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sloth/items/items.py b/sloth/items/items.py index 7070858..227febb 100644 --- a/sloth/items/items.py +++ b/sloth/items/items.py @@ -172,6 +172,9 @@ class BaseItem(QAbstractGraphicsShapeItem): self.setBrush(color) self.update() + def paint(self, painter, option, widget=None): + pass + def itemChange(self, change, value): if change == QGraphicsItem.ItemPositionHasChanged: self.updateModel() @@ -532,7 +535,7 @@ class NPointFaceItem(GroupItem): return br.adjusted(-offset, -offset, +offset, +offset) def paint(self, painter, option, widget=None): - BaseItem.paint(self, painter, option, widget) + GroupItem.paint(self, painter, option, widget) pen = self.pen() if self.isSelected():