개정판 e93a1840
issue #563: fix onwer
Change-Id: Icecbd645d31f500654568cd3cf0a09c89b721d76
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
594 | 594 |
QApplication.processEvents() |
595 | 595 |
for symbol in symbols: |
596 | 596 |
for assoc in symbol.associations(): |
597 |
if assoc.owner is None: |
|
597 |
if assoc.owner is None and not issubclass(type(assoc), SymbolSvgItem):
|
|
598 | 598 |
assoc.owner = symbol |
599 | 599 |
|
600 | 600 |
""" restore note text item owner """ |
... | ... | |
1641 | 1641 |
QApplication.processEvents() |
1642 | 1642 |
for symbol in symbols: |
1643 | 1643 |
for assoc in symbol.associations(): |
1644 |
if assoc.owner is None: |
|
1644 |
if assoc.owner is None and not issubclass(type(assoc), SymbolSvgItem):
|
|
1645 | 1645 |
assoc.owner = symbol |
1646 | 1646 |
|
1647 | 1647 |
""" try to find text item's owner """ |
... | ... | |
1688 | 1688 |
|
1689 | 1689 |
QApplication.processEvents() |
1690 | 1690 |
|
1691 |
worker.updateProgress.emit(tracer.maxValue) |
|
1692 |
|
|
1693 | 1691 |
ALL_ITEM = [item for item in worker.scene.items() if issubclass(type(item), QEngineeringAbstractItem)] |
1694 | 1692 |
for item in ALL_ITEM: |
1695 | 1693 |
item.setVisible(True) |
내보내기 Unified diff