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.E5Completers import E5DirCompleter |
16 from E5Gui.E5Completers import E5DirCompleter |
|
17 from E5Gui import E5FileDialog |
17 |
18 |
18 from .Ui_FindFileNameDialog import Ui_FindFileNameDialog |
19 from .Ui_FindFileNameDialog import Ui_FindFileNameDialog |
19 from Utilities import direntries |
20 from Utilities import direntries |
20 import Utilities |
21 import Utilities |
21 |
22 |
178 def on_searchDirButton_clicked(self): |
179 def on_searchDirButton_clicked(self): |
179 """ |
180 """ |
180 Private slot to handle the clicked signal of the search directory selection |
181 Private slot to handle the clicked signal of the search directory selection |
181 button. |
182 button. |
182 """ |
183 """ |
183 searchDir = QFileDialog.getExistingDirectory( |
184 searchDir = E5FileDialog.getExistingDirectory( |
184 None, |
185 None, |
185 self.trUtf8("Select search directory"), |
186 self.trUtf8("Select search directory"), |
186 self.searchDirEdit.text(), |
187 self.searchDirEdit.text(), |
187 QFileDialog.Options(QFileDialog.ShowDirsOnly | |
188 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |
188 QFileDialog.DontUseNativeDialog)) |
|
189 |
189 |
190 if searchDir: |
190 if searchDir: |
191 self.searchDirEdit.setText(Utilities.toNativeSeparators(searchDir)) |
191 self.searchDirEdit.setText(Utilities.toNativeSeparators(searchDir)) |
192 |
192 |
193 def on_searchDirCheckBox_toggled(self, checked): |
193 def on_searchDirCheckBox_toggled(self, checked): |