프로젝트

일반

사용자정보

개정판 5c6e577a

ID5c6e577a61c283464e9bf178f5cb687c01cce4ac
상위 4ee19fde
하위 a9d32227, 0b8b80ed

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

issue #000: fix attr remove

Change-Id: I803f3fb544f74a1408c1f8484494898c38120bbd

차이점 보기:

DTI_PID/DTI_PID/ItemPropertyTableWidget.py
840 840
                                if sceneConnector.connectedItem is not None and items[0].uid == sceneConnector.connectedItem.uid:
841 841
                                    sceneConnector.connectedItem = None
842 842
                elif selectedIndexes[0].column() == 3 and data and type(data) is SymbolAttr:
843
                    assocItem = None
843 844
                    for _attr,_value in items[0].attrs.items():
844 845
                        if str(_attr.UID) == str(data.UID):
846
                            assocItem = _attr.AssocItem
845 847
                            items[0].remove_assoc_item(_attr.AssocItem)
846
                            if type(_attr.AssocItem) is QEngineeringTextItem:
848
                            if issubclass(type(_attr.AssocItem), QEngineeringTextItem):
847 849
                                _attr.AssocItem.owner = None
848 850
                            _attr.AssocItem = None
849 851
                            items[0].attrs[_attr] = ''
850
                            self.show_item_property(items[0])
851 852
                            break
853
                    for _attr,_value in items[0].attrs.items():
854
                        if _attr.AssocItem is assocItem:
855
                            _attr.AssocItem = None
856
                            items[0].attrs[_attr] = ''
857
                    self.show_item_property(items[0])
852 858
            elif len(items) == 1 and len(selectedIndexes) == 1 and type(items[0]) is QEngineeringSpecBreakItem:
853 859
                keyCell = self.item(selectedIndexes[0].row(), 1)
854 860
                if selectedIndexes[0].column() == 3 and (keyCell.text() == 'UpStream' or keyCell.text() == 'DownStream'):

내보내기 Unified diff

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