Preferences/ConfigurationPages/HelpViewersPage.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
--- a/Preferences/ConfigurationPages/HelpViewersPage.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Preferences/ConfigurationPages/HelpViewersPage.py	Thu Apr 03 23:05:31 2014 +0200
@@ -20,6 +20,7 @@
 
 import Preferences
 import Utilities
+import UI.PixmapCache
 
 
 class HelpViewersPage(ConfigurationPageBase, Ui_HelpViewersPage):
@@ -34,6 +35,9 @@
         self.setupUi(self)
         self.setObjectName("HelpViewersPage")
         
+        self.customViewerSelectionButton.setIcon(
+            UI.PixmapCache.getIcon("open.png"))
+        
         self.helpViewerGroup = QButtonGroup()
         self.helpViewerGroup.addButton(self.helpBrowserButton)
         self.helpViewerGroup.addButton(self.qtAssistantButton)
@@ -79,7 +83,7 @@
         """
         file = E5FileDialog.getOpenFileName(
             self,
-            self.trUtf8("Select Custom Viewer"),
+            self.tr("Select Custom Viewer"),
             self.customViewerEdit.text(),
             "")
         
@@ -93,7 +97,7 @@
         """
         file = E5FileDialog.getOpenFileName(
             self,
-            self.trUtf8("Select Web-Browser"),
+            self.tr("Select Web-Browser"),
             self.webbrowserEdit.text(),
             "")
         
@@ -107,7 +111,7 @@
         """
         file = E5FileDialog.getOpenFileName(
             self,
-            self.trUtf8("Select PDF-Viewer"),
+            self.tr("Select PDF-Viewer"),
             self.pdfviewerEdit.text(),
             "")
         
@@ -121,7 +125,7 @@
         """
         file = E5FileDialog.getOpenFileName(
             self,
-            self.trUtf8("Select CHM-Viewer"),
+            self.tr("Select CHM-Viewer"),
             self.chmviewerEdit.text(),
             "")
         

eric ide

mercurial