def mouseReleaseEvent(self, event):
        if self.tmp_connection_item:
            if self.tmp_connection_item.snapPortItem is not None:
                self.scene().addConnectionFromTmp(self.tmp_connection_item,
                                                  self.parentItem().module,
                                                  self.port.type == "output")
            self.tmp_connection_item.disconnect(True)
            self.scene().removeItem(self.tmp_connection_item)
            self.tmp_connection_item = None
        self.dragging = False
        self.setSelected(False)
        QtGui.QAbstractGraphicsShapeItem.mouseReleaseEvent(self, event)
Return simplified ``e`` using Fu-like transformations.
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/pipeline_view.py/QAbstractGraphicsPortItem.mouseReleaseEvent--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/simplify/trigsimp.py/futrig