개정판 2aae48b5
improve symbol auto connection
Change-Id: Id98f56bfe1c5dc6905a47848b576fa39ff8c4757
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
816 | 816 |
unknowns = [item for item in self.graphicsView.scene().items() if type(item) is QEngineeringUnknownItem] |
817 | 817 |
end_breaks = [item for item in self.graphicsView.scene().items() if type(item) is QEngineeringEndBreakItem] |
818 | 818 |
spec_breaks = [item for item in self.graphicsView.scene().items() if type(item) is QEngineeringSpecBreakItem] |
819 |
symbols = [item for item in self.graphicsView.scene().items() if issubclass(type(item), SymbolSvgItem) and item not in end_breaks and item not in spec_breaks] |
|
819 |
symbols = [item for item in self.graphicsView.scene().items() if issubclass(type(item), SymbolSvgItem) and item not in end_breaks and item not in spec_breaks and ((item.iType == 21 or item.iType == 25) and not item.has_connection)]
|
|
820 | 820 |
texts = [item for item in self.graphicsView.scene().items() if type(item) is QEngineeringTextItem and item.owner is None] |
821 | 821 |
|
822 | 822 |
for item in lines_short + unknowns: |
내보내기 Unified diff