개정판 0b8b80ed
issue #589: fix flow mark updating
Change-Id: Ic1994a98abfcdf99cc6705a04d05080311572e79
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
551 | 551 |
"""make flow mark""" |
552 | 552 |
for line in lines: |
553 | 553 |
line.flowMark = None |
554 |
line.update_arrow() |
|
554 | 555 |
|
555 | 556 |
configs = docdata.getConfigs('Flow Mark') |
556 | 557 |
position = int(configs[0].value) if 2 == len(configs) else 100 |
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
259 | 259 |
self.setOpacity(float(configs[4]) / 100) |
260 | 260 |
self.update() |
261 | 261 |
|
262 |
if self.scene(): |
|
263 |
self.update_arrow() |
|
264 |
|
|
262 | 265 |
''' |
263 | 266 |
@brief clone an object |
264 | 267 |
''' |
... | ... | |
1374 | 1377 |
_dir = [dx/self.length(), dy/self.length()] |
1375 | 1378 |
|
1376 | 1379 |
arrow_size = QEngineeringLineItem.ARROW_SIZE * 0.25 |
1380 |
|
|
1381 |
if not (self._lineType == 'Primary' or self._lineType == 'Secondary'): |
|
1382 |
self.flowMark = None |
|
1383 |
|
|
1377 | 1384 |
if self.flowMark: |
1378 | 1385 |
arrow_size *= 2 |
1379 | 1386 |
end = QPointF(start.x() + dx * self.flowMark / 100, start.y() + dy * self.flowMark / 100) |
내보내기 Unified diff