#NEWLINE# def boundingRect( self ) : #NEWLINE# #INDENT# if ( ( not self . source ) or ( not self . dest ) ) : #NEWLINE# #INDENT# return QtCore . QRectF ( ) #NEWLINE# #UNINDENT# penWidth = 1 #NEWLINE# extra = ( ( penWidth + self . arrow_size ) / 2.0 ) #NEWLINE# rect = QtCore . QRectF ( self . source_point , QtCore . QSizeF ( ( self . dest_point . x ( ) - self . source_point . x ( ) ) , ( self . dest_point . y ( ) - self . source_point . y ( ) ) ) ) . normalized ( ) #NEWLINE# return rect . adjusted ( ( - extra ) , ( - extra ) , extra , extra )