12 |
12 |
13 from PyQt4.QtCore import * |
13 from PyQt4.QtCore import * |
14 from PyQt4.QtGui import * |
14 from PyQt4.QtGui import * |
15 |
15 |
16 from E5Gui.E5Application import e5App |
16 from E5Gui.E5Application import e5App |
17 from E5Gui import E5MessageBox |
17 from E5Gui import E5MessageBox, E5FileDialog |
18 |
18 |
19 from .Ui_FindFileDialog import Ui_FindFileDialog |
19 from .Ui_FindFileDialog import Ui_FindFileDialog |
20 |
20 |
21 import Utilities |
21 import Utilities |
22 import Preferences |
22 import Preferences |
528 @pyqtSlot() |
528 @pyqtSlot() |
529 def on_dirSelectButton_clicked(self): |
529 def on_dirSelectButton_clicked(self): |
530 """ |
530 """ |
531 Private slot to display a directory selection dialog. |
531 Private slot to display a directory selection dialog. |
532 """ |
532 """ |
533 directory = QFileDialog.getExistingDirectory( |
533 directory = E5FileDialog.getExistingDirectory( |
534 self, |
534 self, |
535 self.trUtf8("Select directory"), |
535 self.trUtf8("Select directory"), |
536 self.dirCombo.currentText(), |
536 self.dirCombo.currentText(), |
537 QFileDialog.Options(QFileDialog.ShowDirsOnly | |
537 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |
538 QFileDialog.DontUseNativeDialog)) |
|
539 |
538 |
540 if directory: |
539 if directory: |
541 self.dirCombo.setEditText(Utilities.toNativeSeparators(directory)) |
540 self.dirCombo.setEditText(Utilities.toNativeSeparators(directory)) |
542 |
541 |
543 def __getFileList(self, path, filterRe): |
542 def __getFileList(self, path, filterRe): |