UI/FindFileNameDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3591
2f2a4a76dd22
--- 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))
         

eric ide

mercurial