diff options
author | Blaine | 2020-06-18 16:57:38 +0530 |
---|---|---|
committer | Blaine | 2020-06-18 16:57:38 +0530 |
commit | 70e9fc3756d8e94c374f498a63105f7345d7e7e2 (patch) | |
tree | bb724875c7e1aab34293fe207cbae28898b3a940 /src | |
parent | 420d0c3a68aa4a649991d36f0f72772fab0dd2d4 (diff) | |
download | Chemical-PFD-70e9fc3756d8e94c374f498a63105f7345d7e7e2.tar.gz Chemical-PFD-70e9fc3756d8e94c374f498a63105f7345d7e7e2.tar.bz2 Chemical-PFD-70e9fc3756d8e94c374f498a63105f7345d7e7e2.zip |
flipstate
Diffstat (limited to 'src')
-rw-r--r-- | src/main/python/shapes/shapes.py | 3 | ||||
-rw-r--r-- | src/main/python/utils/canvas.py | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/main/python/shapes/shapes.py b/src/main/python/shapes/shapes.py index f47ea28..01ec196 100644 --- a/src/main/python/shapes/shapes.py +++ b/src/main/python/shapes/shapes.py @@ -674,7 +674,8 @@ class NodeItem(QGraphicsSvgItem): "pos": (self.pos().x(), self.pos().y()), "lineGripItems": [(hex(id(i)), i.m_index) for i in self.lineGripItems], "label": self.label, - "rotation": self.rotation + "rotation": self.rotation, + "flipstate": self.flipState } def __setstate__(self, dict): diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py index a75570c..b60f11c 100644 --- a/src/main/python/utils/canvas.py +++ b/src/main/python/utils/canvas.py @@ -166,6 +166,7 @@ class canvas(customView): graphicLabel.__setstate__(item['label']) self.painter.addItem(graphicLabel) graphic.rotation = item['rotation'] + graphic.flipH, graphic.flipV = item['flipstate'] for item in dict['lines']: line = shapes.Line(QPointF(*item['startPoint']), QPointF(*item['endPoint'])) |