개정판 4ea0e225
issue #000: fix item re positioning
Change-Id: Ibd71bc72c2d22f9c9ef39dfe62559e142be287af
DTI_PID/DTI_PID/QtImageViewer.py | ||
---|---|---|
672 | 672 |
svg.connectors[0].connectedItem = items[0].parentItem() |
673 | 673 |
items[0].connectedItem = svg |
674 | 674 |
|
675 |
for conn in svg.connectors: |
|
676 |
conn.sceneConnectPoint = (conn.sceneBoundingRect().center().x(), conn.sceneBoundingRect().center().y()) |
|
675 |
svg.reSettingConnetors() |
|
677 | 676 |
|
678 | 677 |
self.scene.clearFocus() |
679 | 678 |
for item in self.scene.selectedItems(): |
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
1516 | 1516 |
|
1517 | 1517 |
if self.flip is 1: |
1518 | 1518 |
transform.scale(-1.0, 1.0) |
1519 |
transform.translate(-self.size[0], 0)
|
|
1519 |
transform.translate(- 2 * self.symbolOrigin[0], 0)
|
|
1520 | 1520 |
|
1521 | 1521 |
self.setTransform(transform) |
1522 | 1522 |
self.reSettingConnetors() |
내보내기 Unified diff