Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def end(self):
self.down_pos = None
self.arrow_item = None
self.annotation = None
self.document.view().setCursor(Qt.ArrowCursor)
# Clear the help tip
helpevent = QuickHelpTipEvent("", "")
QCoreApplication.postEvent(self.document, helpevent)
UserInteraction.end(self)
def end(self):
if self.control is not None:
self.scene.removeItem(self.control)
if self.item is not None:
self.item.geometryChanged.disconnect(self.__on_lineGeometryChanged)
self.control = None
self.item = None
self.annotation = None
UserInteraction.end(self)
def end(self):
if self.control is not None:
self.scene.removeItem(self.control)
if self.item is not None:
self.item.setFramePen(self.savedFramePen)
self.item = None
self.annotation = None
self.control = None
UserInteraction.end(self)
def end(self):
self.cleanup()
# Remove the help tip set in mousePressEvent
self.macro = None
helpevent = QuickHelpTipEvent("", "")
QCoreApplication.postEvent(self.document, helpevent)
UserInteraction.end(self)
def end(self):
if self.control is not None:
self.scene.removeItem(self.control)
self.control = None
self.down_pos = None
self.annotation_item = None
self.annotation = None
self.document.view().setCursor(Qt.ArrowCursor)
# Clear the help tip
helpevent = QuickHelpTipEvent("", "")
QCoreApplication.postEvent(self.document, helpevent)
UserInteraction.end(self)
def end(self):
self.initial_selection = None
self.last_selection = None
self.modifiers = 0
self.rect_item.hide()
if self.rect_item.scene() is not None:
self.scene.removeItem(self.rect_item)
UserInteraction.end(self)