예제 #1
0
 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()
예제 #3
0
    def shape(self):
        if self.hover_shape is not None:
            path = QPainterPath()
            path.addRect(self.hover_shape)
            return path

        return super(GraphItem, self).shape()
예제 #4
0
 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()