def hoverLeaveEvent(self, event): self.setPen(self.last_pen) self.log.notHovered.emit() QGraphicsItem.hoverMoveEvent(self, event)
def hoverEnterEvent(self, event): self.last_pen = self.pen() self.setPen(self.hover_pen) self.log.hovered.emit() QGraphicsItem.hoverMoveEvent(self, event)