#NEWLINE# def __init__( self , sourceDrawNode , destDrawNode , floatingDestinationPoint = 0.0 ) : #NEWLINE# #INDENT# '\n        ' #NEWLINE# QtGui . QGraphicsItem . __init__ ( self ) #NEWLINE# self . arrowSize = 5.0 #NEWLINE# self . sourcePoint = QtCore . QPointF ( ) #NEWLINE# self . destPoint = QtCore . QPointF ( ) #NEWLINE# self . horizontalConnectionOffset = 0.0 #NEWLINE# self . setAcceptedMouseButtons ( QtCore . Qt . LeftButton ) #NEWLINE# self . setZValue ( ( - 2 ) ) #NEWLINE# self . source = sourceDrawNode #NEWLINE# self . dest = destDrawNode #NEWLINE# if ( not self . dest ) : #NEWLINE# #INDENT# self . floatingDestinationPoint = destDrawNode #NEWLINE# #UNINDENT# self . source . addDrawEdge ( self ) #NEWLINE# if self . dest : #NEWLINE# #INDENT# self . dest . addDrawEdge ( self ) #NEWLINE# #UNINDENT# self . adjust ( ) #NEWLINE# self . mouseMoved = False #NEWLINE# self . dragging = False