프로젝트

일반

사용자정보

개정판 6067f4b2

ID6067f4b2e131b6fd9271deeaf41e31709f42c10d
상위 2b57a455
하위 98385a10

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

issue #000: fix line drawing

Change-Id: I23b4232ed091be77233a4f5789c3f58df5c009d3

차이점 보기:

DTI_PID/DTI_PID/MainWindow.py
1584 1584
                        pt = lineItem.startPoint()
1585 1585
                        selected = [item for item in self.graphicsView.scene.items(QPointF(pt[0], pt[1])) if
1586 1586
                                    type(item) is QEngineeringConnectorItem or type(item) is QEngineeringLineItem]
1587
                        if selected:
1587
                        if selected and selected[0] is not lineItem:
1588 1588
                            if type(selected[0]) is QEngineeringConnectorItem:
1589 1589
                                lineItem.connect_if_possible(selected[0].parent, 5)
1590 1590
                            else:
......
1596 1596
                pt = items[-1].endPoint()
1597 1597
                selected = [item for item in self.graphicsView.scene.items(QPointF(pt[0], pt[1])) if
1598 1598
                            (type(item) is QEngineeringConnectorItem and item.parent is not items[-1]) or type(item) is QEngineeringLineItem]
1599
                if selected:
1599
                if selected and selected[0] is not items[-1]:
1600 1600
                    if type(selected[0]) is QEngineeringConnectorItem:
1601 1601
                        items[-1].connect_if_possible(selected[0].parent, 5)
1602 1602
                    else:

내보내기 Unified diff

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