Example #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)
Example #2
0
 def hoverEnterEvent(self, event):
     if options.auto_select_items:
         if len(canvas.scene.selectedItems()) > 0:
             canvas.scene.clearSelection()
         self.setSelected(True)
     QGraphicsObject.hoverEnterEvent(self, event)