167 """ |
167 """ |
168 filename = QFileDialog.getSaveFileName( |
168 filename = QFileDialog.getSaveFileName( |
169 self, |
169 self, |
170 self.trUtf8("Select output file"), |
170 self.trUtf8("Select output file"), |
171 self.outputFileEdit.text(), |
171 self.outputFileEdit.text(), |
172 self.trUtf8("API files (*.api);;All files (*)")) |
172 self.trUtf8("API files (*.api);;All files (*)"), |
|
173 QFileDialog.DontUseNativeDialog) |
173 |
174 |
174 if filename: |
175 if filename: |
175 # make it relative, if it is in a subdirectory of the project path |
176 # make it relative, if it is in a subdirectory of the project path |
176 fn = Utilities.toNativeSeparators(filename) |
177 fn = Utilities.toNativeSeparators(filename) |
177 fn = self.project.getRelativePath(fn) |
178 fn = self.project.getRelativePath(fn) |
198 startDir = self.ppath |
199 startDir = self.ppath |
199 directory = QFileDialog.getExistingDirectory( |
200 directory = QFileDialog.getExistingDirectory( |
200 self, |
201 self, |
201 self.trUtf8("Select directory to exclude"), |
202 self.trUtf8("Select directory to exclude"), |
202 startDir, |
203 startDir, |
203 QFileDialog.Options(QFileDialog.ShowDirsOnly)) |
204 QFileDialog.Options(QFileDialog.ShowDirsOnly | |
|
205 QFileDialog.DontUseNativeDialog)) |
204 |
206 |
205 if directory: |
207 if directory: |
206 # make it relative, if it is a subdirectory of the project path |
208 # make it relative, if it is a subdirectory of the project path |
207 dn = Utilities.toNativeSeparators(directory) |
209 dn = Utilities.toNativeSeparators(directory) |
208 dn = self.project.getRelativePath(dn) |
210 dn = self.project.getRelativePath(dn) |