def shape(self): if self.hovershape is not None: path = QPainterPath() path.addRect(self.hovershape) return path else: return super(self.__class__, self).shape()
def shape(self): if self.hover_shape is not None: path = QPainterPath() path.addRect(self.hover_shape) return path return super(GraphItem, self).shape()
def shape(self): if self.hover_shape is not None: path = QPainterPath() path.addRect(self.hover_shape) return path else: return super(HoveredNodeItem, self).shape()