프로젝트

일반

사용자정보

개정판 229cfccb

ID229cfccbc33e9c538dcfd992929ee8ef1b47d61a
상위 91240927
하위 f1e9562d

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

issue #000: flow mark testing

Change-Id: If91fd2b7e5cbeeb5fc6bca28dc4660ea5a601364

차이점 보기:

DTI_PID/DTI_PID/MainWindow.py
1633 1633
                if done: break
1634 1634

  
1635 1635
            if type(item) is QEngineeringFlowMarkItem and item.parentItem():
1636
                item.parentItem()._flowMark.pop(item.parent()._flowMark.index(item))
1636
                if item in item.parentItem()._flowMark:
1637
                    item.parentItem()._flowMark.pop(item.parentItem()._flowMark.index(item))
1637 1638

  
1638 1639
            if item.scene() is not None: item.scene().removeItem(item)
1639 1640
        except Exception as ex:
......
2489 2490
                    item.transfer.onRemoved.connect(self.itemRemoved)
2490 2491
                    self.graphicsView.scene.addItem(item)
2491 2492

  
2493
            # connect flow item to line
2494
            for flowMark in [item for item in symbols if type(item) is QEngineeringFlowMarkItem]:
2495
                for line in lines:
2496
                    if flowMark.owner is line:
2497
                        line._flowMark.append(flowMark)
2498
                        flowMark.setParentItem(line)
2492 2499
            # up to here
2493 2500

  
2494 2501
            """ update scene """
......
2496 2503
            for item in self.graphicsView.scene.items():
2497 2504
                item.setVisible(True)
2498 2505

  
2499
            # connect flow item to line
2500
            #for flowMark in [item for item in symbols if type(item) is QEngineeringFlowMarkItem]:
2501
            #    for line in lines:
2502
            #        if flowMark.owner is line:
2503
            #            line._flowMark.append(flowMark)
2504
            #            flowMark.setParentItem(line)
2506
            
2505 2507

  
2506 2508
        except Exception as ex:
2507 2509
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)

내보내기 Unified diff

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