프로젝트

일반

사용자정보

개정판 49f0920d

ID49f0920dde35dd8f0cc944b482f81cad4b5a58b5
상위 bbb7f7da
하위 2f08ba25, 34585133

김연진이(가) 5년 이상 전에 추가함

issue #000 : MessageBox icon 지정

Change-Id: Icca5168c4bca0f076e82288b906a8625b0b11bad

차이점 보기:

HYTOS/HYTOS/MainWindow.py
194 194

  
195 195
    def deleteDrawingActionClickEvent(self, item):
196 196
        try:
197
            msg = QMessageBox()
197
            msg = QMessageBox(self)
198 198
            msg.setIcon(QMessageBox.Question)
199 199
            msg.setText(self.tr('Do you want to delete drawing?\nThis work cannot be recovered.'))
200 200
            msg.setWindowTitle(self.tr("Delete Drawing"))
......
565 565
            return
566 566

  
567 567
        try:
568
            msg = QMessageBox()
568
            msg = QMessageBox(self)
569 569
            msg.setIcon(QMessageBox.Question)
570 570
            msg.setText(self.tr('Do you want to remove all items?\nThis work cannot be recovered.'))
571 571
            msg.setWindowTitle(self.tr("Clear Screen"))
......
639 639
                            message = 'error occured({}) in {}:{}'.format('텍스트 생성에 실패했습니다.', sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
640 640
                            self.addMessage.emit(MessageType.Normal, message)
641 641
                else:
642
                    QMessageBox.about(self.graphicsView, self.tr("Notice"), self.tr("Fail to recognize text"))
642
                    QMessageBox.about(self, self.tr("Notice"), self.tr("Fail to recognize text"))
643 643
        except Exception as ex:
644 644
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
645 645
            self.addMessage.emit(MessageType.Error, message)
......
660 660
        @date   2018.05.02
661 661
    '''
662 662
    def showImageSelectionMessageBox(self):
663
        QMessageBox.about(self.graphicsView, self.tr("Notice"), self.tr("First select image drawing"))
663
        QMessageBox.information(self, self.tr("Notice"), self.tr("First select image drawing"))
664 664
        
665 665

  
666 666
    def display_colors(self, value):
HYTOS/HYTOS/ProjectDialog.py
83 83
        """
84 84
        self.selectedProject = self.ui.comboBox.currentData()
85 85
        if self.selectedProject:
86
            msg = QMessageBox()
87
            msg.setIcon(QMessageBox.Critical)
86
            msg = QMessageBox(self)
87
            msg.setIcon(QMessageBox.Question)
88 88
            msg.setText(self.tr('Are you sure you want to delete project "{}" ?\nData can not be restored! '.format(self.selectedProject.name)))
89 89
            msg.setWindowTitle(self.tr('Delete Project'))
90 90
            msg.setStandardButtons(QMessageBox.Ok|QMessageBox.Cancel)
91 91
            if QMessageBox.Ok == msg.exec_():
92 92
                AppDocData.instance().removeProjectInfo(self.selectedProject)
93
                self.initComboBox()
94
        
93
                self.initComboBox()        
94

  
95 95
    '''
96 96
        @brief      display project desc and unit when change project
97 97
        @author     humkyung

내보내기 Unified diff

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