summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorsumit2020-05-30 17:08:18 +0530
committerBlaine2020-06-03 15:21:59 +0530
commit634fde62599f92bd41dbce0adfedd1ae6af52ca4 (patch)
treeb63179ddb363c59f033bc0bebbde29c7f9f9d4c9 /src/main
parent8f9295322a545e4b9ab070c2534ddc2d31a952c7 (diff)
downloadChemical-PFD-634fde62599f92bd41dbce0adfedd1ae6af52ca4.tar.gz
Chemical-PFD-634fde62599f92bd41dbce0adfedd1ae6af52ca4.tar.bz2
Chemical-PFD-634fde62599f92bd41dbce0adfedd1ae6af52ca4.zip
change add line for undo
Diffstat (limited to 'src/main')
-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 4615ab1..a0aca48 100644
--- a/src/main/python/shapes/shapes.py
+++ b/src/main/python/shapes/shapes.py
@@ -212,7 +212,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):
@@ -286,6 +286,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
@@ -605,9 +606,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):