프로젝트

일반

사용자정보

개정판 7b02722f

ID7b02722f0708e6ccf0b257386b9e9df720115a6f
상위 44c5399a
하위 807f358a, 05a39092

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

issue #000: freeze item hide testing

Change-Id: Ic35c03423d833d0dcb6950a3b46bc569eb9bd55a

차이점 보기:

DTI_PID/DTI_PID/ItemPropertyTableWidget.py
465 465
                            self.checkbox_cell = QCustomCheckBox(self, row, 3)
466 466
                            self.checkbox_cell.setChecked(True if value and str(value) == 'True' else False)
467 467
                            self.checkbox_cell.stateChanged.connect(self.checkbox_cell.state_changed)
468
                            if prop.Attribute == 'Freeze': self.checkbox_cell.stateChanged.connect(item.freeze_item.update_freeze)
468
                            #if prop.Attribute == 'Freeze': self.checkbox_cell.stateChanged.connect(item.freeze_item.update_freeze)
469 469
                            self.setCellWidget(row, 3, self.checkbox_cell)
470 470
                        else:
471 471
                            value_item = QTableWidgetItem(value if value else '')
DTI_PID/DTI_PID/RecognitionDialog.py
426 426
                    lineNoTextItems = [item for item in textItems if type(item) is QEngineeringLineNoTextItem]
427 427
                    for lineNoTextItem in lineNoTextItems:
428 428
                        lineNoTextItem.set_property('Freeze', False)
429
                        lineNoTextItem.freeze_item.update_freeze(lineNoTextItem.prop('Freeze'))
429
                        #lineNoTextItem.freeze_item.update_freeze(lineNoTextItem.prop('Freeze'))
430 430
                        lineNoTextItem.explode()
431 431

  
432 432
                    for textItem in textItems:
DTI_PID/DTI_PID/Shapes/EngineeringEndBreakItem.py
41 41
            }
42 42

  
43 43
        """ create freeze control """
44
        self.freeze_item = QEngineeringFreezeItem(-QEngineeringFreezeItem.FREEZE_SIZE*0.5, -QEngineeringFreezeItem.FREEZE_SIZE*0.5, QEngineeringFreezeItem.FREEZE_SIZE, QEngineeringFreezeItem.FREEZE_SIZE)
45
        self.freeze_item.setParentItem(self)
46
        self.freeze_item.setZValue(self.zValue() + 1)
47
        self.freeze_item.setPen(Qt.black)
44
        #self.freeze_item = QEngineeringFreezeItem(-QEngineeringFreezeItem.FREEZE_SIZE*0.5, -QEngineeringFreezeItem.FREEZE_SIZE*0.5, QEngineeringFreezeItem.FREEZE_SIZE, QEngineeringFreezeItem.FREEZE_SIZE)
45
        #self.freeze_item.setParentItem(self)
46
        #self.freeze_item.setZValue(self.zValue() + 1)
47
        #self.freeze_item.setPen(Qt.black)
48 48

  
49 49

  
50 50
    '''
DTI_PID/DTI_PID/Shapes/EngineeringLineNoTextItem.py
41 41
        self._runs = []
42 42

  
43 43
        """ create freeze control """
44
        self.freeze_item = QEngineeringFreezeItem(-QEngineeringFreezeItem.FREEZE_SIZE*0.5, -QEngineeringFreezeItem.FREEZE_SIZE*0.5, QEngineeringFreezeItem.FREEZE_SIZE, QEngineeringFreezeItem.FREEZE_SIZE)
45
        self.freeze_item.setParentItem(self)
46
        self.freeze_item.setZValue(self.zValue() + 1)
47
        self.freeze_item.setPen(Qt.black)
44
        #self.freeze_item = QEngineeringFreezeItem(-QEngineeringFreezeItem.FREEZE_SIZE*0.5, -QEngineeringFreezeItem.FREEZE_SIZE*0.5, QEngineeringFreezeItem.FREEZE_SIZE, QEngineeringFreezeItem.FREEZE_SIZE)
45
        #self.freeze_item.setParentItem(self)
46
        #self.freeze_item.setZValue(self.zValue() + 1)
47
        #self.freeze_item.setPen(Qt.black)
48 48

  
49 49
    @property
50 50
    def properties(self):
......
281 281
                #item.setToolTip('<b>{}</b><br>LINE NO={}'.format(str(item.uid), text))
282 282

  
283 283
                """ apply freeze value """
284
                item.freeze_item.update_freeze(item.prop('Freeze'))
284
                #item.freeze_item.update_freeze(item.prop('Freeze'))
285 285

  
286 286
                if connline is not None:
287 287
                    item.conns.append(connline)
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py
1154 1154
                if currentPointModeIndex is not None:
1155 1155
                    item.currentPointModeIndex = int(currentPointModeIndex.text)
1156 1156

  
1157
                if type(item) is QEngineeringEndBreakItem:
1158
                    item.freeze_item.update_freeze(item.prop('Freeze'))
1157
                #if type(item) is QEngineeringEndBreakItem:
1158
                #    item.freeze_item.update_freeze(item.prop('Freeze'))
1159
                
1159 1160
                #if type(item) is QEngineeringSpecBreakItem:
1160 1161
                #    item.connectors[0].setPos((item.connectors[0].connectPoint[0], item.connectors[0].connectPoint[1]))
1161 1162
        except Exception as ex:

내보내기 Unified diff

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