프로젝트

일반

사용자정보

개정판 344f3e78

ID344f3e78c60bfb67d39a56c31fdd0d7b75745306
상위 94c6dda2
하위 e0062849, 7edc8b5f

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

issue #000: fix initial area color

차이점 보기:

DTI_PID/DTI_PID/ConfigurationAreaDialog.py
413 413
        elif self._cmd.tag is self.ui.lineEditNote:
414 414
            if self.ui.lineEditNote.tag is None:
415 415
                item = QGraphicsBoundingBoxItem(x, y, width, height)
416
                item.setPen(QPen(Qt.red, THICKNESS, Qt.SolidLine))
416
                item.setPen(QPen(Qt.blue, THICKNESS, Qt.SolidLine))
417 417
                self.parent().graphicsView.scene.addItem(item)
418 418

  
419 419
                self.ui.lineEditNote.tag = item
......
424 424
        elif self._cmd.tag is self.ui.lineEditHistoryData:
425 425
            if self.ui.lineEditHistoryData.tag is None:
426 426
                item = QGraphicsBoundingBoxItem(x, y, width, height)
427
                item.setPen(QPen(Qt.red, THICKNESS, Qt.SolidLine))
427
                item.setPen(QPen(Qt.magenta, THICKNESS, Qt.SolidLine))
428 428
                self.parent().graphicsView.scene.addItem(item)
429 429

  
430 430
                self.ui.lineEditHistoryData.tag = item
......
435 435
        elif self._cmd.tag is self.ui.lineEditUnitArea:
436 436
            if self.ui.lineEditUnitArea.tag is None:
437 437
                item = QGraphicsBoundingBoxItem(x, y, width, height)
438
                item.setPen(QPen(Qt.red, THICKNESS, Qt.SolidLine))
438
                item.setPen(QPen(Qt.green, THICKNESS, Qt.SolidLine))
439 439
                self.parent().graphicsView.scene.addItem(item)
440 440

  
441 441
                self.ui.lineEditUnitArea.tag = item
......
446 446
        elif self._cmd.tag is self.ui.lineEditDrawingNo:
447 447
            if self.ui.lineEditDrawingNo.tag is None:
448 448
                item = QGraphicsBoundingBoxItem(x, y, width, height)
449
                item.setPen(QPen(Qt.red, THICKNESS, Qt.SolidLine))
449
                item.setPen(QPen(Qt.cyan, THICKNESS, Qt.SolidLine))
450 450
                self.parent().graphicsView.scene.addItem(item)
451 451

  
452 452
                self.ui.lineEditDrawingNo.tag = item
......
457 457
        elif self._cmd.tag is self.ui.lineEditRevNo:
458 458
            if self.ui.lineEditRevNo.tag is None:
459 459
                item = QGraphicsBoundingBoxItem(x, y, width, height)
460
                item.setPen(QPen(Qt.red, THICKNESS, Qt.SolidLine))
460
                item.setPen(QPen(Qt.yellow, THICKNESS, Qt.SolidLine))
461 461
                self.parent().graphicsView.scene.addItem(item)
462 462

  
463 463
                self.ui.lineEditRevNo.tag = item
......
521 521

  
522 522
            boundingBox = QGraphicsBoundingBoxItem(x, y, width, height)
523 523
            boundingBox.transfer.onSizeChanged.connect(self.onBoundingBoxChanged)
524
            boundingBox.setPen(QPen(Qt.darkCyan, THICKNESS, Qt.SolidLine))
524
            boundingBox.setPen(QPen(Qt.darkRed, THICKNESS, Qt.SolidLine))
525 525
            self.parent().graphicsView.scene.addItem(boundingBox)
526 526

  
527 527
            # add item to table widget
DTI_PID/DTI_PID/MainWindow.py
787 787
        self.dlgConfigurationArea = QConfigurationAreaDialog(self)
788 788
        self.dlgConfigurationArea.show()
789 789
        self.dlgConfigurationArea.exec_()
790
        self.graphicsView.useDefaultCommand()
790 791

  
791 792
    '''
792 793
        @brief  configuration

내보내기 Unified diff

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