개정판 22adf874
issue #563: treating 3-way valve when line no tracing
Change-Id: I4b1cacb6c2fb4b8ecc9f346da483eceb393251ad
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
52 | 52 |
# attributeType uid |
53 | 53 |
self.attribute = '' |
54 | 54 |
self._properties = {SymbolProp(None, 'Supplied By', 'String'):None} |
55 |
self.supplied_by = '' |
|
56 | 55 |
|
57 | 56 |
self.setAcceptDrops(True) |
58 | 57 |
self.setAcceptHoverEvents(True) |
... | ... | |
348 | 347 |
def is_connected(self, item, at=QEngineeringAbstractItem.CONNECTED_AT_PT): |
349 | 348 |
""" check if given item is connected to self """ |
350 | 349 |
|
351 |
_connectors = [connector for connector in self.connectors if (connector.connectedItem == item and connector._connected_at == at)]
|
|
350 |
_connectors = [connector for connector in self.connectors if (connector.connectedItem == item and (connector._connected_at == at if at else True))]
|
|
352 | 351 |
return len(_connectors) > 0 |
353 | 352 |
|
354 | 353 |
''' |
내보내기 Unified diff