개정판 6bf3272f
issue #000: fix end break freeze
Change-Id: Id455c03d70a9d347f1818c7716104b26657f34e1
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
466 | 466 |
vendor_packages = [item for item in worker.graphicsView.scene.items() if type(item) is QEngineeringVendorItem] |
467 | 467 |
end_breaks = [] |
468 | 468 |
for end_break in [item for item in worker.graphicsView.scene.items() if type(item) is QEngineeringEndBreakItem]: |
469 |
#worker.graphicsView.scene.removeItem(end_break) |
|
470 | 469 |
if not end_break.prop('Freeze'): |
471 | 470 |
end_break.transfer.onRemoved.emit(end_break) |
471 |
#worker.graphicsView.scene.removeItem(end_break) |
|
472 | 472 |
else: |
473 | 473 |
end_breaks.append(end_break) |
474 | 474 |
|
... | ... | |
554 | 554 |
symbol = docdata.getSymbolByQuery('name', svgFileName) |
555 | 555 |
svgFilePath = os.path.join(docdata.getCurrentProject().getSvgFilePath(), symbol.getType(), svgFileName+'.svg') |
556 | 556 |
|
557 |
end_breaks = [] |
|
557 |
#end_breaks = []
|
|
558 | 558 |
lineNo_froms = [] |
559 | 559 |
lineNo_tos = [] |
560 | 560 |
|
... | ... | |
596 | 596 |
index = tuple(index) |
597 | 597 |
dupl.add(index) |
598 | 598 |
#print(dupl) |
599 |
dupl = list(set([indexSet[1] for indexSet in list(dupl)]))
|
|
599 |
dupl = list(set([(indexSet[1] if not end_breaks[indexSet[1]].prop('Freeze') else indexSet[0]) for indexSet in list(dupl)]))
|
|
600 | 600 |
dupl.sort(reverse=True) |
601 | 601 |
#print(dupl) |
602 | 602 |
for index in dupl: |
603 | 603 |
end_breaks.pop(index) |
604 | 604 |
|
605 | 605 |
for end_break in end_breaks: |
606 |
end_break.transfer.onRemoved.connect(App.mainWnd().itemRemoved) |
|
607 |
end_break.addSvgItemToScene(worker.graphicsView.scene) |
|
606 |
if not end_break.prop('Freeze'): |
|
607 |
end_break.transfer.onRemoved.connect(App.mainWnd().itemRemoved) |
|
608 |
end_break.addSvgItemToScene(worker.graphicsView.scene) |
|
608 | 609 |
|
609 | 610 |
except Exception as ex: |
610 | 611 |
from App import App |
내보내기 Unified diff