def hoverLeaveEvent (self, e): self.pen_color = QPen (Qt.black, 2) self._text_item.setDefaultTextColor (Qt.black) # records the node_id in the helper's attribute. self.comm.setHoveredSocketId (None) QGraphicsItem.hoverLeaveEvent (self, e)
def hoverLeaveEvent (self, e): # records the node_id in the helper's attribute. self.comm.setHoveredItemId (None) # deal with the harpoon. if not self.helper.isTimerEnded(): self.setSelected (True) QGraphicsItem.hoverLeaveEvent (self, e)
def hoverLeaveEvent(self, e): self.wire_pen.setColor (Qt.white) QGraphicsItem.hoverLeaveEvent(self,e)
def hoverLeaveEvent(self, event): self.graphicsEffect().setEnabled(False) self.setOpacity(0.7) QGraphicsItem.hoverLeaveEvent(self, event)
def hoverLeaveEvent(self, event): self.setCursor(Qt.ArrowCursor) QGraphicsItem.hoverLeaveEvent(self, event)