'An item should call this method if it can handle the event. This will prevent the event being delivered to any other items.'

def accept(self):

    self.accepted = True
    self.acceptedItem = self.currentItem
