개정판 dffcae96
fix line size
Change-Id: I55416e3a9aeeceef965202c2674e4eb1d2d24840
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py | ||
---|---|---|
546 | 546 |
if item.mainSubSize and item.mainSubSize[0]: |
547 | 547 |
self.sizeDepth = 0 |
548 | 548 |
return item.mainSubSize[0] |
549 |
else: |
|
550 |
if item.Size: |
|
551 |
self.sizeDepth = 0 |
|
552 |
return item.Size |
|
549 |
elif item.Size: |
|
550 |
self.sizeDepth = 0 |
|
551 |
return item.Size |
|
553 | 552 |
prev = item |
554 | 553 |
|
555 | 554 |
downstream = connected_items[at:] |
... | ... | |
568 | 567 |
if item.mainSubSize and item.mainSubSize[1]: |
569 | 568 |
self.sizeDepth = 0 |
570 | 569 |
return item.mainSubSize[1] |
571 |
else: |
|
572 |
if item.Size: |
|
573 |
self.sizeDepth = 0 |
|
574 |
return item.Size |
|
570 |
elif item.Size: |
|
571 |
self.sizeDepth = 0 |
|
572 |
return item.Size |
|
575 | 573 |
prev = item |
576 |
elif self.owner.runs and self in self.owner.runs[0].items: |
|
574 |
|
|
575 |
if self.owner.runs and self in self.owner.runs[0].items: |
|
577 | 576 |
self.sizeDepth = 0 |
578 | 577 |
return self.owner.Size |
579 | 578 |
elif self.sizeDepth < 2: |
580 | 579 |
if connected_items: |
580 |
at = connected_items.index(self) |
|
581 |
upstream = connected_items[:at] |
|
582 |
upstream.reverse() |
|
583 |
prev = self |
|
584 |
for item in upstream: |
|
585 |
if item and issubclass(type(item.owner), QEngineeringLineNoTextItem) and item.owner.runs and item in item.owner.runs[0].items: |
|
586 |
item.sizeDepth = self.sizeDepth + 1 |
|
587 |
return item.EvaluatedSize |
|
588 |
prev = item |
|
589 |
|
|
590 |
downstream = connected_items[at:] |
|
591 |
prev = self |
|
592 |
for item in downstream: |
|
593 |
if item and issubclass(type(item.owner), QEngineeringLineNoTextItem) and item.owner.runs and item in item.owner.runs[0].items: |
|
594 |
item.sizeDepth = self.sizeDepth + 1 |
|
595 |
return item.EvaluatedSize |
|
596 |
prev = item |
|
597 |
|
|
598 |
if self.sizeDepth < 2: |
|
599 |
if connected_items: |
|
581 | 600 |
res1 = None |
582 | 601 |
res2 = None |
583 | 602 |
if type(connected_items[0]) is QEngineeringLineItem: |
내보내기 Unified diff