--- a/UI/FindFileNameDialog.py Sun Mar 30 22:00:14 2014 +0200 +++ b/UI/FindFileNameDialog.py Thu Apr 03 23:05:31 2014 +0200 @@ -20,8 +20,10 @@ from E5Gui import E5FileDialog from .Ui_FindFileNameDialog import Ui_FindFileNameDialog + from Utilities import direntries import Utilities +import UI.PixmapCache class FindFileNameDialog(QWidget, Ui_FindFileNameDialog): @@ -48,16 +50,18 @@ super(FindFileNameDialog, self).__init__(parent) self.setupUi(self) + self.searchDirButton.setIcon(UI.PixmapCache.getIcon("open.png")) + self.searchDirCompleter = E5DirCompleter(self.searchDirEdit) self.fileList.headerItem().setText(self.fileList.columnCount(), "") self.stopButton = self.buttonBox.addButton( - self.trUtf8("Stop"), QDialogButtonBox.ActionRole) - self.stopButton.setToolTip(self.trUtf8("Press to stop the search")) + self.tr("Stop"), QDialogButtonBox.ActionRole) + self.stopButton.setToolTip(self.tr("Press to stop the search")) self.stopButton.setEnabled(False) self.buttonBox.button(QDialogButtonBox.Open).setToolTip( - self.trUtf8("Opens the selected file")) + self.tr("Opens the selected file")) self.buttonBox.button(QDialogButtonBox.Open).setEnabled(False) self.project = project @@ -200,7 +204,7 @@ """ searchDir = E5FileDialog.getExistingDirectory( None, - self.trUtf8("Select search directory"), + self.tr("Select search directory"), self.searchDirEdit.text(), E5FileDialog.Options(E5FileDialog.ShowDirsOnly))