예제 #1
0
 def hoverEnterEvent(self, event):
     # Hover enter event happens when the mouse enters any child object
     # but we only want to show the 'hovered' shadow when the mouse
     # is over the 'curveItem', so we install self as an event filter
     # on the LinkCurveItem and listen to its hover events.
     self.curveItem.installSceneEventFilter(self)
     return QGraphicsObject.hoverEnterEvent(self, event)
예제 #2
0
 def hoverEnterEvent(self, event):
     # Hover enter event happens when the mouse enters any child object
     # but we only want to show the 'hovered' shadow when the mouse
     # is over the 'curveItem', so we install self as an event filter
     # on the LinkCurveItem and listen to its hover events.
     self.curveItem.installSceneEventFilter(self)
     return QGraphicsObject.hoverEnterEvent(self, event)
예제 #3
0
파일: enode.py 프로젝트: feeling1982113/edd
 def hoverEnterEvent(self, mouseEvent):
     QGraphicsObject.hoverEnterEvent(self, mouseEvent)
     self.__toggleHighlight()
예제 #4
0
 def hoverEnterEvent(self, event):
     QGraphicsObject.hoverEnterEvent(self, event)
     event.accept()
     self._isHover = True
예제 #5
0
 def hoverEnterEvent(self, mouseEvent):
     QGraphicsObject.hoverEnterEvent(self, mouseEvent)
     self.__toggleHighlight()