프로젝트

일반

사용자정보

개정판 26195784

ID26195784c3570232cd59188b56b55b9855036329
상위 e44ea38a
하위 c2012f5f

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

issue #000: fix save and load

Change-Id: Id5e699028ff9c023d835c36123c549a36645abd4

차이점 보기:

DTI_PID/DTI_PID/Shapes/GraphicsBoundingBoxItem.py
72 72
        self.connectors.append(connector)
73 73
        ## up to here
74 74

  
75
        self.setFlags(QGraphicsItem.ItemIsSelectable|QGraphicsItem.ItemIsFocusable)
75 76
        self.transfer = Transfer()
76 77

  
78
    def keyPressEvent(self, event): 
79
        if self.isSelected() and event.key() == Qt.Key_Delete:
80
            self.scene().removeItem(self)
81

  
77 82
    '''
78 83
        @brief      reshape rectangle
79 84
        @author     humkyung
DTI_PID/DTI_PID/XmlGenerator.py
374 374
    from EngineeringValveOperCodeTextItem import QEngineeringValveOperCodeTextItem
375 375
    from SymbolSvgItem import SymbolSvgItem
376 376
    from EngineeringVendorItem import QEngineeringVendorItem
377
    from GraphicsBoundingBoxItem import QGraphicsBoundingBoxItem
377 378

  
378 379
    appDocData = AppDocData.instance()
379 380
    items = []
......
413 414
                node = item.toXml(name='SIZE')
414 415
            elif type(item) is QEngineeringValveOperCodeTextItem:
415 416
                node = item.toXml(name='VALVE OPER CODE')
416
            elif issubclass(type(item), QEngineeringAbstractItem):
417
            elif issubclass(type(item), QEngineeringAbstractItem) and type(item) is not QGraphicsBoundingBoxItem:
417 418
                node = item.toXml()
418 419
            else:
419 420
                continue

내보내기 Unified diff

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