Exemplo n.º 1
0
 def hoverLeaveEvent(self, event):
     self.setPen(self.last_pen)
     self.log.notHovered.emit()
     QGraphicsItem.hoverMoveEvent(self, event)
Exemplo n.º 2
0
 def hoverEnterEvent(self, event):
     self.last_pen = self.pen()
     self.setPen(self.hover_pen)
     self.log.hovered.emit()
     QGraphicsItem.hoverMoveEvent(self, event)