개정판 333d16cf
fix EvaluatedLabel
Change-Id: I95b44e4eb28a9aabf14132981fc1585aabe4eec7
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py | ||
---|---|---|
458 | 458 |
scene = self.scene() |
459 | 459 |
labels = [item for item in scene.items() if type(item) is QEngineeringInstrumentItem and (item.iType == 19 or item.iType == 29 or item.iType == 30)] |
460 | 460 |
if labels: |
461 |
label = [label for label in labels if label.EvaluatedAttribute('OWNERSYMBOL') == self.uid]
|
|
461 |
label = [label for label in labels if label.EvaluatedAttribute('OWNERSYMBOL') == self] |
|
462 | 462 |
if label: |
463 |
return label.EvaluatedAttribute('prop')
|
|
463 |
return label[0].EvaluatedAttribute(prop)
|
|
464 | 464 |
|
465 | 465 |
return '' |
466 | 466 |
|
내보내기 Unified diff