개정판 80c7547b
fix EvaluatedLabel
Change-Id: I3d4cdb80a2931e6c78bab64da9d725bada6d1d3b
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py | ||
---|---|---|
533 | 533 |
|
534 | 534 |
def EvaluatedLabel(self, prop): |
535 | 535 |
""" return label symbol's attribute """ |
536 |
from EngineeringInstrumentItem import QEngineeringInstrumentItem
|
|
536 |
from SymbolSvgItem import SymbolSvgItem
|
|
537 | 537 |
|
538 | 538 |
scene = self.scene() |
539 |
labels = [item for item in scene.items() if type(item) is QEngineeringInstrumentItem and (item.iType == 19 or item.iType == 29 or item.iType == 30)]
|
|
539 |
labels = [item for item in scene.items() if issubclass(type(item), SymbolSvgItem) and (item.iType == 19 or item.iType == 29 or item.iType == 30)]
|
|
540 | 540 |
if labels: |
541 | 541 |
label = [label for label in labels if label.EvaluatedAttribute('OWNERSYMBOL') == self] |
542 | 542 |
if label: |
내보내기 Unified diff