개정판 8329204f
issue #503: fix vendor package on db action
Change-Id: If7f755122854c6de94c403c58f5fe060223557e4
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
2704 | 2704 |
for component in [component for component in components if |
2705 | 2705 |
component['Name'] == 'VendorPackage' and component['SymbolType_UID'] == -1]: |
2706 | 2706 |
item = QEngineeringVendorItem.from_database(component) |
2707 |
item.transfer.onRemoved.connect(self.itemRemoved) |
|
2708 |
self.graphicsView.scene.addItem(item) |
|
2707 |
if item is not None: |
|
2708 |
item.transfer.onRemoved.connect(self.itemRemoved) |
|
2709 |
self.graphicsView.scene.addItem(item) |
|
2709 | 2710 |
|
2710 | 2711 |
# connect flow item to line |
2711 | 2712 |
for line in lines: |
... | ... | |
2864 | 2865 |
|
2865 | 2866 |
for unknown in root.iter('UNKNOWN'): |
2866 | 2867 |
item = QEngineeringUnknownItem.fromXml(unknown) |
2867 |
item.transfer.onRemoved.connect(self.itemRemoved) |
|
2868 | 2868 |
if item is not None: |
2869 | 2869 |
item.transfer.onRemoved.connect(self.itemRemoved) |
2870 | 2870 |
self.graphicsView.scene.addItem(item) |
내보내기 Unified diff