개정판 c76ee2c1
fix auto connection
Change-Id: If8054ac55f193f35a46b017a20a6792b41573467
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
852 | 852 |
unknowns = [item for item in self.graphicsView.scene().items() if type(item) is QEngineeringUnknownItem] |
853 | 853 |
end_breaks = [item for item in self.graphicsView.scene().items() if type(item) is QEngineeringEndBreakItem] |
854 | 854 |
spec_breaks = [item for item in self.graphicsView.scene().items() if type(item) is QEngineeringSpecBreakItem] |
855 |
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)]
|
|
855 |
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 and item.iType != 25) or not item.has_connection)]
|
|
856 | 856 |
texts = [item for item in self.graphicsView.scene().items() if type(item) is QEngineeringTextItem and item.owner is None] |
857 | 857 |
|
858 | 858 |
for item in lines_short + unknowns: |
내보내기 Unified diff