프로젝트

일반

사용자정보

개정판 b6307955

IDb6307955b105f6819e51356df1b02ebc534d8c9b
상위 13ef2724
하위 1166d632, dbfd98ba

GeunHo Song 이(가) 약 2년 전에 추가함

issue #000 Dialog Option에 DontUseNativeDialog 주석처리.

차이점 보기:

HYTOS/HYTOS/MainWindow.py
1033 1033

  
1034 1034
        file_name = os.path.join(workspace, 'copy of ' + app_doc_data.activeDrawing.name + '.hytos')
1035 1035
        options = QFileDialog.Options()
1036
        options |= QFileDialog.DontUseNativeDialog
1036
        #options |= QFileDialog.DontUseNativeDialog
1037 1037
        name, _ = QFileDialog.getSaveFileName(self, self.tr('Save As'), file_name, 'HYTOS(*.hytos)', options=options)
1038 1038
        if name:
1039 1039
            try:
......
2782 2782
        workspace = self.get_work_space()
2783 2783

  
2784 2784
        options = QFileDialog.Options()
2785
        options |= QFileDialog.DontUseNativeDialog
2785
        #options |= QFileDialog.DontUseNativeDialog
2786 2786
        name, _ = QFileDialog.getSaveFileName(self, self.tr('Save As'), workspace, 'HYTOS Files (*.hytos)',
2787 2787
                                              options=options)
2788 2788
        if name:
......
2822 2822
        workspace = self.get_work_space()
2823 2823

  
2824 2824
        options = QFileDialog.Options()
2825
        options |= QFileDialog.DontUseNativeDialog
2825
        #options |= QFileDialog.DontUseNativeDialog
2826 2826
        name, _ = QFileDialog.getSaveFileName(self, self.tr('New'), workspace, 'HYTOS Files (*.hytos)', options=options)
2827 2827
        if name:
2828 2828
            if os.path.splitext(name)[1] != '.hytos': name += '.hytos'
......
2851 2851

  
2852 2852
        workspace = self.get_work_space()
2853 2853
        options = QFileDialog.Options()
2854
        options |= QFileDialog.DontUseNativeDialog
2854
        #options |= QFileDialog.DontUseNativeDialog
2855 2855
        name, _ = QFileDialog.getOpenFileName(self, self.tr('Open'), workspace, 'HYTOS File(*.hytos)', options=options)
2856 2856
        if name:
2857 2857
            self.open_drawing(name)
HYTOS/HYTOS/OptionsDialog.py
81 81
        initPath = self.ui.lineEdit_WorkSpace.text()
82 82

  
83 83
        options = QFileDialog.Options()
84
        options |= QFileDialog.DontUseNativeDialog
84
        #options |= QFileDialog.DontUseNativeDialog
85 85
        options |= QFileDialog.ShowDirsOnly
86 86
        selectedDir = QFileDialog.getExistingDirectory(self,
87 87
                                                       _translate('Work Space Dialog', "Select folder for Work Space"),
HYTOS/HYTOS/QtImageViewer.py
199 199
        try:
200 200
            if len(fileName) == 0:
201 201
                options = QFileDialog.Options()
202
                options |= QFileDialog.DontUseNativeDialog
202
                #options |= QFileDialog.DontUseNativeDialog
203 203
                if QT_VERSION_STR[0] == '4':
204 204
                    fileName = QFileDialog.getOpenFileName(self, "Open image file", os.getcwd() if folder == '' else folder, "Image files(*.png *.jpg)", options=options)
205 205
                elif QT_VERSION_STR[0] == '5':
HYTOS/HYTOS/SymbolEditorDialog.py
69 69
        """select svg file"""
70 70

  
71 71
        options = QFileDialog.Options()
72
        options |= QFileDialog.DontUseNativeDialog
72
        #options |= QFileDialog.DontUseNativeDialog
73 73
        name, _ = QFileDialog.getOpenFileName(self, self.tr('Open svg file'), os.getcwd(), 'Svf File(*.svg)',
74 74
                                              options=options)
75 75
        if name:

내보내기 Unified diff

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