개정판 d6aa5aa4
issue #000: fix line connector sceneconnection point
Change-Id: I5c96cab93d3650c2c067b1887d0bbea66bbc3107
DTI_PID/DTI_PID/Shapes/EngineeringConnectorItem.py | ||
---|---|---|
170 | 170 |
def setPos(self, pos): |
171 | 171 |
self._loc = [pos[0], pos[1]] |
172 | 172 |
self.setRect(self._loc[0] - round(self.SMALL_SIZE*0.5), self._loc[1] - round(self.SMALL_SIZE*0.5), self.SMALL_SIZE, self.SMALL_SIZE) |
173 |
self.sceneConnectPoint = (self.sceneBoundingRect().center().x(), self.sceneBoundingRect().center().y()) |
|
173 | 174 |
self.update() |
174 | 175 |
|
175 | 176 |
""" set label positon at center of connector """ |
내보내기 Unified diff