개정판 99a9459b
issue #366: fix attribute connection
Change-Id: Ia6437300d5e9ac94d115d2bd9bd3747739fd2191
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
320 | 320 |
if next_connected: |
321 | 321 |
nextMatches = next_connected |
322 | 322 |
else: |
323 |
nextMatches = [lineMatches[0]]
|
|
323 |
nextMatches = [] |
|
324 | 324 |
|
325 | 325 |
# order connected objects |
326 | 326 |
matches = [] |
... | ... | |
483 | 483 |
if assoc.owner is None: |
484 | 484 |
assoc.owner = symbol |
485 | 485 |
|
486 |
""" restore note text item onwer """
|
|
486 |
""" restore note text item owner """
|
|
487 | 487 |
for note in notes: |
488 | 488 |
for noteText in note.associations(): |
489 | 489 |
noteText.owner = note |
DTI_PID/DTI_PID/Shapes/QEngineeringOPCItem.py | ||
---|---|---|
70 | 70 |
if clear: |
71 | 71 |
self.clear_attr_and_assoc_item() |
72 | 72 |
|
73 |
# return, opc attribute check manually |
|
74 |
''' |
|
75 |
|
|
73 | 76 |
app_doc_data = AppDocData.instance() |
74 | 77 |
|
75 | 78 |
matches = [connector.connectedItem for connector in self.connectors if connector is not None and type(connector.connectedItem) is QEngineeringLineItem] |
... | ... | |
97 | 100 |
sorted(self._associations['Text Item'], key=lambda attr: attr.loc[1], reverse=True) # sort by y coordinate |
98 | 101 |
elif 4.71 == self.angle: |
99 | 102 |
sorted(self._associations['Text Item'], key=lambda attr: attr.loc[1]) # sort by y coordinate |
103 |
''' |
|
100 | 104 |
except Exception as ex: |
101 | 105 |
from App import App |
102 | 106 |
from AppDocData import MessageType |
내보내기 Unified diff