259 """ |
259 """ |
260 directory = QFileDialog.getExistingDirectory( |
260 directory = QFileDialog.getExistingDirectory( |
261 self, |
261 self, |
262 self.trUtf8("Select output directory"), |
262 self.trUtf8("Select output directory"), |
263 self.outputDirEdit.text(), |
263 self.outputDirEdit.text(), |
264 QFileDialog.Options(QFileDialog.ShowDirsOnly)) |
264 QFileDialog.Options(QFileDialog.ShowDirsOnly | |
|
265 QFileDialog.DontUseNativeDialog)) |
265 |
266 |
266 if directory: |
267 if directory: |
267 # make it relative, if it is a subdirectory of the project path |
268 # make it relative, if it is a subdirectory of the project path |
268 dn = Utilities.toNativeSeparators(directory) |
269 dn = Utilities.toNativeSeparators(directory) |
269 dn = self.project.getRelativePath(dn) |
270 dn = self.project.getRelativePath(dn) |
284 startDir = self.ppath |
285 startDir = self.ppath |
285 directory = QFileDialog.getExistingDirectory( |
286 directory = QFileDialog.getExistingDirectory( |
286 self, |
287 self, |
287 self.trUtf8("Select directory to exclude"), |
288 self.trUtf8("Select directory to exclude"), |
288 startDir, |
289 startDir, |
289 QFileDialog.Options(QFileDialog.ShowDirsOnly)) |
290 QFileDialog.Options(QFileDialog.ShowDirsOnly | |
|
291 QFileDialog.DontUseNativeDialog)) |
290 |
292 |
291 if directory: |
293 if directory: |
292 # make it relative, if it is a subdirectory of the project path |
294 # make it relative, if it is a subdirectory of the project path |
293 dn = Utilities.toNativeSeparators(directory) |
295 dn = Utilities.toNativeSeparators(directory) |
294 dn = self.project.getRelativePath(dn) |
296 dn = self.project.getRelativePath(dn) |
322 """ |
324 """ |
323 cssFile = QFileDialog.getOpenFileName( |
325 cssFile = QFileDialog.getOpenFileName( |
324 self, |
326 self, |
325 self.trUtf8("Select CSS style sheet"), |
327 self.trUtf8("Select CSS style sheet"), |
326 getConfig('ericCSSDir'), |
328 getConfig('ericCSSDir'), |
327 self.trUtf8("Style sheet (*.css);;All files (*)")) |
329 self.trUtf8("Style sheet (*.css);;All files (*)"), |
|
330 QFileDialog.DontUseNativeDialog) |
328 |
331 |
329 if cssFile: |
332 if cssFile: |
330 # make it relative, if it is in a subdirectory of the project path |
333 # make it relative, if it is in a subdirectory of the project path |
331 cf = Utilities.toNativeSeparators(cssFile) |
334 cf = Utilities.toNativeSeparators(cssFile) |
332 cf = self.project.getRelativePath(cf) |
335 cf = self.project.getRelativePath(cf) |
470 """ |
473 """ |
471 directory = QFileDialog.getExistingDirectory( |
474 directory = QFileDialog.getExistingDirectory( |
472 self, |
475 self, |
473 self.trUtf8("Select output directory for QtHelp files"), |
476 self.trUtf8("Select output directory for QtHelp files"), |
474 self.qtHelpDirEdit.text(), |
477 self.qtHelpDirEdit.text(), |
475 QFileDialog.Options(QFileDialog.ShowDirsOnly)) |
478 QFileDialog.Options(QFileDialog.ShowDirsOnly | |
|
479 QFileDialog.DontUseNativeDialog)) |
476 |
480 |
477 if directory: |
481 if directory: |
478 # make it relative, if it is a subdirectory of the project path |
482 # make it relative, if it is a subdirectory of the project path |
479 dn = Utilities.toNativeSeparators(directory) |
483 dn = Utilities.toNativeSeparators(directory) |
480 dn = self.project.getRelativePath(dn) |
484 dn = self.project.getRelativePath(dn) |