프로젝트

일반

사용자정보

개정판 e1735571

IDe1735571277e03ae6e42629533c1092fe43e01f0
상위 9fdc723f
하위 a2b9ed96

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

issue #563: fix item no exist

Change-Id: I65a265eb0bc10b5328ecc38405c34f508b8ea687

차이점 보기:

DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py
344 344
            if items:
345 345
                return items[0]
346 346
        
347
        return None
347
        return QEngineeringTextItem()
348 348

  
349 349
    def EvaluatedAttribute(self, prop):
350 350
        """ return item's attribute """
......
476 476
                for match in matches:
477 477
                    attr_name = attr.Expression[(match.start() + 1):(match.end() - 1)]
478 478
                    values = [value for key, value in _attrs.items() if key.Attribute == attr_name]
479
                    if not values or not values[0]:
479
                    if not values:
480 480
                        values = ['\'\'']
481 481
                    value += attr.Expression[pos:match.start()] + values[0]
482 482
                    pos = match.end()
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py
1870 1870
        @author     humkyung
1871 1871
        @date       2018.07.27
1872 1872
    '''
1873

  
1874 1873
    def onConnectorPosChaned(self, connector):
1875 1874
        pass
1876 1875

  
......
1879 1878
        @author     kyouho
1880 1879
        @date       2018.07.26
1881 1880
    '''
1882

  
1883 1881
    def setConnector(self, index):
1884 1882
        connector = QEngineeringConnectorItem(parent=self, index=index)
1885 1883
        connector.setParentItem(self)
1886 1884
        self.connectors.append(connector)
1887 1885

  
1888
    '''
1889
    '''
1890

  
1891 1886
    def refreshConnector(self):
1892 1887
        for connector in self.connectors:
1893 1888
            connector.buildItem()
......
1897 1892
        @author     Jeongwoo
1898 1893
        @date       2018.05.25
1899 1894
    '''
1900

  
1901 1895
    def deleteSvgItemFromScene(self):
1902 1896
        ''' not used '''
1903 1897
        for connector in self.connectors:
......
1936 1930
        @author     kyouho
1937 1931
        @date       2018.07.25
1938 1932
    '''
1939

  
1940 1933
    def changeConnPoint(self):
1941 1934
        if len(self.connectors) == 2:
1942 1935
            conn1Item = self.connectors[0].connectedItem
......
1952 1945
        @author     kyouho
1953 1946
        @date       2018.07.24
1954 1947
    '''
1955

  
1956 1948
    def changeStandardPoint(self):
1957 1949
        connPtsCount = len(self.connectors)
1958 1950

  

내보내기 Unified diff

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