#NEWLINE# def mouseMoveEvent( self , event ) : #NEWLINE# #INDENT# '\n        Overrides mouseMovedEvent to display any decoration tooltip and emits\n        the mouse_moved event.\n\n        :param event: QMouseEvent\n        ' #NEWLINE# cursor = self . cursorForPosition ( event . pos ( ) ) #NEWLINE# self . _last_mouse_pos = event . pos ( ) #NEWLINE# block_found = False #NEWLINE# for sel in self . decorations : #NEWLINE# #INDENT# if ( sel . contains_cursor ( cursor ) and sel . tooltip ) : #NEWLINE# #INDENT# if ( ( self . _prev_tooltip_block_nbr != cursor . blockNumber ( ) ) or ( not QtWidgets . QToolTip . isVisible ( ) ) ) : #NEWLINE# #INDENT# pos = event . pos ( ) #NEWLINE# pos . setX ( ( pos . x ( ) + self . panels . margin_size ( ) ) ) #NEWLINE# pos . setY ( ( pos . y ( ) + self . panels . margin_size ( 0 ) ) ) #NEWLINE# self . _tooltips_runner . request_job ( self . show_tooltip , self . mapToGlobal ( pos ) , sel . tooltip [ 0 : 1024 ] , pos ) #NEWLINE# self . _prev_tooltip_block_nbr = cursor . blockNumber ( ) #NEWLINE# #UNINDENT# block_found = True #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# if ( ( not block_found ) and ( self . _prev_tooltip_block_nbr != ( - 1 ) ) ) : #NEWLINE# #INDENT# QtWidgets . QToolTip . hideText ( ) #NEWLINE# self . _prev_tooltip_block_nbr = ( - 1 ) #NEWLINE# self . _tooltips_runner . cancel_requests ( ) #NEWLINE# #UNINDENT# self . mouse_moved . emit ( event ) #NEWLINE# super ( CodeEdit , self ) . mouseMoveEvent ( event )