개정판 1551b327
fix connection point from db load
Change-Id: I136ed62a861b640e98fb752b47377e02b14e3b7b
DTI_PID/DTI_PID/Shapes/EngineeringConnectorItem.py | ||
---|---|---|
546 | 546 |
|
547 | 547 |
self._connectedItem = uuid.UUID(connectedItemStr) if connectedItemStr and connectedItemStr != 'None' else \ |
548 | 548 |
None |
549 |
self.connectPoint = (float(connectPointStr[0]), float(connectPointStr[1])) |
|
549 |
#self.connectPoint = (float(connectPointStr[0]), float(connectPointStr[1]))
|
|
550 | 550 |
# self.sceneConnectPoint = (float(sceneConnectPointStr[0]), float(sceneConnectPointStr[1])) |
551 | 551 |
|
552 | 552 |
self.setBrush(Qt.yellow) if self._connectedItem else self.setBrush(Qt.blue) |
... | ... | |
572 | 572 |
self._connected_at = QEngineeringAbstractItem.CONNECTED_AT_PT |
573 | 573 |
|
574 | 574 |
connectedItemStr = node.find('CONNECTEDITEM').text |
575 |
connectPointStr = node.find('CONNECTPOINT').text.split(',') |
|
576 |
sceneConnectPointStr = node.find('SCENECONNECTPOINT').text.split(',') |
|
575 |
#connectPointStr = node.find('CONNECTPOINT').text.split(',')
|
|
576 |
#sceneConnectPointStr = node.find('SCENECONNECTPOINT').text.split(',')
|
|
577 | 577 |
|
578 | 578 |
self._connectedItem = uuid.UUID(connectedItemStr) if connectedItemStr != 'None' else None |
579 |
self.connectPoint = (float(connectPointStr[0]), float(connectPointStr[1])) |
|
579 |
#self.connectPoint = (float(connectPointStr[0]), float(connectPointStr[1]))
|
|
580 | 580 |
# self.sceneConnectPoint = (float(sceneConnectPointStr[0]), float(sceneConnectPointStr[1])) 2020.2.8 |
581 | 581 |
|
582 | 582 |
self.setBrush(Qt.yellow) if self._connectedItem else self.setBrush(Qt.blue) |
내보내기 Unified diff