프로젝트

일반

사용자정보

개정판 d5be9c7f

IDd5be9c7f18fdd3215c7069c7526052f6042d8e8c
상위 3414cf0d
하위 ff2da3a1, 3b6477ab

함의성이(가) 5년 이상 전에 추가함

issue #587: fix text owner and remove attr item

Change-Id: Ib77951a9ab9cbbbec65d517d6a5ca07a7f922f06

차이점 보기:

DTI_PID/DTI_PID/LineNoTracer.py
454 454
        for valve in valves:
455 455
            valve.connectAttribute(labels, clear=False)
456 456

  
457
        for symbol in symbols:
458
            for assoc in symbol.associations():
459
                if assoc.owner is None:
460
                    assoc.owner = symbol
461

  
457 462
        """ try to find text item's owner """
458 463
        texts = [item for item in worker.graphicsView.scene.items() if type(item) is QEngineeringReservedWordTextItem]
459 464
        for text in texts:
460 465
            text.findOwner(lines)
461
        texts = [item for item in worker.graphicsView.scene.items() if type(item) is QEngineeringSizeTextItem or type(item) is QEngineeringSizeTextItem or type(item) is QEngineeringValveOperCodeTextItem or type(item) is QEngineeringTagNoTextItem]            
466
        texts = [item for item in worker.graphicsView.scene.items() if type(item) is QEngineeringSizeTextItem or type(item) is QEngineeringValveOperCodeTextItem or type(item) is QEngineeringTagNoTextItem]            
462 467
        for text in texts:
463 468
            text.findOwner(symbols)
464 469

  

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)