code: def finishConnection(self, accept=True):
          
          if not self._activeConnection:
              return
          
          # when accepting, emit the connection requested signal
          if accept:
              self.emitConnectionRequested(self._activeConnection)
              
              # emit the slot for the given node dropzone
              if self._activeConnection.customData('__output__'):
                  target = self._activeConnection.inputPoint()
                  node   = self.nodeAt(target)
              else:
                  target = self._activeConnection.outputPoint()
                  node   = self.nodeAt(target)
              
              if node:
                  npos = node.mapFromScene(target)
                  node.triggerDropzoneAt(npos, self._activeConnection)
          
          # remove the connection
          self.removeItem(self._activeConnection)
          self._activeConnection = None
docs: Finishes the active connection.  If the accept value is \
          true, then the connection requested signal will be emited, \
          otherwise, it will simply clear the active connection \
          data.
          
          :param      accept      <bool>