summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsumit2020-05-30 17:08:18 +0530
committersumit2020-05-30 17:08:18 +0530
commit25341b4f0c95f404b2acbeb4d23c3decb2a8f346 (patch)
tree43f9faacfac3a508db9abbd3fd98e46edce6bd06 /src
parent5e0015b53c72d59e34376f6a48597c1420f7dedf (diff)
downloadChemical-PFD-25341b4f0c95f404b2acbeb4d23c3decb2a8f346.tar.gz
Chemical-PFD-25341b4f0c95f404b2acbeb4d23c3decb2a8f346.tar.bz2
Chemical-PFD-25341b4f0c95f404b2acbeb4d23c3decb2a8f346.zip
change add line for undo
Diffstat (limited to 'src')
-rw-r--r--src/main/python/shapes/shapes.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/python/shapes/shapes.py b/src/main/python/shapes/shapes.py
index 7db759c..19c0298 100644
--- a/src/main/python/shapes/shapes.py
+++ b/src/main/python/shapes/shapes.py
@@ -223,7 +223,7 @@ class LineGripItem(GripItem):
# initialize a line and add on scene
startPoint = endPoint = self.parentItem().mapToScene(self.pos())
self.tempLine = Line(startPoint, endPoint)
- self.scene().addItem(self.tempLine)
+ self.scene().addItemPlus(self.tempLine)
super().mousePressEvent(mouseEvent)
def mouseMoveEvent(self, mouseEvent):
@@ -297,6 +297,7 @@ class NodeItem(QGraphicsSvgItem):
def __init__(self, unitOperationType, parent=None):
QGraphicsSvgItem.__init__(self, parent)
+ self.m_type = unitOperationType
self.id = None
self.m_renderer = NodeItem.renderer
# if each svg is seperate file
@@ -616,9 +617,9 @@ class InducedDraftCooling(NodeItem):
super(InducedDraftCooling, self).__init__("InducedDraftCooling", parent=None)
-class jacketedMixingVessel(NodeItem):
+class JacketedMixingVessel(NodeItem):
def __init__(self):
- super(jacketedMixingVessel, self).__init__("jacketedMixingVessel", parent=None)
+ super(JacketedMixingVessel, self).__init__("JacketedMixingVessel", parent=None)
class LiquidRingCompressor(NodeItem):